periph_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 Leon George
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 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
32 /* the main clock is fixed to 48MHZ */
33 #define CLOCK_CORECLOCK (48000000U)
34 
44 static const timer_conf_t timer_config[] = {
45  {
46  .cfg = GPT_CFG_16T,
47  .chn = 2,
48  },
49  {
50  .cfg = GPT_CFG_32T,
51  .chn = 1,
52  },
53  {
54  .cfg = GPT_CFG_16T,
55  .chn = 2,
56  },
57  {
58  .cfg = GPT_CFG_32T,
59  .chn = 1,
60  }
61 };
62 
63 #define TIMER_NUMOF ARRAY_SIZE(timer_config)
64 
77 static const uart_conf_t uart_config[] = {
78  {
79  .regs = UART0,
80  .tx_pin = 29,
81  .rx_pin = 28,
82 #ifdef MODULE_PERIPH_UART_HW_FC
83  .rts_pin = GPIO_UNDEF,
84  .cts_pin = GPIO_UNDEF,
85 #endif
86  .intn = UART0_IRQN
87  }
88 };
89 #define UART_NUMOF ARRAY_SIZE(uart_config)
90 
96 #define I2C_NUMOF (1)
97 #define I2C_SDA_PIN (5)
98 #define I2C_SCL_PIN (6)
99 
101 #ifdef __cplusplus
102 }
103 #endif
104 
105 #endif /* PERIPH_CONF_H */
106 
GPT_CFG_32T
#define GPT_CFG_32T
GPT register values.
Definition: cc26xx_cc13xx_gpt.h:89
UART0
#define UART0
UART0 register bank.
Definition: cc26xx_cc13xx_uart.h:134
UART0_IRQN
@ UART0_IRQN
21 UART0 Rx and Tx
Definition: cc26xx_cc13xx.h:78
GPIO_UNDEF
#define GPIO_UNDEF
Definition of a fitting UNDEF value.
Definition: periph_cpu_common.h:52
uart_conf_t
UART device configuration.
Definition: periph_cpu.h:166
timer_conf_t
Timer configuration.
Definition: periph_cpu.h:288
timer_conf_t::cfg
uint_fast8_t cfg
timer config word
Definition: periph_cpu.h:290