board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 INRIA
3  * Copyright (C) 2016 Freie Universität Berlin
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_H
23 #define BOARD_H
24 
25 #include "cpu.h"
26 #include "periph_conf.h"
27 #include "periph/gpio.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
37 #define LED0_PIN GPIO_PIN(1, 18)
38 #define LED1_PIN GPIO_PIN(1, 20)
39 #define LED2_PIN GPIO_PIN(1, 21)
40 #define LED3_PIN GPIO_PIN(1, 23)
41 
42 #define LED0_ON gpio_clear(LED0_PIN)
43 #define LED0_OFF gpio_set(LED0_PIN)
44 #define LED0_TOGGLE gpio_toggle(LED0_PIN)
45 #define LED1_ON gpio_clear(LED1_PIN)
46 #define LED1_OFF gpio_set(LED1_PIN)
47 #define LED1_TOGGLE gpio_toggle(LED1_PIN)
48 #define LED2_ON gpio_clear(LED2_PIN)
49 #define LED2_OFF gpio_set(LED2_PIN)
50 #define LED2_TOGGLE gpio_toggle(LED2_PIN)
51 #define LED3_ON gpio_clear(LED3_PIN)
52 #define LED3_OFF gpio_set(LED3_PIN)
53 #define LED3_TOGGLE gpio_toggle(LED3_PIN)
54 
59 void board_init(void);
60 
61 #ifdef __cplusplus
62 }
63 #endif
64 
65 #endif /* BOARD_H */
66 
periph_conf.h
Peripheral MCU configuration for the Seeeduino Archo Pro board.
gpio.h
Low-level GPIO peripheral driver interface definitions.
board_init
void board_init(void)
Board level initialization.