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

boards/limifrog-v1: load lis3mdl module when SAUL is

This commit is contained in:
Alexandre Abadie 2017-11-07 15:03:58 +01:00
parent 7727871923
commit d7154dc258
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,3 @@
ifneq (,$(filter saul_default,$(USEMODULE)))
USEMODULE += lis3mdl
endif

View File

@ -51,6 +51,14 @@ extern "C" {
#define XTIMER_WIDTH (16U)
/** @} */
/**
* @name Define the interface to the LIS3MDL 3-axis magnetometer
* @{
*/
#define LIS3MDL_PARAM_I2C (I2C_DEV(1))
#define LIS3MDL_PARAM_ADDR (0x28)
/** @} */
/**
* @brief Initialize board specific hardware, including clock, LEDs and std-IO
*/