1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/stm32f3discovery: add lsm303dlhc configuration

This commit is contained in:
Alexandre Abadie 2021-03-02 17:27:14 +01:00
parent 9458f18f1a
commit 18e58e4963
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,4 @@
ifneq (,$(filter saul_default,$(USEMODULE)))
USEMODULE += saul_gpio
USEMODULE += lsm303dlhc
endif

View File

@ -90,6 +90,12 @@ extern "C" {
#define BTN0_MODE GPIO_IN
/** @} */
/**
* @name LSM303DLHC magnetometer data ready pin
* @{
*/
#define LSM303DLHC_PARAM_MAG_PIN GPIO_PIN(PORT_E, 2)
/** @} */
/**
* @brief Initialize board specific hardware, including clock, LEDs and std-IO