From f08f3886ec0b98bcd3a5df6407f4a91336c17568 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:27 +0100 Subject: [PATCH 01/83] drivers/ad7746: Update kconfig model --- drivers/ad7746/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/ad7746/Kconfig b/drivers/ad7746/Kconfig index 5ddd7b2363..9a04e06058 100644 --- a/drivers/ad7746/Kconfig +++ b/drivers/ad7746/Kconfig @@ -14,3 +14,9 @@ config MODULE_AD7746 select MODULE_ZTIMER_MSEC help AD7746 Capacitance-to-digital converter with temperature sensor driver. + +config HAVE_AD7746 + bool + select MODULE_AD7746 if MODULE_SAUL_DEFAULT + help + Indicates that an AD7746 capacitance-to-digital converter is present. From af45f94a2f43b4dea179c1b27800a674b1a3ea27 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:28 +0100 Subject: [PATCH 02/83] drivers/adcxx1c: Update kconfig model --- drivers/adcxx1c/Kconfig | 71 ++++++++++++++++++---------- tests/driver_adcxx1c/app.config.test | 1 + 2 files changed, 47 insertions(+), 25 deletions(-) diff --git a/drivers/adcxx1c/Kconfig b/drivers/adcxx1c/Kconfig index be4f322b9f..deea57db74 100644 --- a/drivers/adcxx1c/Kconfig +++ b/drivers/adcxx1c/Kconfig @@ -5,32 +5,10 @@ # directory for more details. # -choice - bool "ADCXX1C Analog-to-Digital converter" - depends on HAS_PERIPH_GPIO - depends on HAS_PERIPH_GPIO_IRQ - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - optional - help - This driver works with adc081c, adc101c and adc121c models. Select one. - -config MODULE_ADC081C - bool "ADC081C" - select MODULE_ADCXX1C - -config MODULE_ADC101C - bool "ADC101C" - select MODULE_ADCXX1C - -config MODULE_ADC121C - bool "ADC121C" - select MODULE_ADCXX1C - -endchoice - -config MODULE_ADCXX1C +menuconfig MODULE_ADCXX1C bool + prompt "ADCXX1C Analog-to-Digital converter" if !(SAUL_DEFAULT && HAVE_ADCXX1C) + default SAUL_DEFAULT && HAVE_ADCXX1C depends on HAS_PERIPH_GPIO depends on HAS_PERIPH_GPIO_IRQ depends on HAS_PERIPH_I2C @@ -38,3 +16,46 @@ config MODULE_ADCXX1C select MODULE_PERIPH_GPIO select MODULE_PERIPH_GPIO_IRQ select MODULE_PERIPH_I2C + +choice ADCXX1C_VARIANT + bool "Variants" + depends on MODULE_ADCXX1C + default MODULE_ADC081C if HAVE_ADC081C + default MODULE_ADC101C if HAVE_ADC101C + default MODULE_ADC121C if HAVE_ADC121C + help + This driver works with adc081c, adc101c and adc121c models. Select one. + +config MODULE_ADC081C + bool "ADC081C" + +config MODULE_ADC101C + bool "ADC101C" + +config MODULE_ADC121C + bool "ADC121C" + +endchoice + +config HAVE_ADCXX1C + bool + help + Indicates that ADCXX1C Analog-to-Digital is present. + +config HAVE_ADC081C + bool + select HAVE_ADCXX1C + help + Indicates that ADC081C Analog-to-Digital is present. + +config HAVE_ADC101C + bool + select HAVE_ADCXX1C + help + Indicates that ADC101C Analog-to-Digital is present. + +config HAVE_ADC121C + bool + select HAVE_ADCXX1C + help + Indicates that ADC121C Analog-to-Digital is present. diff --git a/tests/driver_adcxx1c/app.config.test b/tests/driver_adcxx1c/app.config.test index 038dc8fd2d..1c7df91a88 100644 --- a/tests/driver_adcxx1c/app.config.test +++ b/tests/driver_adcxx1c/app.config.test @@ -1,4 +1,5 @@ # this file enables modules defined in Kconfig. Do not use this file for # application configuration. This is only needed during migration. CONFIG_MODULE_ADC081C=y +CONFIG_MODULE_ADCXX1C=y CONFIG_MODULE_XTIMER=y From a3e057866c25ff7b38e38c7984eb0283459afde9 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:28 +0100 Subject: [PATCH 03/83] drivers/adt7310: Update kconfig model --- drivers/adt7310/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/adt7310/Kconfig b/drivers/adt7310/Kconfig index 71b202cfaa..6f0c3b9685 100644 --- a/drivers/adt7310/Kconfig +++ b/drivers/adt7310/Kconfig @@ -12,3 +12,8 @@ config MODULE_ADT7310 select MODULE_PERIPH_SPI help Driver for the Analog Devices ADT7310 temperature sensor. + +config HAVE_ADT7310 + bool + help + Indicates that the Analog Devices ADT7310 temperature sensor is present. From 4afca9b8f1f617f9b5ac7a4199398c8c8b0bb547 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:29 +0100 Subject: [PATCH 04/83] drivers/aip31068: Update kconfig model --- drivers/aip31068/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/aip31068/Kconfig b/drivers/aip31068/Kconfig index fc53fe3152..0b8df42793 100644 --- a/drivers/aip31068/Kconfig +++ b/drivers/aip31068/Kconfig @@ -11,3 +11,8 @@ config MODULE_AIP31068 depends on TEST_KCONFIG select MODULE_XTIMER select MODULE_PERIPH_I2C + +config HAVE_AIP31068 + bool + help + Indicates that the AIP31068 I2C LCD controller is present. From 5121c00738e81db6aaaf822a36381812ce6356a2 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:29 +0100 Subject: [PATCH 05/83] drivers/apa102: Update kconfig model --- drivers/apa102/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/apa102/Kconfig b/drivers/apa102/Kconfig index 83271f64b1..d0093e1408 100644 --- a/drivers/apa102/Kconfig +++ b/drivers/apa102/Kconfig @@ -10,3 +10,8 @@ config MODULE_APA102 depends on HAS_PERIPH_GPIO depends on TEST_KCONFIG select MODULE_PERIPH_GPIO + +config HAVE_APA102 + bool + help + Indicates that the APA102 RGB LED is present. From 7204a0b486f89fe6924940a02c8f841e43506fc2 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:30 +0100 Subject: [PATCH 06/83] drivers/apds99xx: Update kconfig model --- drivers/apds99xx/Kconfig | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/apds99xx/Kconfig b/drivers/apds99xx/Kconfig index 4f808f0e08..cbe46c5560 100644 --- a/drivers/apds99xx/Kconfig +++ b/drivers/apds99xx/Kconfig @@ -8,6 +8,7 @@ menuconfig MODULE_APDS99XX bool prompt "APDS99xx Broadcom Sensors" if !(MODULE_SAUL_DEFAULT && HAVE_APDS99XX) + default MODULE_SAUL_DEFAULT && HAVE_APDS99XX depends on HAS_PERIPH_I2C depends on TEST_KCONFIG select MODULE_PERIPH_I2C @@ -28,7 +29,7 @@ menuconfig MODULE_APDS99XX if MODULE_APDS99XX choice APDS99XX_VARIANT - bool "Model" + bool "Variants" default MODULE_APDS9900 if HAVE_APDS9900 default MODULE_APDS9901 if HAVE_APDS9901 default MODULE_APDS9930 if HAVE_APDS9930 @@ -55,17 +56,15 @@ config MODULE_APDS9960 endchoice -endif # MODULE_APDS99XX - config MODULE_APDS99XX_FULL bool "APDS99XX Full functionalities" - depends on MODULE_APDS99XX depends on HAS_PERIPH_GPIO_IRQ select MODULE_PERIPH_GPIO_IRQ +endif # MODULE_APDS99XX + config HAVE_APDS99XX bool - select MODULE_APDS99XX if MODULE_SAUL_DEFAULT help Indicates that a apds99xx sensor is present. From 470e7aaae43732d943a7b86b7e14d640329229fa Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:30 +0100 Subject: [PATCH 07/83] drivers/at25xxx: Update kconfig model --- drivers/at25xxx/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/at25xxx/Kconfig b/drivers/at25xxx/Kconfig index bdda9e9e25..bae51c68d0 100644 --- a/drivers/at25xxx/Kconfig +++ b/drivers/at25xxx/Kconfig @@ -15,3 +15,8 @@ config MODULE_AT25XXX help This driver also supports M95xxx, 25AAxxx, 25LCxxx, CAT25xxx & BR25Sxxx families. + +config HAVE_AT25XXX + bool + help + Indicates that the AT25xxx SPI-EEPROM is present. From 323a88ead21c9f62767d7a2822f16a0e97ed918c Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:31 +0100 Subject: [PATCH 08/83] drivers/at30tse75x: Update kconfig model --- drivers/at30tse75x/Kconfig | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/at30tse75x/Kconfig b/drivers/at30tse75x/Kconfig index ab2a725cbc..20d7b795c6 100644 --- a/drivers/at30tse75x/Kconfig +++ b/drivers/at30tse75x/Kconfig @@ -5,13 +5,8 @@ # directory for more details. # -comment "AT30TSE75X temperature sensor select by default for the current platform" - depends on MODULE_AT30TSE75X && MODULE_SAUL_DEFAULT && HAVE_AT30TSE75X - config MODULE_AT30TSE75X - bool - prompt "AT30TSE75X temperature sensor" if !(MODULE_SAUL_DEFAULT && HAVE_AT30TSE75X) - default (MODULE_SAUL_DEFAULT && HAVE_AT30TSE75X) + bool "AT30TSE75X temperature sensor" depends on HAS_PERIPH_I2C depends on TEST_KCONFIG select MODULE_PERIPH_I2C @@ -22,5 +17,6 @@ config MODULE_AT30TSE75X config HAVE_AT30TSE75X bool + select MODULE_AT30TSE75X if MODULE_SAUL_DEFAULT help Indicates that a AT30TSE75x sensor is present on the board. From a25f429f0df813cd6711223c6e9460c222ede0a3 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:31 +0100 Subject: [PATCH 09/83] drivers/bh1900nux: Update kconfig model --- drivers/bh1900nux/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/bh1900nux/Kconfig b/drivers/bh1900nux/Kconfig index 367b5ed1e1..9f45138e06 100644 --- a/drivers/bh1900nux/Kconfig +++ b/drivers/bh1900nux/Kconfig @@ -10,3 +10,8 @@ config MODULE_BH1900NUX depends on HAS_PERIPH_I2C depends on TEST_KCONFIG select MODULE_PERIPH_I2C + +config HAVE_BH1900NUX + bool + help + Indicates that the BH1900NUX temperature sensor is present. From d276b89ed0372bb90b176926e141d016df2e3aeb Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:32 +0100 Subject: [PATCH 10/83] drivers/bme680: Update kconfig model --- drivers/bme680/Kconfig | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/drivers/bme680/Kconfig b/drivers/bme680/Kconfig index 623c1ee8bc..0bddba4ef1 100644 --- a/drivers/bme680/Kconfig +++ b/drivers/bme680/Kconfig @@ -6,7 +6,9 @@ # menuconfig MODULE_BME680 - bool "BME680 Temperature/Humidity/Pressure/Gas sensor" + bool + prompt "BME680 Temperature/Humidity/Pressure/Gas sensor" if !(MODULE_SAUL_DEFAULT && HAVE_BME680) + default (MODULE_SAUL_DEFAULT && HAVE_BME680) depends on TEST_KCONFIG select PACKAGE_DRIVER_BME680 select MODULE_ZTIMER if MODULE_SAUL @@ -14,8 +16,10 @@ menuconfig MODULE_BME680 if MODULE_BME680 -choice +choice BME680_VARIANT bool "Device interface" + default MODULE_BME680_I2C if HAVE_BME680_I2C + default MODULE_BME680_SPI if HAVE_BME680_SPI help The device can be connected via different buses, select one. @@ -37,3 +41,20 @@ config MODULE_BME680_FP bool "Enable floating point" endif # MODULE_BME680 + +config HAVE_BME680 + bool + help + Indicates that the BME680 Temperature/Humidity/Pressure/Gas sensor is present. + +config HAVE_BME680_I2C + bool + select HAVE_BME680 + help + Indicates that the BME680 Temperature/Humidity/Pressure/Gas sensor is connected with i2c. + +config HAVE_BME680_SPI + bool + select HAVE_BME680 + help + Indicates that the BME680 Temperature/Humidity/Pressure/Gas sensor is connected with spi. From 7966f184792811dd0412a03155b432190cab78ad Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:32 +0100 Subject: [PATCH 11/83] drivers/bmx055: Update kconfig model --- drivers/bmx055/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/bmx055/Kconfig b/drivers/bmx055/Kconfig index 8438ea70bd..d8d05c3889 100644 --- a/drivers/bmx055/Kconfig +++ b/drivers/bmx055/Kconfig @@ -11,7 +11,6 @@ config MODULE_BMX055 depends on HAS_PERIPH_I2C depends on TEST_KCONFIG select MODULE_PERIPH_I2C - default y if HAVE_BMX055 && MODULE_SAUL_DEFAULT menuconfig KCONFIG_USEMODULE_BMX055 bool "Configure BMX055 driver" From b1fdef7fe5ae6072c126c2d52d94621cf4174fdb Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:33 +0100 Subject: [PATCH 12/83] drivers/bmx280: Update kconfig model --- drivers/bmx280/Kconfig | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/bmx280/Kconfig b/drivers/bmx280/Kconfig index 9db3ead4d8..84a842e63b 100644 --- a/drivers/bmx280/Kconfig +++ b/drivers/bmx280/Kconfig @@ -5,7 +5,6 @@ # directory for more details. # - menuconfig MODULE_BMX280 bool prompt "BMx280 Temperature, pressure and humidity sensors" if !(MODULE_SAUL_DEFAULT && HAVE_BMX280) @@ -52,6 +51,11 @@ endchoice endif # MODULE_BMX280 +config HAVE_BMX280 + bool + help + Indicates that a bmx280 sensor is present. + config HAVE_BME280_I2C bool select HAVE_BMX280 @@ -75,9 +79,3 @@ config HAVE_BMP280_SPI select HAVE_BMX280 help Indicates that a bmp280 sensor on the SPI bus is present. - -config HAVE_BMX280 - bool - select MODULE_BMX280 if MODULE_SAUL_DEFAULT - help - Indicates that a bmx280 sensor is present. From e72c11136f15f74c21b2d5c3c6e20c33df99ff6d Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:33 +0100 Subject: [PATCH 13/83] drivers/bq2429x: Update kconfig model --- drivers/bq2429x/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bq2429x/Kconfig b/drivers/bq2429x/Kconfig index c56b2ddead..ac103f925a 100644 --- a/drivers/bq2429x/Kconfig +++ b/drivers/bq2429x/Kconfig @@ -12,7 +12,6 @@ menuconfig MODULE_BQ2429X depends on TEST_KCONFIG select MODULE_PERIPH_I2C select MODULE_PERIPH_GPIO - default y if HAVE_BQ2429X help The driver can be used with Texas Instruments USB charger ICs: BQ24295, BQ24296, BQ24297, BQ24298, BQ24292I, BQ24296M. @@ -33,6 +32,7 @@ config HAVE_BQ2429X config HAVE_BQ2429X_INT bool + select HAVE_BQ2429X help Indicates that a BQ2429x charger and power management IC is present, with interrupt functionality (the INT pin is connected). From 65e774f81936d1ccc431810c1b89368beb357c5a Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:34 +0100 Subject: [PATCH 14/83] drivers/ccs811: Update kconfig model --- drivers/ccs811/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/ccs811/Kconfig b/drivers/ccs811/Kconfig index 872c5f1f91..0a6fecb79f 100644 --- a/drivers/ccs811/Kconfig +++ b/drivers/ccs811/Kconfig @@ -6,7 +6,9 @@ # menuconfig MODULE_CCS811 - bool "CCS811 digital gas sensor" + bool + prompt "CCS811 digital gas sensor" if !(MODULE_SAUL_DEFAULT && HAVE_CCS811) + default (MODULE_SAUL_DEFAULT && HAVE_CCS811) depends on HAS_PERIPH_GPIO depends on HAS_PERIPH_I2C depends on TEST_KCONFIG @@ -31,6 +33,5 @@ config MODULE_CCS811_FULL config HAVE_CCS811 bool - select MODULE_CCS811 if MODULE_SAUL_DEFAULT help Indicates that a ccs811 sensor is present. From ce4b0f03c0475d9e10c51e4fa926ec99e0b35456 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:34 +0100 Subject: [PATCH 15/83] drivers/cst816s: Update kconfig model --- drivers/cst816s/Kconfig | 20 ++++++++++++++++++++ tests/driver_cst816s/app.config.test | 4 ++++ 2 files changed, 24 insertions(+) create mode 100644 drivers/cst816s/Kconfig create mode 100644 tests/driver_cst816s/app.config.test diff --git a/drivers/cst816s/Kconfig b/drivers/cst816s/Kconfig new file mode 100644 index 0000000000..63de11b005 --- /dev/null +++ b/drivers/cst816s/Kconfig @@ -0,0 +1,20 @@ +# Copyright (c) 2020 HAW Hamburg +# +# This file is subject to the terms and conditions of the GNU Lesser +# General Public License v2.1. See the file LICENSE in the top level +# directory for more details. +# + +config MODULE_CST816S + bool "cst816s touch screen" + depends on HAS_PERIPH_GPIO_IRQ + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + select MODULE_PERIPH_GPIO_IRQ + select MODULE_PERIPH_I2C + select MODULE_XTIMER + +config HAVE_CST816S + bool + help + Indicates that a cst816s touch screen is present. diff --git a/tests/driver_cst816s/app.config.test b/tests/driver_cst816s/app.config.test new file mode 100644 index 0000000000..bdd638ac31 --- /dev/null +++ b/tests/driver_cst816s/app.config.test @@ -0,0 +1,4 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. +CONFIG_MODULE_CST816S=y +CONFIG_MODULE_CORE_THREAD_FLAGS=y From 8979586e7da5820173ebb0b6631204bfab038ef2 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:35 +0100 Subject: [PATCH 16/83] drivers/dac_dds: Update kconfig model --- drivers/dac_dds/Kconfig | 16 ++++++++++++++++ tests/driver_dac_dds/app.config.test | 4 ++++ 2 files changed, 20 insertions(+) create mode 100644 drivers/dac_dds/Kconfig create mode 100644 tests/driver_dac_dds/app.config.test diff --git a/drivers/dac_dds/Kconfig b/drivers/dac_dds/Kconfig new file mode 100644 index 0000000000..82fef9f609 --- /dev/null +++ b/drivers/dac_dds/Kconfig @@ -0,0 +1,16 @@ +# Copyright (c) 2022 HAW Hamburg +# +# This file is subject to the terms and conditions of the GNU Lesser +# General Public License v2.1. See the file LICENSE in the top level +# directory for more details. +# + +config MODULE_DAC_DDS + bool "Common DAC function fallback implementations" + depends on HAS_PERIPH_DAC + depends on HAS_PERIPH_TIMER + depends on HAS_PERIPH_TIMER_PERIODIC + depends on TEST_KCONFIG + select MODULE_PERIPH_DAC + select MODULE_PERIPH_TIMER + select MODULE_PERIPH_TIMER_PERIODIC diff --git a/tests/driver_dac_dds/app.config.test b/tests/driver_dac_dds/app.config.test new file mode 100644 index 0000000000..7ce787bc01 --- /dev/null +++ b/tests/driver_dac_dds/app.config.test @@ -0,0 +1,4 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. +CONFIG_MODULE_DAC_DDS=y +CONFIG_MODULE_SHELL=y From 3b5f4797d4c4d31e6d7427c799f37c3215e932bf Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:35 +0100 Subject: [PATCH 17/83] drivers/dcf77: Update kconfig model --- drivers/dcf77/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/dcf77/Kconfig b/drivers/dcf77/Kconfig index ab05a614ff..e78b362a34 100644 --- a/drivers/dcf77/Kconfig +++ b/drivers/dcf77/Kconfig @@ -13,3 +13,8 @@ config MODULE_DCF77 select MODULE_PERIPH_GPIO select MODULE_PERIPH_GPIO_IRQ select MODULE_XTIMER + +config HAVE_DCF77 + bool + help + Indicates that a dcf77 long wave receiver is present. From 890ba2e1278919c9156eeb0eaaeedd691a8431c6 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:35 +0100 Subject: [PATCH 18/83] drivers/dfplayer: Update kconfig model --- drivers/dfplayer/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/dfplayer/Kconfig b/drivers/dfplayer/Kconfig index a59d6342d4..d70694fa49 100644 --- a/drivers/dfplayer/Kconfig +++ b/drivers/dfplayer/Kconfig @@ -27,3 +27,8 @@ config DFPLAYER_NO_STRERROR help Say y to print error codes as numbers when using the shell, instead of the corresponding standard error string. + +config HAVE_DFPLAYER + bool + help + Indicates that a DFPlayer Mini MP3 Player is present. From 2dd5e76d29413414bd3e61611c75a039e5491e58 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:36 +0100 Subject: [PATCH 19/83] drivers/dht: Update kconfig model --- drivers/dht/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/dht/Kconfig b/drivers/dht/Kconfig index e46efbf8bb..a21f124720 100644 --- a/drivers/dht/Kconfig +++ b/drivers/dht/Kconfig @@ -11,3 +11,9 @@ config MODULE_DHT depends on TEST_KCONFIG select MODULE_PERIPH_GPIO select MODULE_XTIMER + +config HAVE_DHT + bool + select MODULE_DHT if MODULE_SAUL_DEFAULT + help + Indicates that a DHT Humidity and Temperature Sensor is present. From 690b1c87256a48e6b6e63595a0797447455d7b22 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:36 +0100 Subject: [PATCH 20/83] drivers/ds1307: Update kconfig model --- drivers/ds1307/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/ds1307/Kconfig b/drivers/ds1307/Kconfig index b3706623b6..59ea0fc8a2 100644 --- a/drivers/ds1307/Kconfig +++ b/drivers/ds1307/Kconfig @@ -10,3 +10,8 @@ config MODULE_DS1307 depends on HAS_PERIPH_I2C depends on TEST_KCONFIG select MODULE_PERIPH_I2C + +config HAVE_DS1307 + bool + help + Indicates that a DS1307 real-time clock is present. From d2c32520748cb11ce34bc1576ab0054c216154e4 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:37 +0100 Subject: [PATCH 21/83] drivers/ds18: Update kconfig model --- drivers/ds18/Kconfig | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/ds18/Kconfig b/drivers/ds18/Kconfig index 93c7ff824a..2c94f31bb6 100644 --- a/drivers/ds18/Kconfig +++ b/drivers/ds18/Kconfig @@ -6,7 +6,9 @@ # menuconfig MODULE_DS18 - bool "DS18 temperature sensors" + bool + prompt "DS18 temperature sensors" if !(MODULE_SAUL_DEFAULT && HAVE_DS18) + default (MODULE_SAUL_DEFAULT && HAVE_DS18) depends on HAS_PERIPH_GPIO depends on TEST_KCONFIG select MODULE_PERIPH_GPIO @@ -18,3 +20,8 @@ config MODULE_DS18_OPTIMIZED help Say y to use the optimized mode if the board can handle ~3us resolution with the xtimer. + +config HAVE_DS18 + bool + help + Indicates that a DS18 temperature sensor is present. From d78ffe2fc91bd2c858b4d7a21b6c27a8fa01e0d8 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:37 +0100 Subject: [PATCH 22/83] drivers/ds3231: Update kconfig model --- drivers/ds3231/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/ds3231/Kconfig b/drivers/ds3231/Kconfig index 5d84ef7b62..5526ab0885 100644 --- a/drivers/ds3231/Kconfig +++ b/drivers/ds3231/Kconfig @@ -10,3 +10,8 @@ config MODULE_DS3231 depends on HAS_PERIPH_I2C depends on TEST_KCONFIG select MODULE_PERIPH_I2C + +config HAVE_DS3231 + bool + help + Indicates that a DS3231 real-time clock is present. From fc515df185c422f32a72575ed66e6c461ec10797 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:38 +0100 Subject: [PATCH 23/83] drivers/ds3234: Update kconfig model --- drivers/ds3234/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/ds3234/Kconfig b/drivers/ds3234/Kconfig index 5e8b32f1be..554378c3c5 100644 --- a/drivers/ds3234/Kconfig +++ b/drivers/ds3234/Kconfig @@ -10,3 +10,8 @@ config MODULE_DS3234 depends on HAS_PERIPH_SPI depends on TEST_KCONFIG select MODULE_PERIPH_SPI + +config HAVE_DS3234 + bool + help + Indicates that a DS3234 real-time clock is present. From f26a84d1bb0060789a19a49557fddcc40a3eb2a6 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:38 +0100 Subject: [PATCH 24/83] drivers/ds75lx: Update kconfig model --- drivers/ds75lx/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/ds75lx/Kconfig b/drivers/ds75lx/Kconfig index 088e38c00b..fd9787aa54 100644 --- a/drivers/ds75lx/Kconfig +++ b/drivers/ds75lx/Kconfig @@ -11,3 +11,9 @@ config MODULE_DS75LX depends on TEST_KCONFIG select MODULE_PERIPH_I2C select MODULE_XTIMER + +config HAVE_DS75LX + bool + select MODULE_DS75LX if MODULE_SAUL_DEFAULT + help + Indicates that a DS75LX temperature sensor is present. From 9ebb2230790ec3618ab72c4d9b86a3d59863cf5c Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:39 +0100 Subject: [PATCH 25/83] drivers/dsp0401: Update kconfig model --- drivers/dsp0401/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/dsp0401/Kconfig b/drivers/dsp0401/Kconfig index 00e612c225..39029a2ed7 100644 --- a/drivers/dsp0401/Kconfig +++ b/drivers/dsp0401/Kconfig @@ -14,3 +14,8 @@ config MODULE_DSP0401 select MODULE_PERIPH_PWM select MODULE_ZTIMER select ZTIMER_USEC + +config HAVE_DSP0401 + bool + help + Indicates that a DSP0401 alphanumeric display clock is present. From ff1ac6b2861f7c9fe5afe9759549bcae302c24ba Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:39 +0100 Subject: [PATCH 26/83] drivers/edbg_eui: Update kconfig model --- drivers/edbg_eui/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/edbg_eui/Kconfig b/drivers/edbg_eui/Kconfig index aa6df05a9f..53b8798e44 100644 --- a/drivers/edbg_eui/Kconfig +++ b/drivers/edbg_eui/Kconfig @@ -10,12 +10,12 @@ config MODULE_EDBG_EUI depends on HAS_PERIPH_I2C depends on TEST_KCONFIG select MODULE_PERIPH_I2C - default y if MODULE_EUI_PROVIDER && HAVE_EDBG_EUI help Driver for getting a unique ID from the Atmel Embedded Debugger. config HAVE_EDBG_EUI bool + select MODULE_EDBG_EUI if MODULE_EUI_PROVIDER help Indicates that the Atmel Embedded Debugeger EUI is available on the platform. From 1d05b3f727512e49ecbd11999c7c83e27a000d4c Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:40 +0100 Subject: [PATCH 27/83] drivers/gp2y10xx: Update kconfig model --- drivers/gp2y10xx/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gp2y10xx/Kconfig b/drivers/gp2y10xx/Kconfig index 8e63163e27..d52eed2b47 100644 --- a/drivers/gp2y10xx/Kconfig +++ b/drivers/gp2y10xx/Kconfig @@ -14,6 +14,12 @@ config MODULE_GP2Y10XX select MODULE_PERIPH_ADC select MODULE_XTIMER +config HAVE_GP2Y10XX + bool + select MODULE_GP2Y10XX if MODULE_SAUL_DEFAULT + help + Indicates that a GP2Y10xx Optical Dust Sensor is present. + menuconfig KCONFIG_USEMODULE_GP2Y10XX bool "Configure GP2Y10xx driver" depends on USEMODULE_GP2Y10XX From 4754f339a0f54df0ba3a6b52759a3b80aac3a93e Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:40 +0100 Subject: [PATCH 28/83] drivers/grove_ledbar: Update kconfig model --- drivers/grove_ledbar/Kconfig | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/grove_ledbar/Kconfig b/drivers/grove_ledbar/Kconfig index b64facab67..165b8c0e38 100644 --- a/drivers/grove_ledbar/Kconfig +++ b/drivers/grove_ledbar/Kconfig @@ -7,5 +7,13 @@ config MODULE_GROVE_LEDBAR bool "Grove ledbar" - depends on MODULE_MY9221 + depends on HAS_PERIPH_GPIO depends on TEST_KCONFIG + select MODULE_PERIPH_GPIO + select MODULE_MY9221 + +config HAVE_GROVE_LEDBAR + bool + select MODULE_GROVE_LEDBAR if MODULE_SAUL_DEFAULT + help + Indicates that a Grove ledbar is present. From 1975ccf442a9808e87a8915f244b9484129ef085 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:41 +0100 Subject: [PATCH 29/83] drivers/hd44780: Update kconfig model --- drivers/hd44780/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/hd44780/Kconfig b/drivers/hd44780/Kconfig index 4873610e97..9612cf3ffc 100644 --- a/drivers/hd44780/Kconfig +++ b/drivers/hd44780/Kconfig @@ -13,3 +13,8 @@ config MODULE_HD44780 select MODULE_XTIMER help The display is also known as LCM1602C from Arduino kits. + +config HAVE_HD44780 + bool + help + Indicates that a HD44780 LCD is present. From a311bc19154df9267b452c779e433702f181249b Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:41 +0100 Subject: [PATCH 30/83] drivers/hih6130: Update kconfig model --- drivers/hih6130/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/hih6130/Kconfig b/drivers/hih6130/Kconfig index 989bbb4599..db3ee79a66 100644 --- a/drivers/hih6130/Kconfig +++ b/drivers/hih6130/Kconfig @@ -14,3 +14,8 @@ config MODULE_HIH6130 help Device driver for Honeywell HumidIcon Digital Humidity/Temperature Sensors: HIH-6130/6131 Series. + +config HAVE_HIH6130 + bool + help + Indicates that a HIH6130 humidity and temperature sensor is present. From 29874e8f3d68e1bde6e74091b5c6c049816a1b3a Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:42 +0100 Subject: [PATCH 31/83] drivers/hmc5883l: Update kconfig model --- drivers/hmc5883l/Kconfig | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/hmc5883l/Kconfig b/drivers/hmc5883l/Kconfig index e21791afe6..b1546a1fd8 100644 --- a/drivers/hmc5883l/Kconfig +++ b/drivers/hmc5883l/Kconfig @@ -6,7 +6,9 @@ # menuconfig MODULE_HMC5883L - bool "HMC5883L 3-axis digital compass" + bool + prompt "HMC5883L 3-axis digital compass" if !(MODULE_SAUL_DEFAULT && HAVE_HMC5883L) + default (MODULE_SAUL_DEFAULT && HAVE_HMC5883L) depends on HAS_PERIPH_I2C depends on TEST_KCONFIG select MODULE_PERIPH_I2C @@ -18,5 +20,18 @@ config MODULE_HMC5883L_INT depends on HAS_PERIPH_GPIO_IRQ select MODULE_PERIPH_GPIO select MODULE_PERIPH_GPIO_IRQ + default y if HAVE_HMC5883L_INT help Allows to configure an interrupt pin to get an event on data ready. + +config HAVE_HMC5883L + bool + help + Indicates that a HMC5883L 3-axis digital compass is present. + +config HAVE_HMC5883L_INT + bool + select HAVE_HMC5883L + help + Indicates that a HMC5883L 3-axis digital compass is present with + data-ready interrupt pin connected. From bb444214f949c3ebdd3214feede7bfdc1465172d Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:42 +0100 Subject: [PATCH 32/83] drivers/hsc: Update kconfig model --- drivers/hsc/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/hsc/Kconfig b/drivers/hsc/Kconfig index 59919e9a40..46f646f8fe 100644 --- a/drivers/hsc/Kconfig +++ b/drivers/hsc/Kconfig @@ -14,6 +14,12 @@ config MODULE_HSC This driver supports the Honeywell HSC series pressure and temperature sensors that use an I2C interface. +config HAVE_HSC + bool + select MODULE_HSC if MODULE_SAUL_DEFAULT + help + Indicates that a HSC series pressure and temperature sensor is present. + menuconfig KCONFIG_USEMODULE_HSC bool "Configure HSC pressure and temperature sensor driver" depends on USEMODULE_HSC From d2f3e6c0de6feddd648b8a4159c26dd9c08727d5 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:42 +0100 Subject: [PATCH 33/83] drivers/ina2xx: Update kconfig model --- drivers/ina2xx/Kconfig | 34 ++++++++++++++++++++++------- tests/driver_ina2xx/app.config.test | 1 + 2 files changed, 27 insertions(+), 8 deletions(-) diff --git a/drivers/ina2xx/Kconfig b/drivers/ina2xx/Kconfig index 1b57d81ee2..80e8680396 100644 --- a/drivers/ina2xx/Kconfig +++ b/drivers/ina2xx/Kconfig @@ -5,25 +5,43 @@ # directory for more details. # -choice - bool "INA2XX current/power monitor" - optional +menuconfig MODULE_INA2XX + bool + prompt "INA2XX current/power monitor" if !(MODULE_SAUL_DEFAULT && HAVE_INA2XX) + default (MODULE_SAUL_DEFAULT && HAVE_INA2XX) depends on HAS_PERIPH_I2C depends on TEST_KCONFIG + select MODULE_PERIPH_I2C + +choice INA2XX_VARIANT + bool "Variant" + depends on MODULE_INA2XX + default MODULE_INA219 if HAVE_INA219 + default MODULE_INA220 if HAVE_INA220 help Select one of the supported models. config MODULE_INA219 bool "INA219" - select MODULE_INA2XX config MODULE_INA220 bool "INA220" - select MODULE_INA2XX endchoice -config MODULE_INA2XX +config HAVE_INA2XX bool - depends on HAS_PERIPH_I2C - select MODULE_PERIPH_I2C + help + Indicates that a INA2XX current/power monitor is present. + +config HAVE_INA219 + bool + select HAVE_INA2XX + help + Indicates that a INA219 current/power monitor is present. + +config HAVE_INA220 + bool + select HAVE_INA2XX + help + Indicates that a INA220 current/power monitor is present. diff --git a/tests/driver_ina2xx/app.config.test b/tests/driver_ina2xx/app.config.test index 7f713483a4..c6a0ef8c2c 100644 --- a/tests/driver_ina2xx/app.config.test +++ b/tests/driver_ina2xx/app.config.test @@ -3,3 +3,4 @@ CONFIG_MODULE_FMT=y CONFIG_MODULE_FMT_TABLE=y CONFIG_MODULE_INA219=y +CONFIG_MODULE_INA2XX=y From 5007241e84b0e46df5106f893939478319fac4ef Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:43 +0100 Subject: [PATCH 34/83] drivers/ina3221: Update kconfig model --- drivers/ina3221/Kconfig | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/drivers/ina3221/Kconfig b/drivers/ina3221/Kconfig index 273da6170a..73d12ce727 100644 --- a/drivers/ina3221/Kconfig +++ b/drivers/ina3221/Kconfig @@ -6,7 +6,9 @@ # menuconfig MODULE_INA3221 - bool "INA3221 current/power monitor" + bool + prompt "INA3221 current/power monitor" if !(MODULE_SAUL_DEFAULT && HAVE_INA3221) + default (MODULE_SAUL_DEFAULT && HAVE_INA3221) depends on HAS_PERIPH_GPIO depends on HAS_PERIPH_I2C depends on TEST_KCONFIG @@ -14,9 +16,21 @@ menuconfig MODULE_INA3221 select MODULE_PERIPH_I2C config MODULE_INA3221_ALERTS - bool "Altert pins" + bool "Alert pins" depends on HAS_PERIPH_GPIO_IRQ depends on MODULE_INA3221 select MODULE_PERIPH_GPIO_IRQ + default HAVE_INA3221_ALERTS help Say y to enable the usage of alert pins. + +config HAVE_INA3221 + bool + help + Indicates that a INA3221 current/power monitor is present. + +config HAVE_INA3221_ALERTS + bool + select HAVE_INA3221 + help + Indicates that a INA3221 current/power monitor is present with alert pins wired. From 1dbf5836da028fc0f124f58e4146e695b4d5be31 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:43 +0100 Subject: [PATCH 35/83] drivers/io1_xplained: Update kconfig model --- drivers/io1_xplained/Kconfig | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/drivers/io1_xplained/Kconfig b/drivers/io1_xplained/Kconfig index 3e887949a8..ccb62cc803 100644 --- a/drivers/io1_xplained/Kconfig +++ b/drivers/io1_xplained/Kconfig @@ -9,8 +9,20 @@ config MODULE_IO1_XPLAINED bool "Atmel IO1 Xplained Extension board" depends on HAS_PERIPH_GPIO depends on HAS_PERIPH_ADC - depends on MODULE_AT30TSE75X - depends on MODULE_SDCARD_SPI + depends on HAS_PERIPH_I2C + depends on HAS_PERIPH_SPI depends on TEST_KCONFIG - select MODULE_PERIPH_GPIO + select MODULE_PERIPH_ADC + select MODULE_PERIPH_GPIO + select MODULE_PERIPH_I2C + select MODULE_PERIPH_SPI + select MODULE_SDCARD_SPI + select MODULE_AT30TSE75X + + +config HAVE_IO1_XPLAINED + bool + select MODULE_IO1_XPLAINED if MODULE_SAUL_DEFAULT + help + Indicates that a Atmel IO1 Xplained Extension board is present. From d5336efb41b529e58b90d635152be625950bf491 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:44 +0100 Subject: [PATCH 36/83] drivers/isl29020: Update kconfig model --- drivers/isl29020/Kconfig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/isl29020/Kconfig b/drivers/isl29020/Kconfig index 8f38236d73..11cb02aee2 100644 --- a/drivers/isl29020/Kconfig +++ b/drivers/isl29020/Kconfig @@ -7,15 +7,14 @@ # config MODULE_ISL29020 - bool - prompt "ISL29020 light sensor" if !(MODULE_SAUL_DEFAULT && HAVE_ISL29020) - default y if (MODULE_SAUL_DEFAULT && HAVE_ISL29020) + bool "ISL29020 light sensor" depends on HAS_PERIPH_I2C depends on TEST_KCONFIG select MODULE_PERIPH_I2C config HAVE_ISL29020 bool + select MODULE_ISL29020 if MODULE_SAUL_DEFAULT help Indicates that a isl29020 sensor is present. From 44d2dbe12cd25dfbe4820f65dfeba0f0a2332724 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:44 +0100 Subject: [PATCH 37/83] drivers/isl29125: Update kconfig model --- drivers/isl29125/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/isl29125/Kconfig b/drivers/isl29125/Kconfig index bd9e787b8e..da0cd5319b 100644 --- a/drivers/isl29125/Kconfig +++ b/drivers/isl29125/Kconfig @@ -14,3 +14,8 @@ config MODULE_ISL29125 select MODULE_PERIPH_GPIO select MODULE_PERIPH_GPIO_IRQ select MODULE_PERIPH_I2C + +config HAVE_ISL29125 + bool + help + Indicates that a ISL29125 RGB light sensor is present. From 73794dc6084432875c6d91d21761f116253e07c7 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:45 +0100 Subject: [PATCH 38/83] drivers/itg320x: Update kconfig model --- drivers/itg320x/Kconfig | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/itg320x/Kconfig b/drivers/itg320x/Kconfig index 243c831c5a..62e6e37c1e 100644 --- a/drivers/itg320x/Kconfig +++ b/drivers/itg320x/Kconfig @@ -6,7 +6,9 @@ # menuconfig MODULE_ITG320X - bool "ITG320X 3-axis gyroscope" + bool + prompt "ITG320X 3-axis gyroscope" if !(MODULE_SAUL_DEFAULT && HAVE_ITG320X) + default (MODULE_SAUL_DEFAULT && HAVE_ITG320X) depends on HAS_PERIPH_I2C depends on TEST_KCONFIG select MODULE_PERIPH_I2C @@ -19,5 +21,18 @@ config MODULE_ITG320X_INT depends on MODULE_ITG320X depends on HAS_PERIPH_GPIO_IRQ select MODULE_PERIPH_GPIO_IRQ + default HAVE_ITG320X_INT help Say y to fetch the data when the data-ready interrupt is triggered. + +config HAVE_ITG320X + bool + help + Indicates that a ITG320X 3-axis gyroscope is present. + +config HAVE_ITG320X_INT + bool + select HAVE_ITG320X + help + Indicates that a ITG320X 3-axis gyroscope is present with interrupt pin + wired. From 247aa5ecb966cc2d713dcacc2c34ffe5882a84fb Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:45 +0100 Subject: [PATCH 39/83] drivers/jc42: Update kconfig model --- drivers/jc42/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/jc42/Kconfig b/drivers/jc42/Kconfig index b2ad9a07f4..5d223a846d 100644 --- a/drivers/jc42/Kconfig +++ b/drivers/jc42/Kconfig @@ -10,3 +10,9 @@ config MODULE_JC42 depends on HAS_PERIPH_I2C depends on TEST_KCONFIG select MODULE_PERIPH_I2C + +config HAVE_JC42 + bool + select MODULE_JC42 if MODULE_SAUL_DEFAULT + help + Indicates that a JC42 compliant temperature sensor is present. From e30ee6aaf0f7714c11c81f7f0cb11bc29f2b7e05 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:46 +0100 Subject: [PATCH 40/83] drivers/lc709203f: Update kconfig model --- drivers/lc709203f/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/lc709203f/Kconfig b/drivers/lc709203f/Kconfig index e3bc874ddc..b2fb0ac5d9 100644 --- a/drivers/lc709203f/Kconfig +++ b/drivers/lc709203f/Kconfig @@ -14,3 +14,8 @@ config MODULE_LC709203F select MODULE_PERIPH_I2C select MODULE_PERIPH_GPIO select MODULE_PERIPH_GPIO_IRQ + +config HAVE_LC709203F + bool + help + Indicates that a LC709203F Battery Fuel Gauge is present. From 1ff07e0133f95b2d2a1c9cf809548ae894f3789d Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:46 +0100 Subject: [PATCH 41/83] 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. From 0ec45257333d2e33691c8f3b4c3d942a8d405089 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:47 +0100 Subject: [PATCH 42/83] drivers/lpd8808: Update kconfig model --- drivers/lpd8808/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/lpd8808/Kconfig b/drivers/lpd8808/Kconfig index 2435f70f7b..3c75840564 100644 --- a/drivers/lpd8808/Kconfig +++ b/drivers/lpd8808/Kconfig @@ -11,3 +11,8 @@ config MODULE_LPD8808 depends on TEST_KCONFIG select MODULE_PERIPH_GPIO select MODULE_COLOR + +config HAVE_LPD8808 + bool + help + Indicates that a LPD8808 based LED Strip is present. From 551d25a296c5e5b6bc62fab4f1d51388199eebb1 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:47 +0100 Subject: [PATCH 43/83] drivers/mhz19: Update kconfig model --- drivers/mhz19/Kconfig | 43 +++++++++++++++++++----------- tests/driver_mhz19/app.config.test | 1 + 2 files changed, 28 insertions(+), 16 deletions(-) diff --git a/drivers/mhz19/Kconfig b/drivers/mhz19/Kconfig index c57d19de1e..1bd2970e5e 100644 --- a/drivers/mhz19/Kconfig +++ b/drivers/mhz19/Kconfig @@ -5,30 +5,41 @@ # directory for more details. # -if TEST_KCONFIG - -menu "MH-Z19 CO2 sensor" - depends on HAS_PERIPH_GPIO || HAS_PERIPH_UART - -config MODULE_MHZ19_UART - bool "MH-Z19 over UART" - depends on HAS_PERIPH_UART - select MODULE_PERIPH_UART - select MODULE_MHZ19 +menuconfig MODULE_MHZ19 + bool + prompt "MH-Z19 CO2 sensor" if !(MODULE_SAUL_DEFAULT && HAVE_MHZ19) + default (MODULE_SAUL_DEFAULT && HAVE_MHZ19) + depends on TEST_KCONFIG select MODULE_ZTIMER select MODULE_ZTIMER_MSEC +if MODULE_MHZ19 + config MODULE_MHZ19_PWM bool "MH-Z19 over PWM" + default HAVE_MHZ19_PWM depends on HAS_PERIPH_GPIO select MODULE_PERIPH_GPIO - select MODULE_MHZ19 - select MODULE_ZTIMER - select MODULE_ZTIMER_MSEC -config MODULE_MHZ19 +config MODULE_MHZ19_UART + bool "MH-Z19 over UART" + default HAVE_MHZ19_UART + depends on HAS_PERIPH_UART + select MODULE_PERIPH_UART + +endif # MODULE_MHZ19 + +config HAVE_MHZ19 bool + help + Indicates that a MH-Z19 CO2 sensor is present. -endmenu # MH-Z19 CO2 sensor +config HAVE_MHZ19_PWM + bool + help + Indicates that a MH-Z19 CO2 sensor is present on the pwm. -endif # TEST_KCONFIG +config HAVE_MHZ19_UART + bool + help + Indicates that a MH-Z19 CO2 sensor is present on the uart. diff --git a/tests/driver_mhz19/app.config.test b/tests/driver_mhz19/app.config.test index 84b8d1a002..59d7c9c4c4 100644 --- a/tests/driver_mhz19/app.config.test +++ b/tests/driver_mhz19/app.config.test @@ -3,6 +3,7 @@ CONFIG_MODULE_ZTIMER=y CONFIG_MODULE_ZTIMER_MSEC=y +CONFIG_MODULE_MHZ19=y # Use UART mode by default CONFIG_MODULE_MHZ19_UART=y #CONFIG_MODULE_MHZ19_PWM=y From 5c6356902558ac58265843f5309a75c9789b9cd2 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:48 +0100 Subject: [PATCH 44/83] drivers/mma7660: Update kconfig model --- drivers/mma7660/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/mma7660/Kconfig b/drivers/mma7660/Kconfig index 48b2838439..a41b293807 100644 --- a/drivers/mma7660/Kconfig +++ b/drivers/mma7660/Kconfig @@ -10,3 +10,9 @@ config MODULE_MMA7660 depends on HAS_PERIPH_I2C depends on TEST_KCONFIG select MODULE_PERIPH_I2C + +config HAVE_MMA7660 + bool + select MODULE_MMA7660 if MODULE_SAUL_DEFAULT + help + Indicates that a MMA7660 Accelerometer is present. From 5e6319fee57819d69846aadd15fffebe9298365a Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:48 +0100 Subject: [PATCH 45/83] drivers/mq3: Update kconfig model --- drivers/mq3/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/mq3/Kconfig b/drivers/mq3/Kconfig index 6affb935cc..598b25e768 100644 --- a/drivers/mq3/Kconfig +++ b/drivers/mq3/Kconfig @@ -10,3 +10,8 @@ config MODULE_MQ3 depends on HAS_PERIPH_ADC depends on TEST_KCONFIG select MODULE_PERIPH_ADC + +config HAVE_MQ3 + bool + help + Indicates that a MQ-3 Alcohol Tester is present. From 5829bfb21817268d522ab6fe95bb63b22b002ec4 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:49 +0100 Subject: [PATCH 46/83] drivers/my9221: Update kconfig model --- drivers/my9221/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/my9221/Kconfig b/drivers/my9221/Kconfig index e17f1f71bd..492d3d6eca 100644 --- a/drivers/my9221/Kconfig +++ b/drivers/my9221/Kconfig @@ -11,3 +11,8 @@ config MODULE_MY9221 depends on TEST_KCONFIG select MODULE_PERIPH_GPIO select MODULE_XTIMER + +config HAVE_MY9221 + bool + help + Indicates that a MY9221 LED controller is present. From 0b25a838ca563679cadf8c55b6555c74442568ce Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:49 +0100 Subject: [PATCH 47/83] drivers/opt3001: Update kconfig model --- drivers/opt3001/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/opt3001/Kconfig b/drivers/opt3001/Kconfig index 46bc1799be..05b5608be9 100644 --- a/drivers/opt3001/Kconfig +++ b/drivers/opt3001/Kconfig @@ -13,6 +13,12 @@ config MODULE_OPT3001 select MODULE_PERIPH_I2C select MODULE_XTIMER +config HAVE_OPT3001 + bool + select MODULE_OPT3001 if MODULE_SAUL_DEFAULT + help + Indicates that a OPT3001 Ambient Light Sensor is present. + menuconfig KCONFIG_USEMODULE_OPT3001 bool "Configure OPT3001 driver" depends on USEMODULE_OPT3001 From 9a3b4f7b9d95f2e5ad0eeb25a383fcaee0d6eb63 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:50 +0100 Subject: [PATCH 48/83] drivers/pca9633: Update kconfig model --- drivers/pca9633/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/pca9633/Kconfig b/drivers/pca9633/Kconfig index f85deec2ee..e306bdc330 100644 --- a/drivers/pca9633/Kconfig +++ b/drivers/pca9633/Kconfig @@ -10,3 +10,8 @@ config MODULE_PCA9633 depends on HAS_PERIPH_I2C depends on TEST_KCONFIG select MODULE_PERIPH_I2C + +config HAVE_PCA9633 + bool + help + Indicates that a PCA9633 I2C PWM controller is present. From 6dfe07de17a074a37787e83f93d38a40ef1e6a4f Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:50 +0100 Subject: [PATCH 49/83] drivers/pca9685: Update kconfig model --- drivers/pca9685/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/pca9685/Kconfig b/drivers/pca9685/Kconfig index 4eb7bf8c85..bbf7b565bd 100644 --- a/drivers/pca9685/Kconfig +++ b/drivers/pca9685/Kconfig @@ -14,3 +14,9 @@ config MODULE_PCA9685 select MODULE_PERIPH_GPIO select MODULE_PERIPH_I2C select MODULE_XTIMER + +config HAVE_PCA9685 + bool + select MODULE_PCA9685 if MODULE_SAUL_DEFAULT + help + Indicates that a PCA9685 I2C PWM controller controller is present. From 0eb86d8c4c2c3f96e292e4778337b5c39e7cc33a Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:51 +0100 Subject: [PATCH 50/83] drivers/pcd8544: Update kconfig model --- drivers/pcd8544/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/pcd8544/Kconfig b/drivers/pcd8544/Kconfig index a6fee34b3b..e0ca092035 100644 --- a/drivers/pcd8544/Kconfig +++ b/drivers/pcd8544/Kconfig @@ -13,3 +13,8 @@ config MODULE_PCD8544 select MODULE_PERIPH_GPIO select MODULE_PERIPH_SPI select MODULE_XTIMER + +config HAVE_PCD8544 + bool + help + Indicates that a PCD8544 LCD is present. From 9f918a8ee0776f2de099e1ffb6d368f5bf428101 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:51 +0100 Subject: [PATCH 51/83] drivers/pcf857x: Update kconfig model --- drivers/pcf857x/Kconfig | 39 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/drivers/pcf857x/Kconfig b/drivers/pcf857x/Kconfig index f60a2ab858..f20a392d71 100644 --- a/drivers/pcf857x/Kconfig +++ b/drivers/pcf857x/Kconfig @@ -6,7 +6,9 @@ # menuconfig MODULE_PCF857X - bool "PCF857x Remote I/O Expander for I2C Bus" + bool + prompt "PCF857x Remote I/O Expander for I2C Bus" if !(MODULE_SAUL_DEFAULT && HAVE_PCF857X) + default (MODULE_SAUL_DEFAULT && HAVE_PCF857X) depends on HAS_PERIPH_GPIO depends on HAS_PERIPH_I2C depends on TEST_KCONFIG @@ -21,16 +23,19 @@ if MODULE_PCF857X config MODULE_PCF8574 bool "PCF8574 Remote 8-Bit I/O is used" + default HAVE_PCF8574 config MODULE_PCF8574A bool "PCF8574A Remote 8-Bit I/O is used" + default HAVE_PCF8574A config MODULE_PCF8575 bool "PCF8575 Remote 16-Bit I/O is used" - default y + default (!(HAVE_PCF8574A || HAVE_PCF8574) || HAVE_PCF8575) config MODULE_PCF857X_IRQ bool "Interrupt support for PCF857x I/O Expander pins" + default PCF857X_IRQ depends on MODULE_PCF857X depends on HAS_PERIPH_GPIO_IRQ select MODULE_PERIPH_GPIO_IRQ @@ -63,3 +68,33 @@ config MODULE_PCF857X_IRQ_HIGHEST endchoice endif # MODULE_PCF857X + +config HAVE_PCF857X + bool + help + Indicates that a PCF857x Remote I/O Expander is present. + +config HAVE_PCF8574 + bool + select HAVE_PCF857X + help + Indicates that a PCF8574 Remote I/O Expander is present. + +config HAVE_PCF8574A + bool + select HAVE_PCF857X + help + Indicates that a PCF8574A Remote I/O Expander is present. + +config HAVE_PCF8575 + bool + select HAVE_PCF857X + help + Indicates that a PCF8575 Remote I/O Expander is present. + +config HAVE_PCF857X_IRQ + bool + select HAVE_PCF857X + help + Indicates that a PCF857x Remote I/O Expander is present with the + interrupt pin wired. From 5f85c26f780a8c34a52199e603c03c3e0748596f Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:52 +0100 Subject: [PATCH 52/83] drivers/ph_oem: Update kconfig model --- drivers/ph_oem/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/ph_oem/Kconfig b/drivers/ph_oem/Kconfig index db65bc035e..a2b0108ebf 100644 --- a/drivers/ph_oem/Kconfig +++ b/drivers/ph_oem/Kconfig @@ -15,3 +15,9 @@ config MODULE_PH_OEM select MODULE_PERIPH_GPIO_IRQ select MODULE_PERIPH_I2C select MODULE_XTIMER + +config HAVE_PH_OEM + bool + select MODULE_PH_OEM if MODULE_SAUL_DEFAULT + help + Indicates that a Atlas Scientific pH OEM sensor is present. From b443ca579497a63aa5b955553febd4fe2484a83a Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:52 +0100 Subject: [PATCH 53/83] drivers/pn532: Update kconfig model --- drivers/pn532/Kconfig | 56 ++++++++++++++++++++---------- tests/driver_pn532/app.config.test | 1 + 2 files changed, 38 insertions(+), 19 deletions(-) diff --git a/drivers/pn532/Kconfig b/drivers/pn532/Kconfig index 45314ca0be..d2ca1ecafa 100644 --- a/drivers/pn532/Kconfig +++ b/drivers/pn532/Kconfig @@ -6,32 +6,50 @@ # directory for more details. # -if TEST_KCONFIG && HAS_PERIPH_GPIO && HAS_PERIPH_GPIO_IRQ - -menu "PN532 NFC reader" - -config MODULE_PN532_I2C - bool "PN532 with I2C support" - depends on HAS_PERIPH_I2C - select MODULE_PERIPH_I2C - select MODULE_PN532 - -config MODULE_PN532_SPI - bool "PN532 with SPI support" - depends on HAS_PERIPH_SPI - select MODULE_PERIPH_SPI - select MODULE_PN532 - -config MODULE_PN532 +menuconfig MODULE_PN532 bool + prompt "PN532 NFC reader" if !(MODULE_SAUL_DEFAULT && HAVE_PN532) + default (MODULE_SAUL_DEFAULT && HAVE_PN532) + depends on TEST_KCONFIG + depends on HAS_PERIPH_GPIO + depends on HAS_PERIPH_GPIO_IRQ select MODULE_PERIPH_GPIO select MODULE_PERIPH_GPIO_IRQ select MODULE_ZTIMER select MODULE_ZTIMER_MSEC -endmenu # PN532 NFC reader +if MODULE_PN532 -endif # TEST_KCONFIG && HAS_PERIPH_GPIO && HAS_PERIPH_GPIO_IRQ +config MODULE_PN532_I2C + bool "PN532 with I2C support" + default HAVE_PN532_I2C + depends on HAS_PERIPH_I2C + select MODULE_PERIPH_I2C + +config MODULE_PN532_SPI + bool "PN532 with SPI support" + default HAVE_PN532_SPI + depends on HAS_PERIPH_SPI + select MODULE_PERIPH_SPI + +endif # MODULE_PN532 + +config HAVE_PN532 + bool + help + Indicates that a PN532 NFC reader is present. + +config HAVE_PN532_I2C + bool + select HAVE_PN532 + help + Indicates that a PN532 NFC reader is present on the i2c bus. + +config HAVE_PN532_SPI + bool + select HAVE_PN532 + help + Indicates that a PN532 NFC reader is present on the spi bus. menuconfig KCONFIG_USEMODULE_PN532 bool "Configure PN532 driver" diff --git a/tests/driver_pn532/app.config.test b/tests/driver_pn532/app.config.test index 8aa03c7b53..d017f96d44 100644 --- a/tests/driver_pn532/app.config.test +++ b/tests/driver_pn532/app.config.test @@ -1,6 +1,7 @@ # this file enables modules defined in Kconfig. Do not use this file for # application configuration. This is only needed during migration. +CONFIG_MODULE_PN532=y # select if you want to build the SPI or the I2C version of the driver CONFIG_MODULE_PN532_I2C=y # CONFIG_MODULE_PN532_SPI=y From c0e7c7f89a6d3e84b87299768743bb4fa40a3811 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:53 +0100 Subject: [PATCH 54/83] drivers/qmc5883l: Update kconfig model --- drivers/qmc5883l/Kconfig | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/qmc5883l/Kconfig b/drivers/qmc5883l/Kconfig index b37c7a7d17..7e855ae12b 100644 --- a/drivers/qmc5883l/Kconfig +++ b/drivers/qmc5883l/Kconfig @@ -6,15 +6,30 @@ # menuconfig MODULE_QMC5883L - bool "QMC5883L 3-Axis Digital Magnetic sensor" + bool + prompt "QMC5883L 3-Axis Digital Magnetic sensor" if !(MODULE_SAUL_DEFAULT && HAVE_QMC5883L) + default (MODULE_SAUL_DEFAULT && HAVE_QMC5883L) depends on HAS_PERIPH_I2C depends on TEST_KCONFIG select MODULE_PERIPH_I2C config MODULE_QMC5883L_INT bool "Interrupt support" + default HAVE_QMC5883L_INT depends on HAS_PERIPH_GPIO depends on HAS_PERIPH_GPIO_IRQ depends on MODULE_QMC5883L select MODULE_PERIPH_GPIO select MODULE_PERIPH_GPIO_IRQ + +config HAVE_QMC5883L + bool + help + Indicates that a QMC5883L 3-Axis Digital Magnetic sensor is present. + +config HAVE_QMC5883L_INT + bool + select HAVE_QMC5883L + help + Indicates that a QMC5883L 3-Axis Digital Magnetic sensor is present with + the interrupt wired. From 934374a464e858694419837d6ef1ec08664cb4c5 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:53 +0100 Subject: [PATCH 55/83] drivers/scd30: Update kconfig model --- drivers/scd30/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/scd30/Kconfig b/drivers/scd30/Kconfig index 07847c192e..b2ca540b45 100644 --- a/drivers/scd30/Kconfig +++ b/drivers/scd30/Kconfig @@ -12,3 +12,9 @@ config MODULE_SCD30 select MODULE_PERIPH_I2C select MODULE_CHECKSUM select MODULE_XTIMER + +config HAVE_SCD30 + bool + select MODULE_SCD30 if MODULE_SAUL_DEFAULT + help + Indicates that a SCD30 CO2, temperature and humidity sensor is present. From 6434c8c3281d62ec10175d4a9504fb7caf7421d6 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:53 +0100 Subject: [PATCH 56/83] drivers/sdcard_spi: Update kconfig model --- drivers/sdcard_spi/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/sdcard_spi/Kconfig b/drivers/sdcard_spi/Kconfig index 2b2f42d659..35fdb1ef5e 100644 --- a/drivers/sdcard_spi/Kconfig +++ b/drivers/sdcard_spi/Kconfig @@ -14,4 +14,10 @@ config MODULE_SDCARD_SPI select MODULE_PERIPH_SPI select MODULE_PERIPH_SPI_RECONFIGURE if HAS_PERIPH_SPI_RECONFIGURE select MODULE_CHECKSUM + select MODULE_ZTIMER select ZTIMER_USEC + +config HAVE_SDCARD_SPI + bool + help + Indicates that a SPI SD-Card is present. From 7f6c1def8a8dc6fd35af6106abb320fbe2aa4ec8 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:54 +0100 Subject: [PATCH 57/83] drivers/sdp3x: Update kconfig model --- drivers/sdp3x/Kconfig | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/sdp3x/Kconfig b/drivers/sdp3x/Kconfig index 57c13385ac..0725f82c46 100644 --- a/drivers/sdp3x/Kconfig +++ b/drivers/sdp3x/Kconfig @@ -6,7 +6,9 @@ # menuconfig MODULE_SDP3X - bool "SDP3X temperature and differential pressure sensor" + bool + prompt "SDP3X temperature and differential pressure sensor" if !(MODULE_SAUL_DEFAULT && HAVE_SDP3X) + default (MODULE_SAUL_DEFAULT && HAVE_SDP3X) depends on HAS_PERIPH_I2C depends on TEST_KCONFIG select MODULE_PERIPH_I2C @@ -15,8 +17,21 @@ menuconfig MODULE_SDP3X config MODULE_SDP3X_IRQ bool "GPIO interrupt support" + default HAVE_SDP3X_IRQ depends on HAS_PERIPH_GPIO depends on HAS_PERIPH_GPIO_IRQ depends on MODULE_SDP3X select MODULE_PERIPH_GPIO select MODULE_PERIPH_GPIO_IRQ + +config HAVE_SDP3X + bool + help + Indicates that a SDP3X temperature and differential pressure sensor is present. + +config HAVE_SDP3X_IRQ + bool + select HAVE_SDP3X + help + Indicates that a SDP3X temperature and differential pressure sensor is + present with the interrupt pin wired. From 1ed8f6b5088a4b0c183fa94b8cc65df80419e5a4 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:54 +0100 Subject: [PATCH 58/83] drivers/sds011: Update kconfig model --- drivers/sds011/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/sds011/Kconfig b/drivers/sds011/Kconfig index 727d23629c..093de7685f 100644 --- a/drivers/sds011/Kconfig +++ b/drivers/sds011/Kconfig @@ -10,3 +10,9 @@ config MODULE_SDS011 depends on HAS_PERIPH_UART depends on TEST_KCONFIG select MODULE_PERIPH_UART + +config HAVE_SDP3X + bool + select MODULE_SDS011 if MODULE_SAUL_DEFAULT + help + Indicates that a SDS011 Laser Dust Sensor is present. From 050ae8b12e905d79f24764b61f31541164a5aa27 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:55 +0100 Subject: [PATCH 59/83] drivers/seesaw_soil: Update kconfig model --- drivers/seesaw_soil/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/seesaw_soil/Kconfig b/drivers/seesaw_soil/Kconfig index 1997fdc3b5..a69008864e 100644 --- a/drivers/seesaw_soil/Kconfig +++ b/drivers/seesaw_soil/Kconfig @@ -13,6 +13,12 @@ config MODULE_SEESAW_SOIL select MODULE_PERIPH_I2C select MODULE_XTIMER +config HAVE_SEESAW_SOIL + bool + select MODULE_SEESAW_SOIL if MODULE_SAUL_DEFAULT + help + Indicates that a Adafruit Seesaw Soil Moisture and Temperature Sensor is present. + menuconfig KCONFIG_MODULE_SEESAW_SOIL bool "Configure SEESAW_SOIL driver" depends on MODULE_SEESAW_SOIL From b539ee82230d0575ed723a46eb7675bc1c2f07d1 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:55 +0100 Subject: [PATCH 60/83] drivers/sgp30: Update kconfig model --- drivers/sgp30/Kconfig | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/sgp30/Kconfig b/drivers/sgp30/Kconfig index d9771a0f80..9e93004d15 100644 --- a/drivers/sgp30/Kconfig +++ b/drivers/sgp30/Kconfig @@ -5,8 +5,10 @@ # directory for more details. # -config MODULE_SGP30 - bool "SGP30 Particulate Matter Sensor" +menuconfig MODULE_SGP30 + bool + prompt "SGP30 Particulate Matter Sensor" if !(MODULE_SAUL_DEFAULT && HAVE_SGP30) + default (MODULE_SAUL_DEFAULT && HAVE_SGP30) depends on HAS_PERIPH_I2C depends on TEST_KCONFIG select MODULE_CHECKSUM @@ -23,3 +25,8 @@ config MODULE_SGP30_STRICT If this module is enabled regular measurements will be performed every second and no values will be returned before the 15s warmup period, see the datasheet for more. + +config HAVE_SGP30 + bool + help + Indicates that a SGP30 Particulate Matter Sensor is present. From 1d720084eedbb2205de1a095197342471521a6c2 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:56 +0100 Subject: [PATCH 61/83] drivers/sht1x: Update kconfig model --- drivers/sht1x/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/sht1x/Kconfig b/drivers/sht1x/Kconfig index 5adf5834f6..b3dfe10e4d 100644 --- a/drivers/sht1x/Kconfig +++ b/drivers/sht1x/Kconfig @@ -14,7 +14,7 @@ menuconfig MODULE_SHT1X select MODULE_PERIPH_GPIO select MODULE_XTIMER -choice +choice SHT1X_VARIANT bool "Select sensor variant" depends on MODULE_SHT1X default MODULE_SHT10 if HAVE_SHT10 From e75462c9040a577af3636e3a61d5d6528f5d3f1e Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:56 +0100 Subject: [PATCH 62/83] drivers/sht2x: Update kconfig model --- drivers/sht2x/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/sht2x/Kconfig b/drivers/sht2x/Kconfig index 4fbc0ab7bf..40ec641a78 100644 --- a/drivers/sht2x/Kconfig +++ b/drivers/sht2x/Kconfig @@ -11,3 +11,9 @@ config MODULE_SHT2X depends on TEST_KCONFIG select MODULE_PERIPH_I2C select MODULE_XTIMER + +config HAVE_SHT2X + bool + select MODULE_SHT2X if MODULE_SAUL_DEFAULT + help + Indicates that a SHT2x temperature and humidity sensor is present. From 578cf66d78a40e955837171f3129052eeffe940d Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:57 +0100 Subject: [PATCH 63/83] drivers/shtc1: Update kconfig model --- drivers/shtc1/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/shtc1/Kconfig b/drivers/shtc1/Kconfig index ada7d211bc..8d5c69fa93 100644 --- a/drivers/shtc1/Kconfig +++ b/drivers/shtc1/Kconfig @@ -11,3 +11,9 @@ config MODULE_SHTC1 depends on TEST_KCONFIG select MODULE_PERIPH_I2C select MODULE_CHECKSUM + +config HAVE_SHTC1 + bool + select MODULE_SHTC1 if MODULE_SAUL_DEFAULT + help + Indicates that a SHTC1 temperature and humidity sensor is present. From 48e88c47aaca6711c70a2e243ec81a061bdd69e4 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:57 +0100 Subject: [PATCH 64/83] drivers/si1133: Update kconfig model --- drivers/si1133/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/si1133/Kconfig b/drivers/si1133/Kconfig index 75b6500dfe..5f15ed5554 100644 --- a/drivers/si1133/Kconfig +++ b/drivers/si1133/Kconfig @@ -10,4 +10,11 @@ config MODULE_SI1133 depends on HAS_PERIPH_I2C depends on TEST_KCONFIG select MODULE_PERIPH_I2C + select MODULE_ZTIMER select ZTIMER_USEC + +config HAVE_SI1133 + bool + select MODULE_SI1133 if MODULE_SAUL_DEFAULT + help + Indicates that a Si1133 UV Index/Ambient Light Sensor is present. From f185d7acabb735d531a1bdf4e25731883ee20e4f Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:58 +0100 Subject: [PATCH 65/83] drivers/si114x: Update kconfig model --- drivers/si114x/Kconfig | 68 +++++++++++++++++++---------- tests/driver_si114x/app.config.test | 1 + 2 files changed, 45 insertions(+), 24 deletions(-) diff --git a/drivers/si114x/Kconfig b/drivers/si114x/Kconfig index 099f545860..9c77c81919 100644 --- a/drivers/si114x/Kconfig +++ b/drivers/si114x/Kconfig @@ -5,33 +5,53 @@ # directory for more details. # -if TEST_KCONFIG - -choice - bool "Si1145/6/7 UV/Ambient light/Proximity sensors" - optional - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - -config MODULE_SI1145 - bool "SI1145" - select MODULE_SI114X - -config MODULE_SI1146 - bool "SI1146" - select MODULE_SI114X - -config MODULE_SI1147 - bool "SI1147" - select MODULE_SI114X - -endchoice - -config MODULE_SI114X +menuconfig MODULE_SI114X bool + prompt "Si1145/6/7 UV/Ambient light/Proximity sensors" if !(MODULE_SAUL_DEFAULT && HAVE_SI114X) + default (MODULE_SAUL_DEFAULT && HAVE_SI114X) + depends on TEST_KCONFIG depends on HAS_PERIPH_I2C select MODULE_PERIPH_I2C select MODULE_ZTIMER select MODULE_ZTIMER_MSEC -endif # TEST_KCONFIG +choice SI114X_VARIANT + bool "variant" + depends on MODULE_SI114X + default MODULE_SI1145 if HAVE_SI1145 + default MODULE_SI1146 if HAVE_SI1146 + default MODULE_SI1147 if HAVE_SI1147 + +config MODULE_SI1145 + bool "SI1145" + +config MODULE_SI1146 + bool "SI1146" + +config MODULE_SI1147 + bool "SI1147" + +endchoice + +config HAVE_SI114X + bool + help + Indicates that a Si114X UV/Ambient light/Proximity sensor is present. + +config HAVE_SI1145 + bool + select HAVE_SI114X + help + Indicates that a Si1145 UV/Ambient light/Proximity sensor is present. + +config HAVE_SI1146 + bool + select HAVE_SI114X + help + Indicates that a Si1146 UV/Ambient light/Proximity sensor is present. + +config HAVE_SI1147 + bool + select HAVE_SI114X + help + Indicates that a Si1147 UV/Ambient light/Proximity sensor is present. diff --git a/tests/driver_si114x/app.config.test b/tests/driver_si114x/app.config.test index 810a7a6bdb..53cdfa9aff 100644 --- a/tests/driver_si114x/app.config.test +++ b/tests/driver_si114x/app.config.test @@ -4,5 +4,6 @@ CONFIG_MODULE_ZTIMER=y CONFIG_MODULE_ZTIMER_MSEC=y +CONFIG_MODULE_SI114X=y # This test should also work with Si1146 and Si1147 variants. CONFIG_MODULE_SI1145=y From 1ace3f0d35c7785965494a351105a5c04e102784 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:58 +0100 Subject: [PATCH 66/83] drivers/si70xx: Update kconfig model --- drivers/si70xx/Kconfig | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/drivers/si70xx/Kconfig b/drivers/si70xx/Kconfig index ccf773efd7..cb5486d6ce 100644 --- a/drivers/si70xx/Kconfig +++ b/drivers/si70xx/Kconfig @@ -5,15 +5,17 @@ # directory for more details. # -config MODULE_SI70XX - bool "Si7006/13/20/21 temperature and humidity sensors" +menuconfig MODULE_SI70XX + bool + prompt "Si7006/13/20/21 temperature and humidity sensors" if !(MODULE_SAUL_DEFAULT && HAVE_SI70XX) + default (MODULE_SAUL_DEFAULT && HAVE_SI70XX) depends on TEST_KCONFIG depends on HAS_PERIPH_I2C select MODULE_PERIPH_I2C select MODULE_ZTIMER select MODULE_ZTIMER_MSEC -choice +choice SI70XX_VARIANT bool "Sensor variant" depends on MODULE_SI70XX default MODULE_SI7006 if HAVE_SI7006 @@ -35,26 +37,31 @@ config MODULE_SI7021 endchoice +config HAVE_SI70XX + bool + help + Indicates that a si70XX sensor is present. + config HAVE_SI7006 bool - select MODULE_SI70XX if MODULE_SAUL_DEFAULT + select HAVE_SI70XX help Indicates that a si7006 sensor is present. config HAVE_SI7013 bool - select MODULE_SI70XX if MODULE_SAUL_DEFAULT + select HAVE_SI70XX help Indicates that a si7013 sensor is present. config HAVE_SI7020 bool - select MODULE_SI70XX if MODULE_SAUL_DEFAULT + select HAVE_SI70XX help Indicates that a si7020 sensor is present. config HAVE_SI7021 bool - select MODULE_SI70XX if MODULE_SAUL_DEFAULT + select HAVE_SI70XX help Indicates that a si7021 sensor is present. From fe25c7a6996c2f8561f882591047284496f7e3a8 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:59 +0100 Subject: [PATCH 67/83] drivers/sm_pwm_01c: Update kconfig model --- drivers/sm_pwm_01c/Kconfig | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/sm_pwm_01c/Kconfig b/drivers/sm_pwm_01c/Kconfig index 6b24b278de..d52c46e716 100644 --- a/drivers/sm_pwm_01c/Kconfig +++ b/drivers/sm_pwm_01c/Kconfig @@ -5,7 +5,9 @@ # directory for more details. # menuconfig MODULE_SM_PWM_01C - bool "SM_PWM_01C Amphenol infrared dust sensor" + bool + prompt "SM_PWM_01C Amphenol infrared dust sensor" if !(MODULE_SAUL_DEFAULT && HAVE_SM_PWM_01C) + default (MODULE_SAUL_DEFAULT && HAVE_SM_PWM_01C) depends on HAS_PERIPH_GPIO depends on HAS_PERIPH_GPIO_IRQ depends on TEST_KCONFIG @@ -20,6 +22,12 @@ config MODULE_SM_PWM_01C_MA depends on MODULE_SM_PWM_01C default y +config HAVE_SM_PWM_01C + bool + help + Indicates that a SM_PWM_01C Amphenol infrared dust sensor is present. + + menuconfig KCONFIG_USEMODULE_SM_PWM_01C bool "Configure SM_PWM_01C driver" depends on USEMODULE_SM_PWM_01C From 6dd67207398872f6beef604d0a8f92eec1e04951 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:59 +0100 Subject: [PATCH 68/83] drivers/sps30: Update kconfig model --- drivers/sps30/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/sps30/Kconfig b/drivers/sps30/Kconfig index fc81f9010d..5967f849c1 100644 --- a/drivers/sps30/Kconfig +++ b/drivers/sps30/Kconfig @@ -13,6 +13,12 @@ config MODULE_SPS30 select MODULE_CHECKSUM select MODULE_PERIPH_I2C +config HAVE_SPS30 + bool + select MODULE_SPS30 if MODULE_SAUL_DEFAULT + help + Indicates that a SPS30 Particulate Matter Sensor is present. + menuconfig KCONFIG_USEMODULE_SPS30 bool "Configure SPS30 driver" depends on USEMODULE_SPS30 From 841a32ecdee3ee240743dd364ed537823b5bb630 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:04:00 +0100 Subject: [PATCH 69/83] drivers/srf02: Update kconfig model --- drivers/srf02/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/srf02/Kconfig b/drivers/srf02/Kconfig index 2b2189917e..33d9925e64 100644 --- a/drivers/srf02/Kconfig +++ b/drivers/srf02/Kconfig @@ -11,3 +11,8 @@ config MODULE_SRF02 depends on TEST_KCONFIG select MODULE_PERIPH_I2C select MODULE_XTIMER + +config HAVE_SRF02 + bool + help + Indicates that a SRF02 ultrasonic range sensor is present. From 32225f1bac1cbd840aa4395e143941017e831585 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:04:00 +0100 Subject: [PATCH 70/83] drivers/srf04: Update kconfig model --- drivers/srf04/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/srf04/Kconfig b/drivers/srf04/Kconfig index cacfa85145..4f73e1bad2 100644 --- a/drivers/srf04/Kconfig +++ b/drivers/srf04/Kconfig @@ -13,3 +13,8 @@ config MODULE_SRF04 select MODULE_PERIPH_GPIO select MODULE_PERIPH_GPIO_IRQ select MODULE_XTIMER + +config HAVE_SRF04 + bool + help + Indicates that a SRF04 ultrasonic range finder is present. From dcf2c224c17bacf976c1834e914c3fa06477949a Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:04:01 +0100 Subject: [PATCH 71/83] drivers/srf08: Update kconfig model --- drivers/srf08/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/srf08/Kconfig b/drivers/srf08/Kconfig index 9b92e9c166..849dafa042 100644 --- a/drivers/srf08/Kconfig +++ b/drivers/srf08/Kconfig @@ -11,3 +11,8 @@ config MODULE_SRF08 depends on TEST_KCONFIG select MODULE_PERIPH_I2C select MODULE_XTIMER + +config HAVE_SRF08 + bool + help + Indicates that a SRF08 ultrasonic range finder is present. From 442f0720598c7cafafd908bae36bf7747a434d80 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:04:01 +0100 Subject: [PATCH 72/83] drivers/sx127x: Update kconfig model --- drivers/sx127x/Kconfig | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/sx127x/Kconfig b/drivers/sx127x/Kconfig index 0af68723af..689798942c 100644 --- a/drivers/sx127x/Kconfig +++ b/drivers/sx127x/Kconfig @@ -6,8 +6,9 @@ # menuconfig MODULE_SX127X - bool "Semtech SX1272 and SX1276 radios driver" if !(HAVE_SX127X && MODULE_NETDEV_DEFAULT) - default y if (HAVE_SX127X && MODULE_NETDEV_DEFAULT) + bool + prompt "Semtech SX1272 and SX1276 radios driver" if !(MODULE_NETDEV_DEFAULT && HAVE_SX127X) + default y if (MODULE_NETDEV_DEFAULT && HAVE_SX127X) depends on TEST_KCONFIG depends on HAS_PERIPH_GPIO depends on HAS_PERIPH_GPIO_IRQ @@ -24,7 +25,7 @@ menuconfig MODULE_SX127X help Only LoRa long range modem is supported at the moment. -choice +choice SX127X_VARIANT bool "Radio variant" depends on MODULE_SX127X default MODULE_SX1272 if HAVE_SX1272 From 622deb1e55d399925f6296dc30818f8be0a8ae12 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:04:02 +0100 Subject: [PATCH 73/83] drivers/tps6274x: Update kconfig model --- drivers/tps6274x/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/tps6274x/Kconfig b/drivers/tps6274x/Kconfig index 2dde65a84b..dea7a48880 100644 --- a/drivers/tps6274x/Kconfig +++ b/drivers/tps6274x/Kconfig @@ -10,3 +10,8 @@ config MODULE_TPS6274X depends on HAS_PERIPH_GPIO depends on TEST_KCONFIG select MODULE_PERIPH_GPIO + +config HAVE_TPS6274X + bool + help + Indicates that a TPS6274x DC-DC converter is present. From 0d6ca333198e0fabf79ed036b975c3935b6f74d9 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:04:02 +0100 Subject: [PATCH 74/83] drivers/tsl2561: Update kconfig model --- drivers/tsl2561/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/tsl2561/Kconfig b/drivers/tsl2561/Kconfig index b394276f6c..6a9d4944ae 100644 --- a/drivers/tsl2561/Kconfig +++ b/drivers/tsl2561/Kconfig @@ -12,3 +12,9 @@ config MODULE_TSL2561 select MODULE_PERIPH_I2C select MODULE_ZTIMER select MODULE_ZTIMER_MSEC + +config HAVE_TSL2561 + bool + select MODULE_TSL2561 if MODULE_SAUL_DEFAULT + help + Indicates that a TSL2561 illuminance sensor is present. From ce2c415dbb7c980b05bf3116745dce11c82efd3d Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:04:02 +0100 Subject: [PATCH 75/83] drivers/tsl4531x: Update kconfig model --- drivers/tsl4531x/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/tsl4531x/Kconfig b/drivers/tsl4531x/Kconfig index 9cdd583c00..643477edc8 100644 --- a/drivers/tsl4531x/Kconfig +++ b/drivers/tsl4531x/Kconfig @@ -11,3 +11,9 @@ config MODULE_TSL4531X depends on TEST_KCONFIG select MODULE_PERIPH_I2C select MODULE_XTIMER + +config HAVE_TSL4531X + bool + select MODULE_TSL4531X if MODULE_SAUL_DEFAULT + help + Indicates that a TSL4531X illuminance sensor is present. From 8064bc74937a7ecaf8eb7eaeca55f3db73477916 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:04:03 +0100 Subject: [PATCH 76/83] drivers/vcnl40x0: Update kconfig model --- drivers/vcnl40x0/Kconfig | 67 ++++++++++++++++++--------- tests/driver_vcnl40x0/app.config.test | 1 + 2 files changed, 45 insertions(+), 23 deletions(-) diff --git a/drivers/vcnl40x0/Kconfig b/drivers/vcnl40x0/Kconfig index c96af4a68e..5e615406f7 100644 --- a/drivers/vcnl40x0/Kconfig +++ b/drivers/vcnl40x0/Kconfig @@ -5,30 +5,51 @@ # directory for more details. # -if TEST_KCONFIG - -choice - bool "VCNL4010/VCNL4020/VCNL4040 Proximity and Ambient Light sensors" - optional - depends on HAS_PERIPH_I2C - -config MODULE_VCNL4010 - bool "VCNL4010" - select MODULE_VCNL40X0 - -config MODULE_VCNL4020 - bool "VCNL4020" - select MODULE_VCNL40X0 - -config MODULE_VCNL4040 - bool "VCNL4040" - select MODULE_VCNL40X0 - -endchoice - -config MODULE_VCNL40X0 +menuconfig MODULE_VCNL40X0 bool + prompt "VCNL4010/VCNL4020/VCNL4040 Proximity and Ambient Light sensors" if !(MODULE_SAUL_DEFAULT && HAVE_VCNL40X0) + default (MODULE_SAUL_DEFAULT && HAVE_VCNL40X0) + depends on TEST_KCONFIG depends on HAS_PERIPH_I2C select MODULE_PERIPH_I2C -endif # TEST_KCONFIG +choice VCNL40X0_VARIANT + bool "variant" + depends on MODULE_VCNL40X0 + default MODULE_VCNL4010 if HAVE_VCNL4010 + default MODULE_VCNL4020 if HAVE_VCNL4020 + default MODULE_VCNL4040 if HAVE_VCNL4040 + +config MODULE_VCNL4010 + bool "VCNL4010" + +config MODULE_VCNL4020 + bool "VCNL4020" + +config MODULE_VCNL4040 + bool "VCNL4040" + +endchoice + +config HAVE_VCNL40X0 + bool + help + Indicates that a VCNL40X0 Proximity and Ambient Light sensor is present. + +config HAVE_VCNL4010 + bool + select HAVE_VCNL40X0 + help + Indicates that a VCNL4010 Proximity and Ambient Light sensor is present. + +config HAVE_VCNL4020 + bool + select HAVE_VCNL40X0 + help + Indicates that a VCNL4020 Proximity and Ambient Light sensor is present. + +config HAVE_VCNL4040 + bool + select HAVE_VCNL40X0 + help + Indicates that a VCNL4040 Proximity and Ambient Light sensor is present. diff --git a/tests/driver_vcnl40x0/app.config.test b/tests/driver_vcnl40x0/app.config.test index f0739544d2..9aa42c625f 100644 --- a/tests/driver_vcnl40x0/app.config.test +++ b/tests/driver_vcnl40x0/app.config.test @@ -1,4 +1,5 @@ # this file enables modules defined in Kconfig. Do not use this file for # application configuration. This is only needed during migration. CONFIG_MODULE_VCNL4010=y +CONFIG_MODULE_VCNL40X0=y CONFIG_MODULE_XTIMER=y From a319ae0c11630db9340f1dcb7216144408b8bbbc Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:04:03 +0100 Subject: [PATCH 77/83] drivers/veml6070: Update kconfig model --- drivers/veml6070/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/veml6070/Kconfig b/drivers/veml6070/Kconfig index 53039e1fd6..c5a967fbb5 100644 --- a/drivers/veml6070/Kconfig +++ b/drivers/veml6070/Kconfig @@ -10,3 +10,9 @@ config MODULE_VEML6070 depends on HAS_PERIPH_I2C depends on TEST_KCONFIG select MODULE_PERIPH_I2C + +config HAVE_VEML6070 + bool + select MODULE_VEML6070 if MODULE_SAUL_DEFAULT + help + Indicates that a VEML6070 UV sensor is present. From 061345a35292778bdec593a2def8d87cd2ea6be0 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:04:04 +0100 Subject: [PATCH 78/83] drivers/ws281x: Update kconfig model --- drivers/ws281x/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/ws281x/Kconfig b/drivers/ws281x/Kconfig index fa59466733..f197f2d34f 100644 --- a/drivers/ws281x/Kconfig +++ b/drivers/ws281x/Kconfig @@ -25,3 +25,8 @@ config MODULE_WS281X_VT100 config MODULE_WS281X_ESP32 bool depends on HAS_ARCH_ESP32 + +config HAVE_WS281X + bool + help + Indicates that a WS2812/SK6812 RGB LED sensor is present. From 482bbc3056ed8c9596c64c9753715ff0efc85bac Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:06:29 +0100 Subject: [PATCH 79/83] drivers/bh1750fvi: Update kconfig model --- drivers/bh1750fvi/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/bh1750fvi/Kconfig b/drivers/bh1750fvi/Kconfig index 7b07db8e52..e0f83ff9c2 100644 --- a/drivers/bh1750fvi/Kconfig +++ b/drivers/bh1750fvi/Kconfig @@ -11,3 +11,8 @@ config MODULE_BH1750FVI depends on TEST_KCONFIG select MODULE_PERIPH_I2C select MODULE_XTIMER + +config HAVE_BH1750FVI + bool + help + Indicates that the BH1750FVI ambient light sensor is present. From c4e4bc2122a5f1dc3a3bf34854103caa665889fc Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:06:32 +0100 Subject: [PATCH 80/83] drivers/mcp2515: Update kconfig model --- drivers/mcp2515/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/mcp2515/Kconfig b/drivers/mcp2515/Kconfig index 0fa4dfc29c..7f17e9f100 100644 --- a/drivers/mcp2515/Kconfig +++ b/drivers/mcp2515/Kconfig @@ -15,3 +15,8 @@ config MODULE_MCP2515 select MODULE_PERIPH_GPIO_IRQ select MODULE_PERIPH_SPI select MODULE_XTIMER + +config HAVE_MCP2515 + bool + help + Indicates that a MCP2515 CAN controller is present. From 0981dc4f8ed09c2a68ea47d47d71909d8c1d478e Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:06:33 +0100 Subject: [PATCH 81/83] drivers/ncv7356: Update kconfig model --- drivers/ncv7356/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/ncv7356/Kconfig b/drivers/ncv7356/Kconfig index ddb14f8492..73bf8347b7 100644 --- a/drivers/ncv7356/Kconfig +++ b/drivers/ncv7356/Kconfig @@ -11,3 +11,8 @@ config MODULE_NCV7356 depends on TEST_KCONFIG select MODULE_PERIPH_GPIO select MODULE_CAN_TRX + +config HAVE_NCV7356 + bool + help + Indicates that a NCV7356 Single Wire CAN Transceiver is present. From dc564b4d03c8c985099e313d8cb0760f3596d875 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:06:35 +0100 Subject: [PATCH 82/83] drivers/tja1042: Update kconfig model --- drivers/tja1042/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/tja1042/Kconfig b/drivers/tja1042/Kconfig index ddc914a6ea..2ef31b88aa 100644 --- a/drivers/tja1042/Kconfig +++ b/drivers/tja1042/Kconfig @@ -11,3 +11,8 @@ config MODULE_TJA1042 depends on TEST_KCONFIG select MODULE_PERIPH_GPIO select MODULE_CAN_TRX + +config HAVE_TJA1042 + bool + help + Indicates that a TJA1042 High Speed CAN transceiver is present. From ed026622d3aeba16e1f94d46663a7d39cc655359 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:07:48 +0100 Subject: [PATCH 83/83] drivers/Kconfig: Add missing kconfig drivers --- drivers/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/Kconfig b/drivers/Kconfig index d17b23b2c1..2fc077999f 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -14,6 +14,7 @@ rsource "saul/Kconfig" menu "Actuator Device Drivers" rsource "aip31068/Kconfig" rsource "apa102/Kconfig" +rsource "dac_dds/Kconfig" rsource "dfplayer/Kconfig" rsource "dynamixel/Kconfig" rsource "feetech/Kconfig" @@ -38,6 +39,7 @@ menu "Miscellaneous Device Drivers" rsource "at/Kconfig" rsource "at24mac/Kconfig" rsource "bq2429x/Kconfig" +rsource "cst816s/Kconfig" rsource "ds1307/Kconfig" rsource "ds3231/Kconfig" rsource "ds3234/Kconfig"