The friendly Operating System for the Internet of Things
cc2650stk/include/board.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 
21 #ifndef BOARD_H
22 #define BOARD_H
23 
24 #include "periph/gpio.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
34 #define XTIMER_WIDTH (16)
35 
41 #define BUTTON1_DIO GPIO_PIN(0, 4)
42 #define BUTTON2_DIO GPIO_PIN(0, 0)
43 
49 #define LED0_PIN GPIO_PIN(0, 10)
50 #define LED1_PIN GPIO_PIN(0, 15)
51 
52 #define LED0_ON gpio_set(LED0_PIN)
53 #define LED0_OFF gpio_clear(LED0_PIN)
54 #define LED0_TOGGLE gpio_toggle(LED0_PIN)
55 
56 #define LED1_ON gpio_set(LED1_PIN)
57 #define LED1_OFF gpio_clear(LED1_PIN)
58 #define LED1_TOGGLE gpio_toggle(LED1_PIN)
59 
64 void board_init(void);
65 
66 #ifdef __cplusplus
67 }
68 #endif
69 
70 #endif /* BOARD_H */
71 
Low-level GPIO peripheral driver interface definitions.
void board_init(void)
Initialize board specific hardware, including clock, LEDs, and std-IO.