boards/cc2650stk/include/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 (sizeof(timer_config) / sizeof(timer_config[0]))
64 
76 #define UART_NUMOF (1)
77 #define UART_RX_PIN (28)
78 #define UART_TX_PIN (29)
79 
81 #ifdef __cplusplus
82 }
83 #endif
84 
85 #endif /* PERIPH_CONF_H */
86 
#define GPT_CFG_32T
GPT register values.
Definition: cc26x0_gpt.h:89
uint_fast8_t cfg
timer config word
Timer configuration.