The friendly Operating System for the Internet of Things
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 
40 static const timer_conf_t timer_config[] = {
41  {
42  .dev = GPT0,
43  .num = 0
44  },
45  {
46  .dev = GPT1,
47  .num = 1
48  }
49 };
50 
51 #define TIMER_0_ISR isr_timer0_chan0
52 #define TIMER_1_ISR isr_timer1_chan0
53 
54 #define TIMER_NUMOF (sizeof(timer_config) / sizeof(timer_config[0]))
55 
67 #define UART_NUMOF (1)
68 #define UART_RX_PIN (28)
69 #define UART_TX_PIN (29)
70 
72 #ifdef __cplusplus
73 }
74 #endif
75 
76 #endif /* PERIPH_CONF_H */
77 
#define GPT0
GPT instances.
Definition: cc26x0_gpt.h:79
cc2538_gptimer_t * dev
timer device
Timer configuration data.