From 6bcb2f1b3d11eac0f7de9d6291aca32006510cf7 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 26 Nov 2020 16:02:10 +0100 Subject: [PATCH 01/19] sys/checksum: add module to Kconfig --- sys/Kconfig | 1 + sys/checksum/Kconfig | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 sys/checksum/Kconfig diff --git a/sys/Kconfig b/sys/Kconfig index b544ea23f9..6b21d11d88 100644 --- a/sys/Kconfig +++ b/sys/Kconfig @@ -9,6 +9,7 @@ menu "System" rsource "arduino/Kconfig" rsource "auto_init/Kconfig" rsource "benchmark/Kconfig" +rsource "checksum/Kconfig" rsource "color/Kconfig" rsource "div/Kconfig" rsource "embunit/Kconfig" diff --git a/sys/checksum/Kconfig b/sys/checksum/Kconfig new file mode 100644 index 0000000000..8350b7e77e --- /dev/null +++ b/sys/checksum/Kconfig @@ -0,0 +1,10 @@ +# 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_CHECKSUM + bool "Checksum algorithms" + depends on TEST_KCONFIG From bdd3d98477767762bea6721a2c67940d9c20e177 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 26 Nov 2020 10:57:01 +0100 Subject: [PATCH 02/19] drivers/grove_ledbar: add module to Kconfig --- drivers/Kconfig | 1 + drivers/grove_ledbar/Kconfig | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 drivers/grove_ledbar/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index d9beff0f81..42830e5473 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -11,6 +11,7 @@ rsource "saul/Kconfig" menu "Actuator Device Drivers" rsource "aip31068/Kconfig" rsource "apa102/Kconfig" +rsource "grove_ledbar/Kconfig" rsource "motor_driver/Kconfig" endmenu # Actuator Device Drivers diff --git a/drivers/grove_ledbar/Kconfig b/drivers/grove_ledbar/Kconfig new file mode 100644 index 0000000000..b64facab67 --- /dev/null +++ b/drivers/grove_ledbar/Kconfig @@ -0,0 +1,11 @@ +# 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_GROVE_LEDBAR + bool "Grove ledbar" + depends on MODULE_MY9221 + depends on TEST_KCONFIG From 39d9a592cb7339ad5f2da725161fe82629b98df7 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 26 Nov 2020 14:23:42 +0100 Subject: [PATCH 03/19] drivers/gp2y10xx: add module to Kconfig --- drivers/gp2y10xx/Kconfig | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/gp2y10xx/Kconfig b/drivers/gp2y10xx/Kconfig index e54eb805cf..8e63163e27 100644 --- a/drivers/gp2y10xx/Kconfig +++ b/drivers/gp2y10xx/Kconfig @@ -5,6 +5,15 @@ # directory for more details. # +config MODULE_GP2Y10XX + bool "GP2Y10xx Optical Dust Sensor device driver" + depends on HAS_PERIPH_GPIO + depends on HAS_PERIPH_ADC + depends on TEST_KCONFIG + select MODULE_PERIPH_GPIO + select MODULE_PERIPH_ADC + select MODULE_XTIMER + menuconfig KCONFIG_USEMODULE_GP2Y10XX bool "Configure GP2Y10xx driver" depends on USEMODULE_GP2Y10XX From e8180566ebe31039338cf63ef9e735bc121e2ede Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 26 Nov 2020 10:56:24 +0100 Subject: [PATCH 04/19] drivers/my9221: add module to Kconfig --- drivers/Kconfig | 1 + drivers/my9221/Kconfig | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 drivers/my9221/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index 42830e5473..2fd52025a4 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -13,6 +13,7 @@ rsource "aip31068/Kconfig" rsource "apa102/Kconfig" rsource "grove_ledbar/Kconfig" rsource "motor_driver/Kconfig" +rsource "my9221/Kconfig" endmenu # Actuator Device Drivers menu "Miscellaneous Device Drivers" diff --git a/drivers/my9221/Kconfig b/drivers/my9221/Kconfig new file mode 100644 index 0000000000..e17f1f71bd --- /dev/null +++ b/drivers/my9221/Kconfig @@ -0,0 +1,13 @@ +# 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_MY9221 + bool "MY9221 LED controller" + depends on HAS_PERIPH_GPIO + depends on TEST_KCONFIG + select MODULE_PERIPH_GPIO + select MODULE_XTIMER From 3604ac3a69fd2f4de1025559b4997d6fb0eafaca Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 26 Nov 2020 15:01:27 +0100 Subject: [PATCH 05/19] drivers/hd44780: add module to Kconfig --- drivers/Kconfig | 1 + drivers/hd44780/Kconfig | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 drivers/hd44780/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index 2fd52025a4..dffbb9571c 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -19,6 +19,7 @@ endmenu # Actuator Device Drivers menu "Miscellaneous Device Drivers" rsource "at/Kconfig" rsource "at24mac/Kconfig" +rsource "hd44780/Kconfig" endmenu # Miscellaneous Device Drivers rsource "Kconfig.net" diff --git a/drivers/hd44780/Kconfig b/drivers/hd44780/Kconfig new file mode 100644 index 0000000000..4873610e97 --- /dev/null +++ b/drivers/hd44780/Kconfig @@ -0,0 +1,15 @@ +# 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_HD44780 + bool "HD44780 LCD" + depends on HAS_PERIPH_GPIO + depends on TEST_KCONFIG + select MODULE_PERIPH_GPIO + select MODULE_XTIMER + help + The display is also known as LCM1602C from Arduino kits. From 1dbe39c8ba4e22f64a27aa4229cac06082c52522 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 26 Nov 2020 15:04:11 +0100 Subject: [PATCH 06/19] drivers/hdc1000: add module to Kconfig --- drivers/hdc1000/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/hdc1000/Kconfig b/drivers/hdc1000/Kconfig index a55a254ff6..236cabd086 100644 --- a/drivers/hdc1000/Kconfig +++ b/drivers/hdc1000/Kconfig @@ -4,6 +4,14 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # + +config MODULE_HDC1000 + bool "HDC1000 Humidity and Temperature Sensor" + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + select MODULE_PERIPH_I2C + select MODULE_XTIMER + menuconfig KCONFIG_USEMODULE_HDC1000 bool "Configure HDC1000 driver" depends on USEMODULE_HDC1000 From 3744996a976ee0b2f30df0d58a85b67120c7254a Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 26 Nov 2020 15:07:34 +0100 Subject: [PATCH 07/19] drivers/hih6130: add module to Kconfig --- drivers/Kconfig | 1 + drivers/hih6130/Kconfig | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 drivers/hih6130/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index dffbb9571c..83bb4ef051 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -46,6 +46,7 @@ rsource "ccs811/Kconfig" rsource "fxos8700/Kconfig" rsource "gp2y10xx/Kconfig" rsource "hdc1000/Kconfig" +rsource "hih6130/Kconfig" rsource "isl29020/Kconfig" rsource "l3g4200d/Kconfig" rsource "lpsxxx/Kconfig" diff --git a/drivers/hih6130/Kconfig b/drivers/hih6130/Kconfig new file mode 100644 index 0000000000..989bbb4599 --- /dev/null +++ b/drivers/hih6130/Kconfig @@ -0,0 +1,16 @@ +# 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_HIH6130 + bool "HIH6130 humidity and temperature sensor" + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + select MODULE_PERIPH_I2C + select MODULE_XTIMER + help + Device driver for Honeywell HumidIcon Digital Humidity/Temperature + Sensors: HIH-6130/6131 Series. From 4a65b13db24b7d9ad805d70d7449610214f15552 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 26 Nov 2020 15:17:22 +0100 Subject: [PATCH 08/19] drivers/hmc5883l: add module to Kconfig --- drivers/Kconfig | 1 + drivers/hmc5883l/Kconfig | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 drivers/hmc5883l/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index 83bb4ef051..d9800eca65 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -47,6 +47,7 @@ rsource "fxos8700/Kconfig" rsource "gp2y10xx/Kconfig" rsource "hdc1000/Kconfig" rsource "hih6130/Kconfig" +rsource "hmc5883l/Kconfig" rsource "isl29020/Kconfig" rsource "l3g4200d/Kconfig" rsource "lpsxxx/Kconfig" diff --git a/drivers/hmc5883l/Kconfig b/drivers/hmc5883l/Kconfig new file mode 100644 index 0000000000..e21791afe6 --- /dev/null +++ b/drivers/hmc5883l/Kconfig @@ -0,0 +1,22 @@ +# 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. +# + +menuconfig MODULE_HMC5883L + bool "HMC5883L 3-axis digital compass" + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + select MODULE_PERIPH_I2C + +config MODULE_HMC5883L_INT + bool "Data-ready interrupt" + depends on MODULE_HMC5883L + depends on HAS_PERIPH_GPIO + depends on HAS_PERIPH_GPIO_IRQ + select MODULE_PERIPH_GPIO + select MODULE_PERIPH_GPIO_IRQ + help + Allows to configure an interrupt pin to get an event on data ready. From 4fa930dbdd5c7ffbb9e42106fa1a433942f481d0 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 26 Nov 2020 15:19:41 +0100 Subject: [PATCH 09/19] drivers/hts221: add module to Kconfig --- drivers/Kconfig | 1 + drivers/hts221/Kconfig | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 drivers/hts221/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index d9800eca65..0631b0af31 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -48,6 +48,7 @@ rsource "gp2y10xx/Kconfig" rsource "hdc1000/Kconfig" rsource "hih6130/Kconfig" rsource "hmc5883l/Kconfig" +rsource "hts221/Kconfig" rsource "isl29020/Kconfig" rsource "l3g4200d/Kconfig" rsource "lpsxxx/Kconfig" diff --git a/drivers/hts221/Kconfig b/drivers/hts221/Kconfig new file mode 100644 index 0000000000..ee797b3e45 --- /dev/null +++ b/drivers/hts221/Kconfig @@ -0,0 +1,12 @@ +# 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_HTS221 + bool "ST HTS221 digital Humidity Sensor" + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + select MODULE_PERIPH_I2C From c964891d2007fe3f4e9336dfcfb22cff31b0f5ee Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 26 Nov 2020 15:29:47 +0100 Subject: [PATCH 10/19] drivers/ili9341: add module to Kconfig --- drivers/Kconfig | 1 + drivers/ili9341/Kconfig | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 drivers/ili9341/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index 0631b0af31..5e0ad14452 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -20,6 +20,7 @@ menu "Miscellaneous Device Drivers" rsource "at/Kconfig" rsource "at24mac/Kconfig" rsource "hd44780/Kconfig" +rsource "ili9341/Kconfig" endmenu # Miscellaneous Device Drivers rsource "Kconfig.net" diff --git a/drivers/ili9341/Kconfig b/drivers/ili9341/Kconfig new file mode 100644 index 0000000000..f63d082f74 --- /dev/null +++ b/drivers/ili9341/Kconfig @@ -0,0 +1,15 @@ +# 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_ILI9341 + bool "ILI9341 display driver" + depends on HAS_PERIPH_SPI + depends on HAS_PERIPH_GPIO + depends on TEST_KCONFIG + select MODULE_PERIPH_SPI + select MODULE_PERIPH_GPIO + select MODULE_XTIMER From c5ce7e60b5bb979c38ea028200b2c4e44ae58590 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 26 Nov 2020 15:40:41 +0100 Subject: [PATCH 11/19] drivers/ina2xx: add modules to Kconfig --- drivers/Kconfig | 1 + drivers/ina2xx/Kconfig | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 drivers/ina2xx/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index 5e0ad14452..0ecf637248 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -50,6 +50,7 @@ rsource "hdc1000/Kconfig" rsource "hih6130/Kconfig" rsource "hmc5883l/Kconfig" rsource "hts221/Kconfig" +rsource "ina2xx/Kconfig" rsource "isl29020/Kconfig" rsource "l3g4200d/Kconfig" rsource "lpsxxx/Kconfig" diff --git a/drivers/ina2xx/Kconfig b/drivers/ina2xx/Kconfig new file mode 100644 index 0000000000..1b57d81ee2 --- /dev/null +++ b/drivers/ina2xx/Kconfig @@ -0,0 +1,29 @@ +# 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. +# + +choice + bool "INA2XX current/power monitor" + optional + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + 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 + bool + depends on HAS_PERIPH_I2C + select MODULE_PERIPH_I2C From 18c21fb22d5351a3d22bea60bf0932f6352126ac Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 26 Nov 2020 15:55:05 +0100 Subject: [PATCH 12/19] drivers/ina3221: add modules to Kconfig --- drivers/Kconfig | 1 + drivers/ina3221/Kconfig | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 drivers/ina3221/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index 0ecf637248..47eab6c3ee 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -51,6 +51,7 @@ rsource "hih6130/Kconfig" rsource "hmc5883l/Kconfig" rsource "hts221/Kconfig" rsource "ina2xx/Kconfig" +rsource "ina3221/Kconfig" rsource "isl29020/Kconfig" rsource "l3g4200d/Kconfig" rsource "lpsxxx/Kconfig" diff --git a/drivers/ina3221/Kconfig b/drivers/ina3221/Kconfig new file mode 100644 index 0000000000..273da6170a --- /dev/null +++ b/drivers/ina3221/Kconfig @@ -0,0 +1,22 @@ +# 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. +# + +menuconfig MODULE_INA3221 + bool "INA3221 current/power monitor" + depends on HAS_PERIPH_GPIO + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + select MODULE_PERIPH_GPIO + select MODULE_PERIPH_I2C + +config MODULE_INA3221_ALERTS + bool "Altert pins" + depends on HAS_PERIPH_GPIO_IRQ + depends on MODULE_INA3221 + select MODULE_PERIPH_GPIO_IRQ + help + Say y to enable the usage of alert pins. From 64c2594deeb61dbf6195440aa990f71b4d8bdb03 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 26 Nov 2020 16:15:04 +0100 Subject: [PATCH 13/19] drivers/sdcard_spi: add module to Kconfig --- drivers/Kconfig | 1 + drivers/sdcard_spi/Kconfig | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 drivers/sdcard_spi/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index 47eab6c3ee..92cd800992 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -68,6 +68,7 @@ rsource "at24cxxx/Kconfig" rsource "at25xxx/Kconfig" rsource "mtd/Kconfig" rsource "mtd_sdcard/Kconfig" +rsource "sdcard_spi/Kconfig" endmenu # Storage Device Drivers endmenu # Drivers diff --git a/drivers/sdcard_spi/Kconfig b/drivers/sdcard_spi/Kconfig new file mode 100644 index 0000000000..9eb5e0134f --- /dev/null +++ b/drivers/sdcard_spi/Kconfig @@ -0,0 +1,17 @@ +# 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_SDCARD_SPI + bool "SPI SD-Card" + depends on HAS_PERIPH_GPIO + depends on HAS_PERIPH_SPI + depends on TEST_KCONFIG + select MODULE_PERIPH_GPIO + select MODULE_PERIPH_SPI + select MODULE_PERIPH_SPI_RECONFIGURE if HAS_PERIPH_SPI_RECONFIGURE + select MODULE_XTIMER + select MODULE_CHECKSUM From 9c8212c14e7ca7652e10bf66013b14836197656d Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 26 Nov 2020 16:15:29 +0100 Subject: [PATCH 14/19] drivers/io1_xplained: add module to Kconfig --- drivers/Kconfig | 1 + drivers/io1_xplained/Kconfig | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 drivers/io1_xplained/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index 92cd800992..8bd162db52 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -21,6 +21,7 @@ rsource "at/Kconfig" rsource "at24mac/Kconfig" rsource "hd44780/Kconfig" rsource "ili9341/Kconfig" +rsource "io1_xplained/Kconfig" endmenu # Miscellaneous Device Drivers rsource "Kconfig.net" diff --git a/drivers/io1_xplained/Kconfig b/drivers/io1_xplained/Kconfig new file mode 100644 index 0000000000..3e887949a8 --- /dev/null +++ b/drivers/io1_xplained/Kconfig @@ -0,0 +1,16 @@ +# 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_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 TEST_KCONFIG + select MODULE_PERIPH_GPIO + select MODULE_PERIPH_ADC From 4e99411f2b7613713dbc535508c1bb7b7da2b824 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 26 Nov 2020 16:19:40 +0100 Subject: [PATCH 15/19] drivers/isl29020: add module to Kconfig --- drivers/isl29020/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/isl29020/Kconfig b/drivers/isl29020/Kconfig index 48e3624549..5d7043e7e0 100644 --- a/drivers/isl29020/Kconfig +++ b/drivers/isl29020/Kconfig @@ -1,9 +1,17 @@ # Copyright (c) 2020 Freie Universitaet Berlin +# 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_ISL29020 + bool "ISL29020 light sensor" + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + select MODULE_PERIPH_I2C + menuconfig KCONFIG_USEMODULE_ISL29020 bool "Configure ISL29020 driver" depends on USEMODULE_ISL29020 From db82f7a5e24bc5c06b8bc08d80a28e770ce96091 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 26 Nov 2020 16:25:34 +0100 Subject: [PATCH 16/19] drivers/isl29125: add module to Kconfig --- drivers/Kconfig | 1 + drivers/isl29125/Kconfig | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 drivers/isl29125/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index 8bd162db52..ec324fa75a 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -54,6 +54,7 @@ rsource "hts221/Kconfig" rsource "ina2xx/Kconfig" rsource "ina3221/Kconfig" rsource "isl29020/Kconfig" +rsource "isl29125/Kconfig" rsource "l3g4200d/Kconfig" rsource "lpsxxx/Kconfig" rsource "mag3110/Kconfig" diff --git a/drivers/isl29125/Kconfig b/drivers/isl29125/Kconfig new file mode 100644 index 0000000000..bd9e787b8e --- /dev/null +++ b/drivers/isl29125/Kconfig @@ -0,0 +1,16 @@ +# 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_ISL29125 + bool "ISL29125 RGB light sensor" + depends on HAS_PERIPH_GPIO + depends on HAS_PERIPH_GPIO_IRQ + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + select MODULE_PERIPH_GPIO + select MODULE_PERIPH_GPIO_IRQ + select MODULE_PERIPH_I2C From 83e1d43009193cecac8fff0555ff89f581206b75 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 26 Nov 2020 16:31:23 +0100 Subject: [PATCH 17/19] drivers/itg320x: add modules to Kconfig --- drivers/Kconfig | 1 + drivers/itg320x/Kconfig | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 drivers/itg320x/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index ec324fa75a..96696d150c 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -55,6 +55,7 @@ rsource "ina2xx/Kconfig" rsource "ina3221/Kconfig" rsource "isl29020/Kconfig" rsource "isl29125/Kconfig" +rsource "itg320x/Kconfig" rsource "l3g4200d/Kconfig" rsource "lpsxxx/Kconfig" rsource "mag3110/Kconfig" diff --git a/drivers/itg320x/Kconfig b/drivers/itg320x/Kconfig new file mode 100644 index 0000000000..492449b979 --- /dev/null +++ b/drivers/itg320x/Kconfig @@ -0,0 +1,22 @@ +# 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. +# + +menuconfig MODULE_ITG320X + bool "ITG320X 3-axis gyroscope" + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + select MODULE_PERIPH_I2C + select MODULE_XTIMER + help + The driver can be used with InvenSense ITG3200, ITG3205, and MPU3050. + +config MODULE_ITG320X_INT + bool "Interrupt mode" + depends on HAS_PERIPH_GPIO_IRQ + select MODULE_PERIPH_GPIO_IRQ + help + Say y to fetch the data when the data-ready interrupt is triggered. From c74b2ac242bfa84cd6afaae30bf570565077fd32 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 26 Nov 2020 17:10:43 +0100 Subject: [PATCH 18/19] drivers/jc42: add module Kconfig --- drivers/Kconfig | 1 + drivers/jc42/Kconfig | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 drivers/jc42/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index 96696d150c..894954cf03 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -56,6 +56,7 @@ rsource "ina3221/Kconfig" rsource "isl29020/Kconfig" rsource "isl29125/Kconfig" rsource "itg320x/Kconfig" +rsource "jc42/Kconfig" rsource "l3g4200d/Kconfig" rsource "lpsxxx/Kconfig" rsource "mag3110/Kconfig" diff --git a/drivers/jc42/Kconfig b/drivers/jc42/Kconfig new file mode 100644 index 0000000000..b2ad9a07f4 --- /dev/null +++ b/drivers/jc42/Kconfig @@ -0,0 +1,12 @@ +# 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_JC42 + bool "JC42 compliant temperature sensor" + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + select MODULE_PERIPH_I2C From 9abf3247c8130f1c64ac07f5621e01db50ed4391 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Fri, 27 Nov 2020 09:17:36 +0100 Subject: [PATCH 19/19] tests/driver_{g,h,i,j}*: add Kconfig configuration files This also adds these applications to the CI tests. The following drivers have been modelled: gp2y10xx grove_ledbar hd44780 hdc1000 hih6130 hmc5883l hts221 ili9341 ina2xx ina3221 io1_xplained isl29020 isl29125 itg320x jc42 my9221 --- .murdock | 4 +++- tests/driver_gp2y10xx/app.config.test | 4 ++++ tests/driver_grove_ledbar/Makefile | 4 ++++ tests/driver_grove_ledbar/app.config.test | 8 ++++++++ tests/driver_grove_ledbar/app.config.test.native | 5 +++++ tests/driver_hd44780/Makefile | 4 ++++ tests/driver_hd44780/app.config.test | 4 ++++ tests/driver_hd44780/app.config.test.native | 5 +++++ tests/driver_hdc1000/app.config.test | 5 +++++ tests/driver_hih6130/app.config.test | 4 ++++ tests/driver_hmc5883l/app.config.test | 4 ++++ tests/driver_hts221/app.config.test | 4 ++++ tests/driver_ili9341/app.config.test | 4 ++++ tests/driver_ina2xx/app.config.test | 5 +++++ tests/driver_ina3221/app.config.test | 5 +++++ tests/driver_io1_xplained/app.config.test | 5 +++++ tests/driver_isl29020/app.config.test | 4 ++++ tests/driver_isl29125/app.config.test | 4 ++++ tests/driver_itg320x/app.config.test | 4 ++++ tests/driver_jc42/app.config.test | 4 ++++ tests/driver_my9221/Makefile | 4 ++++ tests/driver_my9221/app.config.test | 4 ++++ tests/driver_my9221/app.config.test.native | 5 +++++ 23 files changed, 102 insertions(+), 1 deletion(-) create mode 100644 tests/driver_gp2y10xx/app.config.test create mode 100644 tests/driver_grove_ledbar/app.config.test create mode 100644 tests/driver_grove_ledbar/app.config.test.native create mode 100644 tests/driver_hd44780/app.config.test create mode 100644 tests/driver_hd44780/app.config.test.native create mode 100644 tests/driver_hdc1000/app.config.test create mode 100644 tests/driver_hih6130/app.config.test create mode 100644 tests/driver_hmc5883l/app.config.test create mode 100644 tests/driver_hts221/app.config.test create mode 100644 tests/driver_ili9341/app.config.test create mode 100644 tests/driver_ina2xx/app.config.test create mode 100644 tests/driver_ina3221/app.config.test create mode 100644 tests/driver_io1_xplained/app.config.test create mode 100644 tests/driver_isl29020/app.config.test create mode 100644 tests/driver_isl29125/app.config.test create mode 100644 tests/driver_itg320x/app.config.test create mode 100644 tests/driver_jc42/app.config.test create mode 100644 tests/driver_my9221/app.config.test create mode 100644 tests/driver_my9221/app.config.test.native diff --git a/.murdock b/.murdock index 9d5fa81e9c..b922784e1e 100755 --- a/.murdock +++ b/.murdock @@ -7,7 +7,9 @@ tests/driver_ad7746 tests/driver_adcxx1c tests/driver_ads101x tests/driver_adt10 tests/driver_adt7310 tests/driver_adxl345 tests/driver_aip31068 tests/driver_apa102 tests/driver_apds99xx tests/driver_apds99xx_full tests/driver_at tests/driver_at24cxxx tests/driver_at24mac tests/driver_at25xxx tests/driver_at30tse75x tests/driver_ata8520e -tests/driver_b* tests/driver_ccs811 tests/driver_ccs811_full"} +tests/driver_b* tests/driver_ccs811 tests/driver_ccs811_full +tests/driver_g* tests/driver_h* tests/driver_i* tests/driver_j* +tests/driver_my9221"} : ${TEST_KCONFIG_native:="examples/hello-world tests/periph_*"} export RIOT_CI_BUILD=1 diff --git a/tests/driver_gp2y10xx/app.config.test b/tests/driver_gp2y10xx/app.config.test new file mode 100644 index 0000000000..99a74023a9 --- /dev/null +++ b/tests/driver_gp2y10xx/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_GP2Y10XX=y +CONFIG_MODULE_XTIMER=y diff --git a/tests/driver_grove_ledbar/Makefile b/tests/driver_grove_ledbar/Makefile index 6423a44c1c..69069dba02 100644 --- a/tests/driver_grove_ledbar/Makefile +++ b/tests/driver_grove_ledbar/Makefile @@ -5,6 +5,10 @@ USEMODULE += grove_ledbar # disable native GPIOs for automatic test ifeq (native,$(BOARD)) USEMODULE += periph_gpio_mock + # the same for Kconfig + ifeq (1,$(TEST_KCONFIG)) + KCONFIG_ADD_CONFIG += $(APPDIR)/app.config.test.native + endif endif # set default device parameters in case they are undefined diff --git a/tests/driver_grove_ledbar/app.config.test b/tests/driver_grove_ledbar/app.config.test new file mode 100644 index 0000000000..ce17a4ad9d --- /dev/null +++ b/tests/driver_grove_ledbar/app.config.test @@ -0,0 +1,8 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. + +# LED driver needed for the LED bar driver +CONFIG_MODULE_MY9221=y + +CONFIG_MODULE_GROVE_LEDBAR=y +CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y diff --git a/tests/driver_grove_ledbar/app.config.test.native b/tests/driver_grove_ledbar/app.config.test.native new file mode 100644 index 0000000000..eeb3167676 --- /dev/null +++ b/tests/driver_grove_ledbar/app.config.test.native @@ -0,0 +1,5 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. + +# disable native GPIOs for automatic test +CONFIG_MODULE_PERIPH_GPIO_MOCK=y diff --git a/tests/driver_hd44780/Makefile b/tests/driver_hd44780/Makefile index 2bab51963a..669e5be139 100644 --- a/tests/driver_hd44780/Makefile +++ b/tests/driver_hd44780/Makefile @@ -5,6 +5,10 @@ USEMODULE += hd44780 # disable native GPIOs for automatic test ifeq (native,$(BOARD)) USEMODULE += periph_gpio_mock + # the same for Kconfig + ifeq (1,$(TEST_KCONFIG)) + KCONFIG_ADD_CONFIG += $(APPDIR)/app.config.test.native + endif endif # Fails on esp32 because the driver defines default GPIOs that are used for the diff --git a/tests/driver_hd44780/app.config.test b/tests/driver_hd44780/app.config.test new file mode 100644 index 0000000000..ea1bdbbe8e --- /dev/null +++ b/tests/driver_hd44780/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_HD44780=y +CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y diff --git a/tests/driver_hd44780/app.config.test.native b/tests/driver_hd44780/app.config.test.native new file mode 100644 index 0000000000..eeb3167676 --- /dev/null +++ b/tests/driver_hd44780/app.config.test.native @@ -0,0 +1,5 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. + +# disable native GPIOs for automatic test +CONFIG_MODULE_PERIPH_GPIO_MOCK=y diff --git a/tests/driver_hdc1000/app.config.test b/tests/driver_hdc1000/app.config.test new file mode 100644 index 0000000000..fbd50570cd --- /dev/null +++ b/tests/driver_hdc1000/app.config.test @@ -0,0 +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_HDC1000=y +CONFIG_MODULE_XTIMER=y +CONFIG_MODULE_FMT=y diff --git a/tests/driver_hih6130/app.config.test b/tests/driver_hih6130/app.config.test new file mode 100644 index 0000000000..0d71180dd3 --- /dev/null +++ b/tests/driver_hih6130/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_HIH6130=y +CONFIG_MODULE_XTIMER=y diff --git a/tests/driver_hmc5883l/app.config.test b/tests/driver_hmc5883l/app.config.test new file mode 100644 index 0000000000..5fa12d3da2 --- /dev/null +++ b/tests/driver_hmc5883l/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_HMC5883L=y +CONFIG_MODULE_XTIMER=y diff --git a/tests/driver_hts221/app.config.test b/tests/driver_hts221/app.config.test new file mode 100644 index 0000000000..ba8393a35f --- /dev/null +++ b/tests/driver_hts221/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_HTS221=y +CONFIG_MODULE_XTIMER=y diff --git a/tests/driver_ili9341/app.config.test b/tests/driver_ili9341/app.config.test new file mode 100644 index 0000000000..45e4ae0bb2 --- /dev/null +++ b/tests/driver_ili9341/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_ILI9341=y +CONFIG_MODULE_XTIMER=y diff --git a/tests/driver_ina2xx/app.config.test b/tests/driver_ina2xx/app.config.test new file mode 100644 index 0000000000..7f713483a4 --- /dev/null +++ b/tests/driver_ina2xx/app.config.test @@ -0,0 +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_FMT=y +CONFIG_MODULE_FMT_TABLE=y +CONFIG_MODULE_INA219=y diff --git a/tests/driver_ina3221/app.config.test b/tests/driver_ina3221/app.config.test new file mode 100644 index 0000000000..028df0831e --- /dev/null +++ b/tests/driver_ina3221/app.config.test @@ -0,0 +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_INA3221=y +CONFIG_MODULE_FMT=y +CONFIG_MODULE_XTIMER=y diff --git a/tests/driver_io1_xplained/app.config.test b/tests/driver_io1_xplained/app.config.test new file mode 100644 index 0000000000..e4b6c2be24 --- /dev/null +++ b/tests/driver_io1_xplained/app.config.test @@ -0,0 +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_IO1_XPLAINED=y +CONFIG_MODULE_AT30TSE75X=y +CONFIG_MODULE_SDCARD_SPI=y diff --git a/tests/driver_isl29020/app.config.test b/tests/driver_isl29020/app.config.test new file mode 100644 index 0000000000..d33abfa4cc --- /dev/null +++ b/tests/driver_isl29020/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_ISL29020=y +CONFIG_MODULE_XTIMER=y diff --git a/tests/driver_isl29125/app.config.test b/tests/driver_isl29125/app.config.test new file mode 100644 index 0000000000..9f93851096 --- /dev/null +++ b/tests/driver_isl29125/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_ISL29125=y +CONFIG_MODULE_XTIMER=y diff --git a/tests/driver_itg320x/app.config.test b/tests/driver_itg320x/app.config.test new file mode 100644 index 0000000000..7bd27503a4 --- /dev/null +++ b/tests/driver_itg320x/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_ITG320X=y +CONFIG_MODULE_XTIMER=y diff --git a/tests/driver_jc42/app.config.test b/tests/driver_jc42/app.config.test new file mode 100644 index 0000000000..69c3b1f4b6 --- /dev/null +++ b/tests/driver_jc42/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_JC42=y +CONFIG_MODULE_XTIMER=y diff --git a/tests/driver_my9221/Makefile b/tests/driver_my9221/Makefile index 4153ba0f95..1bb0f5b741 100644 --- a/tests/driver_my9221/Makefile +++ b/tests/driver_my9221/Makefile @@ -5,6 +5,10 @@ USEMODULE += my9221 # disable native GPIOs for automatic test ifeq (native,$(BOARD)) USEMODULE += periph_gpio_mock + # the same for Kconfig + ifeq (1,$(TEST_KCONFIG)) + KCONFIG_ADD_CONFIG += $(APPDIR)/app.config.test.native + endif endif # set default device parameters in case they are undefined diff --git a/tests/driver_my9221/app.config.test b/tests/driver_my9221/app.config.test new file mode 100644 index 0000000000..9840183cdb --- /dev/null +++ b/tests/driver_my9221/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_MY9221=y +CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y diff --git a/tests/driver_my9221/app.config.test.native b/tests/driver_my9221/app.config.test.native new file mode 100644 index 0000000000..eeb3167676 --- /dev/null +++ b/tests/driver_my9221/app.config.test.native @@ -0,0 +1,5 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. + +# disable native GPIOs for automatic test +CONFIG_MODULE_PERIPH_GPIO_MOCK=y