board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 Fundacion Inria Chile
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser General
5  * Public License v2.1. See the file LICENSE in the top level directory for more
6  * details.
7  */
8 
19 #ifndef BOARD_H
20 #define BOARD_H
21 
22 #include <stdint.h>
23 
24 #include "cpu.h"
25 #include "periph_conf.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
35 #define LED0_PIN GPIO_PIN(PORT_B, 2)
36 
37 #define LED0_MASK (1 << 2)
38 
39 #define LED0_ON (GPIOB->BSRR = LED0_MASK)
40 #define LED0_OFF (GPIOB->BSRR = (LED0_MASK << 16))
41 #define LED0_TOGGLE (GPIOB->ODR ^= LED0_MASK)
42 
47 void board_init(void);
48 
49 #ifdef __cplusplus
50 }
51 #endif
52 
53 #endif /* BOARD_H */
54 
periph_conf.h
Peripheral MCU configuration for the limifrog-v1 board.
board_init
void board_init(void)
Board level initialization.