From 69ac014664297aacc5c6fd1424e51754756e0a9d Mon Sep 17 00:00:00 2001 From: Francisco Molina Date: Tue, 7 Dec 2021 20:16:20 +0100 Subject: [PATCH] drivers/*: add HAVE* --- drivers/ads101x/Kconfig | 7 ++++++- drivers/bmx280/Kconfig | 1 + drivers/hts221/Kconfig | 6 ++++++ drivers/lis3mdl/Kconfig | 6 ++++++ drivers/sht3x/Kconfig | 6 ++++++ 5 files changed, 25 insertions(+), 1 deletion(-) diff --git a/drivers/ads101x/Kconfig b/drivers/ads101x/Kconfig index 6e1e91a438..eb5a80192e 100644 --- a/drivers/ads101x/Kconfig +++ b/drivers/ads101x/Kconfig @@ -36,5 +36,10 @@ config ADS101X_I2C_ADDRESS ADS101X allows for upto 4 devices on Single Bus. The value depends on the state of ADDR Pin. Default value (0x48) corresponds to ADDR pin tied to GND. For more information refer I2C Address Selection in Datasheet. - endif # KCONFIG_USEMODULE_ADS101X + +config HAVE_ADS101X + bool + select MODULE_ADS101X if MODULE_SAUL_DEFAULT + help + Indicates that an ADS101X Analog-to-Digital converter is present. diff --git a/drivers/bmx280/Kconfig b/drivers/bmx280/Kconfig index 1b45c8d2e0..9db3ead4d8 100644 --- a/drivers/bmx280/Kconfig +++ b/drivers/bmx280/Kconfig @@ -78,5 +78,6 @@ config HAVE_BMP280_SPI config HAVE_BMX280 bool + select MODULE_BMX280 if MODULE_SAUL_DEFAULT help Indicates that a bmx280 sensor is present. diff --git a/drivers/hts221/Kconfig b/drivers/hts221/Kconfig index ee797b3e45..c0d6f1bca3 100644 --- a/drivers/hts221/Kconfig +++ b/drivers/hts221/Kconfig @@ -10,3 +10,9 @@ config MODULE_HTS221 depends on HAS_PERIPH_I2C depends on TEST_KCONFIG select MODULE_PERIPH_I2C + +config HAVE_HTS221 + bool + select MODULE_HTS221 if MODULE_SAUL_DEFAULT + help + Indicates that a ST HTS221 sensor is present. diff --git a/drivers/lis3mdl/Kconfig b/drivers/lis3mdl/Kconfig index de0cd496ba..5b0f8b0d71 100644 --- a/drivers/lis3mdl/Kconfig +++ b/drivers/lis3mdl/Kconfig @@ -11,3 +11,9 @@ config MODULE_LIS3MDL depends on TEST_KCONFIG select MODULE_PERIPH_I2C select MODULE_XTIMER + +config HAVE_LIS3MDL + bool + select MODULE_LIS3MDL if MODULE_SAUL_DEFAULT + help + Indicates that a lismdl sensor is present. diff --git a/drivers/sht3x/Kconfig b/drivers/sht3x/Kconfig index d83ca53ad2..c0713f900b 100644 --- a/drivers/sht3x/Kconfig +++ b/drivers/sht3x/Kconfig @@ -12,3 +12,9 @@ config MODULE_SHT3X select MODULE_PERIPH_I2C select MODULE_CHECKSUM select MODULE_XTIMER + +config HAVE_SHT3X + bool + select MODULE_SHT3X if MODULE_SAUL_DEFAULT + help + Indicates that a SHT30/SHT31/SHT35 sensor is present.