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 
21 #ifndef BOARD_H
22 #define BOARD_H
23 
24 #include "cpu.h"
25 #include "periph_conf.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
35 #define XTIMER_DEV (0)
36 #define XTIMER_CHAN (0)
37 #define XTIMER_WIDTH (24)
38 #define XTIMER_BACKOFF (40)
39 
45 #define MINI_LED_COL1 GPIO_PIN(0, 4)
46 #define MINI_LED_COL2 GPIO_PIN(0, 5)
47 #define MINI_LED_COL3 GPIO_PIN(0, 6)
48 #define MINI_LED_COL4 GPIO_PIN(0, 7)
49 #define MINI_LED_COL5 GPIO_PIN(0, 8)
50 #define MINI_LED_COL6 GPIO_PIN(0, 9)
51 #define MINI_LED_COL7 GPIO_PIN(0, 10)
52 #define MINI_LED_COL8 GPIO_PIN(0, 11)
53 #define MINI_LED_COL9 GPIO_PIN(0, 12)
54 #define MINI_LED_ROW1 GPIO_PIN(0, 13)
55 #define MINI_LED_ROW2 GPIO_PIN(0, 14)
56 #define MINI_LED_ROW3 GPIO_PIN(0, 15)
57 
63 #define BTN0_PIN GPIO_PIN(0, 17)
64 #define BTN1_PIN GPIO_PIN(0, 26)
65 
70 void board_init(void);
71 
72 #ifdef __cplusplus
73 }
74 #endif
75 
76 #endif
void board_init(void)
Initialize the board, also triggers the CPU initialization.
Peripheral configuration for the Calliope mini.