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 */