board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 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 
19 #ifndef BOARD_H
20 #define BOARD_H
21 
22 #include "cpu.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
32 #define BTN0_PIN GPIO_PIN(0, 11)
33 #define BTN0_MODE GPIO_IN_PU
34 
40 #define SPK_PWR_CTRL_PIN GPIO_PIN(0, 29)
41 #define VDD_PWR_CTRL_PIN GPIO_PIN(0, 30)
48 #define LIS2DH12_PARAM_I2C I2C_DEV(1)
49 
55 #define LPSXXX_PARAM_ADDR (0x5c)
56 
61 void board_init(void);
62 
63 #ifdef __cplusplus
64 }
65 #endif
66 
67 #endif /* BOARD_H */
68 
board_init
void board_init(void)
Board level initialization.