The friendly Operating System for the Internet of Things
remote-common/include/board_common.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 Freie Universit├Ąt Berlin
3  * Copyright (C) 2015 Zolertia SL
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser General
6  * Public License v2.1. See the file LICENSE in the top level directory for more
7  * details.
8  */
9 
22 #ifndef BOARD_COMMON_H
23 #define BOARD_COMMON_H
24 
25 #include "cpu.h"
26 #include "periph/gpio.h"
27 #include "periph/spi.h"
28 
29 #ifdef __cplusplus
30  extern "C" {
31 #endif
32 
37 #define LED_ALL_OFF LED0_OFF; \
38  LED1_OFF; \
39  LED2_OFF
40 /* Output is color white */
41 #define LED_ALL_ON LED0_ON; \
42  LED1_ON; \
43  LED2_ON
44 
45 /* Yellow */
46 #define LED3_ON LED2_OFF; \
47  LED0_ON; \
48  LED1_ON
49 #define LED3_OFF LED1_OFF; \
50  LED0_OFF
51 #define LED3_TOGGLE LED1_TOGGLE; \
52  LED0_TOGGLE
53 
54 /* Purple */
55 #define LED4_ON LED1_OFF; \
56  LED2_ON; \
57  LED0_ON
58 #define LED4_OFF LED2_OFF; \
59  LED0_OFF
60 #define LED4_TOGGLE LED2_TOGGLE; \
61  LED0_TOGGLE
62 
68 #ifndef UPDATE_CCA
69 #define UPDATE_CCA (1)
70 #endif
71 #define CCA_BACKDOOR_ENABLE (1)
72 #define CCA_BACKDOOR_PORT_A_PIN (3)
73 #define CCA_BACKDOOR_ACTIVE_LEVEL (0)
80 #define XTIMER_DEV (0)
81 #define XTIMER_CHAN (0)
82 #define XTIMER_WIDTH (16)
83 #define XTIMER_SHIFT (0)
84 #define XTIMER_HZ (1000000UL)
85 #define XTIMER_BACKOFF (50)
86 #define XTIMER_ISR_BACKOFF (40)
87 
92 void board_init(void);
93 
94 #ifdef __cplusplus
95 } /* end extern "C" */
96 #endif
97 #endif /* BOARD_COMMON_H */
98 
Low-level GPIO peripheral driver interface definitions.
Low-level SPI peripheral driver interface definition.
void board_init(void)
Initialize board specific hardware.