board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 Inria
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 BOARD_H
20 #define BOARD_H
21 
22 #include "cpu.h"
23 #include "periph_conf.h"
24 #include "mtd.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 /* Use the on board RTC 32kHz clock for LPTMR clocking. */
31 #undef LPTIMER_CLKSRC
32 
33 #define LPTIMER_CLKSRC LPTIMER_CLKSRC_ERCLK32K
34 
36 #define DISABLE_WDOG 1
37 
42 #define XTIMER_DEV (TIMER_PIT_DEV(0))
43 #define XTIMER_CHAN (0)
44 #define XTIMER_BACKOFF (40)
45 #define XTIMER_ISR_BACKOFF (40)
46 
52 #define LED_PORT PTC
53 #define LED0_BIT (5)
54 
55 #define LED0_PIN GPIO_PIN(PORT_C, LED0_BIT)
56 
57 #define LED0_ON (LED_PORT->PSOR = (1 << LED0_BIT))
58 #define LED0_OFF (LED_PORT->PCOR = (1 << LED0_BIT))
59 #define LED0_TOGGLE (LED_PORT->PTOR = (1 << LED0_BIT))
60 
65 void board_init(void);
66 
67 #ifdef __cplusplus
68 }
69 #endif
70 
71 #endif /* BOARD_H */
72 
periph_conf.h
board_init
void board_init(void)
Board level initialization.