board.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2017 Inria
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
18 #include <stdint.h>
19 
20 #include "cpu.h"
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
30 #define LED0_PIN_NUM 5
31 #define LED0_PORT GPIO_PORT_A
32 #define LED0_PORT_NUM PORT_A
33 
34 #define LED1_PIN_NUM 14
35 #define LED1_PORT GPIO_PORT_B
36 #define LED1_PORT_NUM PORT_B
43 #define BTN0_PIN GPIO_PIN(PORT_C, 13)
44 #define BTN0_MODE GPIO_IN_PU
51 #define HTS221_PARAM_I2C I2C_DEV(1)
58 #define LIS3MDL_PARAM_I2C I2C_DEV(1)
65 #define LPSXXX_PARAM_I2C I2C_DEV(1)
72 #define LSM6DSXX_PARAM_I2C I2C_DEV(1)
73 #define LSM6DSXX_PARAM_ADDR (0x6A)
76 #ifdef __cplusplus
77 }
78 #endif
79 
80 #include "stm32_leds.h"
81 
Common LED macros.