From 1ff07e0133f95b2d2a1c9cf809548ae894f3789d Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:46 +0100 Subject: [PATCH] drivers/lis2dh12: Update kconfig model --- drivers/lis2dh12/Kconfig | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/lis2dh12/Kconfig b/drivers/lis2dh12/Kconfig index 28681964ae..24b7663de7 100644 --- a/drivers/lis2dh12/Kconfig +++ b/drivers/lis2dh12/Kconfig @@ -36,12 +36,12 @@ config MODULE_LIS2DH12_INT bool "Interrupt lines support" depends on HAS_PERIPH_GPIO_IRQ select MODULE_PERIPH_GPIO_IRQ + default HAVE_LIS2DH12_INT endif # MODULE_LIS2DH12 config HAVE_LIS2DH12 bool - select MODULE_LIS2DH12 if MODULE_SAUL_DEFAULT help Indicates that a LIS2DH12 Accelerometer is present. @@ -56,3 +56,10 @@ config HAVE_LIS2DH12_SPI select HAVE_LIS2DH12 help Indicates that a LIS2DH12 Accelerometer on the SPI bus is present. + +config HAVE_LIS2DH12_INT + bool + select HAVE_LIS2DH12 + help + Indicates that a LIS2DH12 Accelerometer is present with the interrupt + pin wired.