From 785148dd6c3d86fbaa3e82180b95f45eed86b959 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 7 Jan 2021 14:12:35 +0100 Subject: [PATCH 01/12] drivers/tcs37727: add module to Kconfig --- drivers/tcs37727/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/tcs37727/Kconfig b/drivers/tcs37727/Kconfig index 8d7e3510b9f2..70e699d331fd 100644 --- a/drivers/tcs37727/Kconfig +++ b/drivers/tcs37727/Kconfig @@ -1,9 +1,17 @@ # Copyright (c) 2020 Freie Universitaet Berlin +# 2021 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_TCS37727 + bool "TCS37727 RGB Light Sensor" + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + select MODULE_PERIPH_I2C + menuconfig KCONFIG_USEMODULE_TCS37727 bool "Configure TCS37727 driver" depends on USEMODULE_TCS37727 From c3c7040d6c12cbc7576542d6e95bbd12845ec13f Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 7 Jan 2021 14:22:29 +0100 Subject: [PATCH 02/12] drivers/tja1042: add module to Kconfig --- drivers/Kconfig.net | 1 + drivers/tja1042/Kconfig | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 drivers/tja1042/Kconfig diff --git a/drivers/Kconfig.net b/drivers/Kconfig.net index d3f719ba8da7..e04154c799eb 100644 --- a/drivers/Kconfig.net +++ b/drivers/Kconfig.net @@ -16,5 +16,6 @@ rsource "ncv7356/Kconfig" rsource "pn532/Kconfig" rsource "rn2xx3/Kconfig" rsource "slipdev/Kconfig" +rsource "tja1042/Kconfig" source "$(RIOTCPU)/nrf52/radio/nrf802154/Kconfig" endmenu # Network Device Drivers diff --git a/drivers/tja1042/Kconfig b/drivers/tja1042/Kconfig new file mode 100644 index 000000000000..ddc914a6ea24 --- /dev/null +++ b/drivers/tja1042/Kconfig @@ -0,0 +1,13 @@ +# Copyright (c) 2021 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_TJA1042 + bool "TJA1042 High Speed CAN transceiver" + depends on HAS_PERIPH_GPIO + depends on TEST_KCONFIG + select MODULE_PERIPH_GPIO + select MODULE_CAN_TRX From c8e0e49943054b8a595ff5b57fc5a9af72f23aaf Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 7 Jan 2021 14:27:33 +0100 Subject: [PATCH 03/12] drivers/tmp00x: add modules to Kconfig --- drivers/tmp00x/Kconfig | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/drivers/tmp00x/Kconfig b/drivers/tmp00x/Kconfig index e52d7dfc0173..6f24023d4a48 100644 --- a/drivers/tmp00x/Kconfig +++ b/drivers/tmp00x/Kconfig @@ -1,9 +1,36 @@ # Copyright (c) 2020 Freie Universitaet Berlin +# 2021 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. # + +if TEST_KCONFIG + +choice + bool "TMP006/TMP007 Infrared Thermopile sensors" + optional + depends on HAS_PERIPH_I2C + +config MODULE_TMP006 + bool "TMP006" + select MODULE_TMP00X + +config MODULE_TMP007 + bool "TMP007" + select MODULE_TMP00X + +endchoice + +config MODULE_TMP00X + bool + depends on HAS_PERIPH_I2C + select MODULE_PERIPH_I2C + select MODULE_XTIMER + +endif # TEST_KCONFIG + menuconfig KCONFIG_USEMODULE_TMP00X bool "Configure TMP00X driver" depends on USEMODULE_TMP00X From ddbf155cdb3e5060e33781b19eae4f3d222d0a66 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 7 Jan 2021 14:30:16 +0100 Subject: [PATCH 04/12] drivers/touch_dev: add module to Kconfig --- drivers/Kconfig | 1 + drivers/touch_dev/Kconfig | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 drivers/touch_dev/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index 8a5e802827b4..6803e2a0671d 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -25,6 +25,7 @@ rsource "disp_dev/Kconfig" rsource "dsp0401/Kconfig" rsource "hd44780/Kconfig" rsource "ili9341/Kconfig" +rsource "touch_dev/Kconfig" endmenu # Display Device Drivers menu "Miscellaneous Device Drivers" diff --git a/drivers/touch_dev/Kconfig b/drivers/touch_dev/Kconfig new file mode 100644 index 000000000000..b82955c3d377 --- /dev/null +++ b/drivers/touch_dev/Kconfig @@ -0,0 +1,12 @@ +# Copyright (c) 2021 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_TOUCH_DEV + bool "Touch device generic API" + depends on TEST_KCONFIG + help + This API is experimental and in an early state - expect changes! From cce98d2288bf8203c3990dc3e2e6320e61e71169 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 7 Jan 2021 14:33:38 +0100 Subject: [PATCH 05/12] drivers/tps6274x: add module to Kconfig --- drivers/Kconfig | 1 + drivers/tps6274x/Kconfig | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 drivers/tps6274x/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index 6803e2a0671d..cfc34e2f9393 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -36,6 +36,7 @@ rsource "ds3231/Kconfig" rsource "ds3234/Kconfig" rsource "edbg_eui/Kconfig" rsource "io1_xplained/Kconfig" +rsource "tps6274x/Kconfig" rsource "uart_half_duplex/Kconfig" endmenu # Miscellaneous Device Drivers diff --git a/drivers/tps6274x/Kconfig b/drivers/tps6274x/Kconfig new file mode 100644 index 000000000000..2dde65a84bb1 --- /dev/null +++ b/drivers/tps6274x/Kconfig @@ -0,0 +1,12 @@ +# Copyright (c) 2021 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_TPS6274X + bool "TPS6274x DC-DC converter" + depends on HAS_PERIPH_GPIO + depends on TEST_KCONFIG + select MODULE_PERIPH_GPIO From 13f1b70d253f382c8224d39216f8778cb1ac040c Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 7 Jan 2021 14:39:33 +0100 Subject: [PATCH 06/12] drivers/tsl2561: add module to Kconfig --- drivers/Kconfig | 1 + drivers/tsl2561/Kconfig | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 drivers/tsl2561/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index cfc34e2f9393..081f427b070a 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -107,6 +107,7 @@ rsource "qmc5883l/Kconfig" rsource "sps30/Kconfig" rsource "tcs37727/Kconfig" rsource "tmp00x/Kconfig" +rsource "tsl2561/Kconfig" endmenu # Sensor Device Drivers menu "Storage Device Drivers" diff --git a/drivers/tsl2561/Kconfig b/drivers/tsl2561/Kconfig new file mode 100644 index 000000000000..0d29518a8cd1 --- /dev/null +++ b/drivers/tsl2561/Kconfig @@ -0,0 +1,13 @@ +# Copyright (c) 2021 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_TSL2561 + bool "TSL2561 illuminance sensor" + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + select MODULE_PERIPH_I2C + select MODULE_XTIMER From b4696a6d087b20b3bf9991e2b7a90fce549ffaa9 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 7 Jan 2021 14:42:21 +0100 Subject: [PATCH 07/12] drivers/tsl4531x: add module to Kconfig --- drivers/Kconfig | 1 + drivers/tsl4531x/Kconfig | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 drivers/tsl4531x/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index 081f427b070a..8e777767ad92 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -108,6 +108,7 @@ rsource "sps30/Kconfig" rsource "tcs37727/Kconfig" rsource "tmp00x/Kconfig" rsource "tsl2561/Kconfig" +rsource "tsl4531x/Kconfig" endmenu # Sensor Device Drivers menu "Storage Device Drivers" diff --git a/drivers/tsl4531x/Kconfig b/drivers/tsl4531x/Kconfig new file mode 100644 index 000000000000..9cdd583c00c6 --- /dev/null +++ b/drivers/tsl4531x/Kconfig @@ -0,0 +1,13 @@ +# Copyright (c) 2021 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_TSL4531X + bool "TSL4531x Illuminance sensor" + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + select MODULE_PERIPH_I2C + select MODULE_XTIMER From 977b517229f538f8f5bb8e513bbf8d607ce97f6f Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 7 Jan 2021 15:28:56 +0100 Subject: [PATCH 08/12] drivers/usbdev_mock: add module to Kconfig --- drivers/Kconfig | 1 + drivers/usbdev_mock/Kconfig | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 drivers/usbdev_mock/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index 8e777767ad92..cd51a34fb964 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -38,6 +38,7 @@ rsource "edbg_eui/Kconfig" rsource "io1_xplained/Kconfig" rsource "tps6274x/Kconfig" rsource "uart_half_duplex/Kconfig" +rsource "usbdev_mock/Kconfig" endmenu # Miscellaneous Device Drivers rsource "Kconfig.net" diff --git a/drivers/usbdev_mock/Kconfig b/drivers/usbdev_mock/Kconfig new file mode 100644 index 000000000000..2d803d0bf6db --- /dev/null +++ b/drivers/usbdev_mock/Kconfig @@ -0,0 +1,10 @@ +# Copyright (c) 2021 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_USBDEV_MOCK + bool "USBdev mockup device (for testing)" + depends on TEST_KCONFIG From 80cc89510bbaa7f24b51bebfdf3d9fa06efc935b Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 7 Jan 2021 15:35:40 +0100 Subject: [PATCH 09/12] drivers/vcnl40x0: add modules to Kconfig --- drivers/Kconfig | 1 + drivers/vcnl40x0/Kconfig | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 drivers/vcnl40x0/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index cd51a34fb964..7e005f20d2f9 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -110,6 +110,7 @@ rsource "tcs37727/Kconfig" rsource "tmp00x/Kconfig" rsource "tsl2561/Kconfig" rsource "tsl4531x/Kconfig" +rsource "vcnl40x0/Kconfig" endmenu # Sensor Device Drivers menu "Storage Device Drivers" diff --git a/drivers/vcnl40x0/Kconfig b/drivers/vcnl40x0/Kconfig new file mode 100644 index 000000000000..c96af4a68e2c --- /dev/null +++ b/drivers/vcnl40x0/Kconfig @@ -0,0 +1,34 @@ +# Copyright (c) 2021 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. +# + +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 + bool + depends on HAS_PERIPH_I2C + select MODULE_PERIPH_I2C + +endif # TEST_KCONFIG From 2c7616d7d532c2f988b02963a5d89827fe1f6816 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 7 Jan 2021 15:46:15 +0100 Subject: [PATCH 10/12] drivers/veml6070: add module to Kconfig --- drivers/Kconfig | 1 + drivers/veml6070/Kconfig | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 drivers/veml6070/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index 7e005f20d2f9..fd81e84513da 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -111,6 +111,7 @@ rsource "tmp00x/Kconfig" rsource "tsl2561/Kconfig" rsource "tsl4531x/Kconfig" rsource "vcnl40x0/Kconfig" +rsource "veml6070/Kconfig" endmenu # Sensor Device Drivers menu "Storage Device Drivers" diff --git a/drivers/veml6070/Kconfig b/drivers/veml6070/Kconfig new file mode 100644 index 000000000000..53039e1fd6bc --- /dev/null +++ b/drivers/veml6070/Kconfig @@ -0,0 +1,12 @@ +# Copyright (c) 2021 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_VEML6070 + bool "VEML6070 UV sensor" + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + select MODULE_PERIPH_I2C From c0ff2e04d6d18ca457f200dcea84728084e88bb5 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 7 Jan 2021 16:05:35 +0100 Subject: [PATCH 11/12] drivers/ws281x: add modules to Kconfig --- drivers/Kconfig | 1 + drivers/ws281x/Kconfig | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 drivers/ws281x/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index fd81e84513da..87c5e9ae662a 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -18,6 +18,7 @@ rsource "grove_ledbar/Kconfig" rsource "motor_driver/Kconfig" rsource "my9221/Kconfig" rsource "rgbled/Kconfig" +rsource "ws281x/Kconfig" endmenu # Actuator Device Drivers menu "Display Device Drivers" diff --git a/drivers/ws281x/Kconfig b/drivers/ws281x/Kconfig new file mode 100644 index 000000000000..c30dc7d467bd --- /dev/null +++ b/drivers/ws281x/Kconfig @@ -0,0 +1,27 @@ +# Copyright (c) 2021 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_WS281X + bool "WS2812/SK6812 RGB LED (NeoPixel)" + depends on HAS_ARCH_AVR8 || HAS_ARCH_ESP32 || HAS_ARCH_NATIVE + depends on TEST_KCONFIG + select MODULE_XTIMER + select MODULE_WS281X_ATMEGA if HAS_ARCH_AVR8 + select MODULE_WS281X_VT100 if HAS_ARCH_NATIVE + select MODULE_WS281X_ESP32 if HAS_ARCH_ESP32 + +config MODULE_WS281X_ATMEGA + bool + depends on HAS_ARCH_AVR8 + +config MODULE_WS281X_VT100 + bool + depends on HAS_ARCH_NATIVE + +config MODULE_WS281X_ESP32 + bool + depends on HAS_ARCH_ESP32 From 062a6603c65152b65188f06150aa53c093ffd2d8 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 7 Jan 2021 16:07:21 +0100 Subject: [PATCH 12/12] tests/driver: add Kconfig configuration files --- .murdock | 4 ++-- tests/driver_tcs37727/app.config.test | 4 ++++ tests/driver_tmp00x/app.config.test | 4 ++++ tests/driver_tps6274x/app.config.test | 4 ++++ tests/driver_tsl2561/app.config.test | 4 ++++ tests/driver_tsl4531x/app.config.test | 4 ++++ tests/driver_vcnl40x0/app.config.test | 4 ++++ tests/driver_veml6070/app.config.test | 4 ++++ tests/driver_ws281x/app.config.test | 3 +++ 9 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 tests/driver_tcs37727/app.config.test create mode 100644 tests/driver_tmp00x/app.config.test create mode 100644 tests/driver_tps6274x/app.config.test create mode 100644 tests/driver_tsl2561/app.config.test create mode 100644 tests/driver_tsl4531x/app.config.test create mode 100644 tests/driver_vcnl40x0/app.config.test create mode 100644 tests/driver_veml6070/app.config.test create mode 100644 tests/driver_ws281x/app.config.test diff --git a/.murdock b/.murdock index 9da0565efaaa..98cc39cac6ce 100755 --- a/.murdock +++ b/.murdock @@ -22,9 +22,9 @@ tests/driver_mag3110 tests/driver_mhz19 tests/driver_mma7660 tests/driver_motor_driver tests/driver_mpl3115a2 tests/driver_mpu9x50 tests/driver_mq3 tests/driver_my9221 tests/driver_nvram_spi tests/mtd_flashpage tests/mtd_mapper tests/driver_o* tests/driver_p* tests/driver_q* -tests/driver_r*"} +tests/driver_r* tests/driver_t* tests/driver_u* tests/driver_v*"} : ${TEST_KCONFIG_native:="examples/hello-world tests/periph_* -tests/xtimer_* tests/ztimer_*"} +tests/xtimer_* tests/ztimer_* tests/driver_ws281x"} export RIOT_CI_BUILD=1 export CC_NOCOLOR=1 diff --git a/tests/driver_tcs37727/app.config.test b/tests/driver_tcs37727/app.config.test new file mode 100644 index 000000000000..36723a4f9767 --- /dev/null +++ b/tests/driver_tcs37727/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_TCS37727=y +CONFIG_MODULE_XTIMER=y diff --git a/tests/driver_tmp00x/app.config.test b/tests/driver_tmp00x/app.config.test new file mode 100644 index 000000000000..c80016ae6b3d --- /dev/null +++ b/tests/driver_tmp00x/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_TMP006=y +CONFIG_MODULE_XTIMER=y diff --git a/tests/driver_tps6274x/app.config.test b/tests/driver_tps6274x/app.config.test new file mode 100644 index 000000000000..3864d97923e6 --- /dev/null +++ b/tests/driver_tps6274x/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_TPS6274X=y +CONFIG_MODULE_XTIMER=y diff --git a/tests/driver_tsl2561/app.config.test b/tests/driver_tsl2561/app.config.test new file mode 100644 index 000000000000..908d3b509dd9 --- /dev/null +++ b/tests/driver_tsl2561/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_TSL2561=y +CONFIG_MODULE_XTIMER=y diff --git a/tests/driver_tsl4531x/app.config.test b/tests/driver_tsl4531x/app.config.test new file mode 100644 index 000000000000..308095ff9e6e --- /dev/null +++ b/tests/driver_tsl4531x/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_TSL4531X=y +CONFIG_MODULE_XTIMER=y diff --git a/tests/driver_vcnl40x0/app.config.test b/tests/driver_vcnl40x0/app.config.test new file mode 100644 index 000000000000..f0739544d248 --- /dev/null +++ b/tests/driver_vcnl40x0/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_VCNL4010=y +CONFIG_MODULE_XTIMER=y diff --git a/tests/driver_veml6070/app.config.test b/tests/driver_veml6070/app.config.test new file mode 100644 index 000000000000..51f9bf4d3994 --- /dev/null +++ b/tests/driver_veml6070/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_VEML6070=y +CONFIG_MODULE_XTIMER=y diff --git a/tests/driver_ws281x/app.config.test b/tests/driver_ws281x/app.config.test new file mode 100644 index 000000000000..c39ee2382af9 --- /dev/null +++ b/tests/driver_ws281x/app.config.test @@ -0,0 +1,3 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. +CONFIG_MODULE_WS281X=y