limifrog-v1/include/board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Hamburg University of Applied Sciences
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 
21 #ifndef BOARD_H
22 #define BOARD_H
23 
24 #include <stdint.h>
25 
26 #include "cpu.h"
27 #include "periph_conf.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
37 #define LED0_PIN GPIO_PIN(PORT_C, 3)
38 
39 #define LED0_PORT (GPIOC)
40 #define LED0_MASK (1 << 3)
41 
42 #define LED0_ON (LED0_PORT->BSRR = LED0_MASK)
43 #define LED0_OFF (LED0_PORT->BSRR = (LED0_MASK << 16))
44 #define LED0_TOGGLE (LED0_PORT->ODR ^= LED0_MASK)
45 
51  #define XTIMER_WIDTH (16U)
52 
57 void board_init(void);
58 
59 #ifdef __cplusplus
60 }
61 #endif
62 
63 #endif /* BOARD_H */
64 
Peripheral MCU configuration for the limifrog-v1 board.
void board_init(void)
Initialize board specific hardware, including clock, LEDs and std-IO.