calliope-mini/include/board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 Freie Universit├Ąt Berlin
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 
22 #ifndef BOARD_H
23 #define BOARD_H
24 
25 #include "cpu.h"
26 #include "periph_conf.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
36 #define XTIMER_WIDTH (24)
37 #define XTIMER_BACKOFF (40)
38 
44 #define MINI_LED_COL1 GPIO_PIN(0, 4)
45 #define MINI_LED_COL2 GPIO_PIN(0, 5)
46 #define MINI_LED_COL3 GPIO_PIN(0, 6)
47 #define MINI_LED_COL4 GPIO_PIN(0, 7)
48 #define MINI_LED_COL5 GPIO_PIN(0, 8)
49 #define MINI_LED_COL6 GPIO_PIN(0, 9)
50 #define MINI_LED_COL7 GPIO_PIN(0, 10)
51 #define MINI_LED_COL8 GPIO_PIN(0, 11)
52 #define MINI_LED_COL9 GPIO_PIN(0, 12)
53 #define MINI_LED_ROW1 GPIO_PIN(0, 13)
54 #define MINI_LED_ROW2 GPIO_PIN(0, 14)
55 #define MINI_LED_ROW3 GPIO_PIN(0, 15)
56 
62 #define BTN0_PIN GPIO_PIN(0, 17)
63 #define BTN0_MODE GPIO_IN
64 #define BTN1_PIN GPIO_PIN(0, 26)
65 #define BTN1_MODE GPIO_IN
66 
71 void board_init(void);
72 
73 #ifdef __cplusplus
74 }
75 #endif
76 
77 #endif /* BOARD_H */
78 
void board_init(void)
Initialize the board, also triggers the CPU initialization.
Peripheral configuration for the Calliope mini.