Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
periph_conf.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2021 Jean Pierre Dudey
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
19
#ifndef PERIPH_CONF_H
20
#define PERIPH_CONF_H
21
22
#include "periph_cpu.h"
23
#include "
macros/units.h
"
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
33
/* the main clock is fixed to 48MHZ */
34
#define CLOCK_CORECLOCK MHZ(48)
45
static
const
timer_conf_t
timer_config[] = {
46
{
47
.
cfg
= GPT_CFG_16T,
48
.chn = 2,
49
},
50
{
51
.cfg =
GPT_CFG_32T
,
52
.chn = 1,
53
},
54
{
55
.cfg = GPT_CFG_16T,
56
.chn = 2,
57
},
58
{
59
.cfg =
GPT_CFG_32T
,
60
.chn = 1,
61
}
62
};
63
64
#define TIMER_NUMOF ARRAY_SIZE(timer_config)
79
static
const
uart_conf_t
uart_config[] = {
80
{
81
.regs =
UART0
,
82
.
tx_pin
=
GPIO_PIN
(0, 3),
83
.rx_pin =
GPIO_PIN
(0, 2),
84
#ifdef MODULE_PERIPH_UART_HW_FC
85
.rts_pin =
GPIO_UNDEF
,
86
.cts_pin =
GPIO_UNDEF
,
87
#endif
88
.intn =
UART0_IRQN
89
}
90
};
91
#define UART_NUMOF ARRAY_SIZE(uart_config)
98
#define I2C_NUMOF (1)
99
#define I2C_SDA_PIN GPIO_PIN(0, 5)
100
#define I2C_SCL_PIN GPIO_PIN(0, 4)
103
#ifdef __cplusplus
104
}
105
#endif
106
107
#endif
/* PERIPH_CONF_H */
GPIO_PIN
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition
periph_cpu.h:46
GPIO_UNDEF
#define GPIO_UNDEF
Definition of a fitting UNDEF value.
Definition
periph_cpu_common.h:54
GPT_CFG_32T
#define GPT_CFG_32T
GPT register values.
Definition
cc26xx_cc13xx_gpt.h:89
UART0_IRQN
@ UART0_IRQN
21 UART0 Rx and Tx
Definition
cc26xx_cc13xx.h:89
UART0
#define UART0
UART0 register bank.
Definition
cc26xx_cc13xx_uart.h:134
timer_conf_t
Timer device configuration.
Definition
periph_cpu.h:264
timer_conf_t::cfg
uint_fast8_t cfg
timer config word
Definition
periph_cpu.h:312
uart_conf_t
UART device configuration.
Definition
periph_cpu.h:218
uart_conf_t::tx_pin
gpio_t tx_pin
pin used for TX
Definition
periph_cpu.h:222
units.h
Unit helper macros.
Generated on Sat Nov 23 2024 01:58:06 by
1.9.8