From d7154dc2588a5deb58c973253c480eb981221372 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Tue, 7 Nov 2017 15:03:58 +0100 Subject: [PATCH] boards/limifrog-v1: load lis3mdl module when SAUL is --- boards/limifrog-v1/Makefile.dep | 3 +++ boards/limifrog-v1/include/board.h | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100644 boards/limifrog-v1/Makefile.dep diff --git a/boards/limifrog-v1/Makefile.dep b/boards/limifrog-v1/Makefile.dep new file mode 100644 index 0000000000..2c1c87fc08 --- /dev/null +++ b/boards/limifrog-v1/Makefile.dep @@ -0,0 +1,3 @@ +ifneq (,$(filter saul_default,$(USEMODULE))) + USEMODULE += lis3mdl +endif diff --git a/boards/limifrog-v1/include/board.h b/boards/limifrog-v1/include/board.h index 2cde01b70b..69d4970f6d 100644 --- a/boards/limifrog-v1/include/board.h +++ b/boards/limifrog-v1/include/board.h @@ -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 */