boards/cc2650-launchpad/include/periph_conf.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 Nicholas Jackson
3  * 2017 HAW Hamburg
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser
6  * General Public License v2.1. See the file LICENSE in the top level
7  * directory for more details.
8  */
9 
21 #ifndef PERIPH_CONF_H
22 #define PERIPH_CONF_H
23 
24 #include "periph_cpu.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
34 /* the main clock is fixed to 48MHZ */
35 #define CLOCK_CORECLOCK (48000000U)
36 
46 static const timer_conf_t timer_config[] = {
47  {
48  .cfg = GPT_CFG_16T,
49  .chn = 2,
50  },
51  {
52  .cfg = GPT_CFG_32T,
53  .chn = 1,
54  },
55  {
56  .cfg = GPT_CFG_16T,
57  .chn = 2,
58  },
59  {
60  .cfg = GPT_CFG_32T,
61  .chn = 1,
62  }
63 };
64 
65 #define TIMER_NUMOF (sizeof(timer_config) / sizeof(timer_config[0]))
66 
78 #define UART_NUMOF (1)
79 #define UART_RX_PIN (2)
80 #define UART_TX_PIN (3)
81 
83 #ifdef __cplusplus
84 }
85 #endif
86 
87 #endif /* PERIPH_CONF_H */
88 
#define GPT_CFG_32T
GPT register values.
Definition: cc26x0_gpt.h:89
uint_fast8_t cfg
timer config word
Timer configuration.