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 
24 #ifndef BOARD_H
25 #define BOARD_H
26 
27 #include "cpu.h"
28 #include "periph_conf.h"
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
38 #define XTIMER_WIDTH (24)
39 #define XTIMER_BACKOFF (40)
40 
46 #define MINI_LED_COL1 GPIO_PIN(0, 4)
47 #define MINI_LED_COL2 GPIO_PIN(0, 5)
48 #define MINI_LED_COL3 GPIO_PIN(0, 6)
49 #define MINI_LED_COL4 GPIO_PIN(0, 7)
50 #define MINI_LED_COL5 GPIO_PIN(0, 8)
51 #define MINI_LED_COL6 GPIO_PIN(0, 9)
52 #define MINI_LED_COL7 GPIO_PIN(0, 10)
53 #define MINI_LED_COL8 GPIO_PIN(0, 11)
54 #define MINI_LED_COL9 GPIO_PIN(0, 12)
55 #define MINI_LED_ROW1 GPIO_PIN(0, 13)
56 #define MINI_LED_ROW2 GPIO_PIN(0, 14)
57 #define MINI_LED_ROW3 GPIO_PIN(0, 15)
58 
64 #define BTN0_PIN GPIO_PIN(0, 17)
65 #define BTN0_MODE GPIO_IN
66 #define BTN1_PIN GPIO_PIN(0, 16)
67 #define BTN1_MODE GPIO_IN
68 
73 void board_init(void);
74 
75 #ifdef __cplusplus
76 }
77 #endif
78 
79 #endif /* BOARD_H */
80 
void board_init(void)
Initialize the board, also triggers the CPU initialization.
Peripheral configuration for the Calliope mini.