From 8898e21f08bc9d16c5a08f18e48cd091b654a12f Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Wed, 11 Nov 2020 10:38:22 +0100 Subject: [PATCH 01/20] sys/color: add module to Kconfig --- sys/Kconfig | 1 + sys/color/Kconfig | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 sys/color/Kconfig diff --git a/sys/Kconfig b/sys/Kconfig index d7dd3d86bd..452c82b320 100644 --- a/sys/Kconfig +++ b/sys/Kconfig @@ -9,6 +9,7 @@ menu "System" rsource "arduino/Kconfig" rsource "auto_init/Kconfig" rsource "benchmark/Kconfig" +rsource "color/Kconfig" rsource "div/Kconfig" rsource "fmt/Kconfig" rsource "isrpipe/Kconfig" diff --git a/sys/color/Kconfig b/sys/color/Kconfig new file mode 100644 index 0000000000..db7657d2e5 --- /dev/null +++ b/sys/color/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_COLOR + bool "Handling RGB and HSV color" + depends on TEST_KCONFIG From f8e408589931c41f8b70c7b191f5027b98aad3d8 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Wed, 11 Nov 2020 17:43:53 +0100 Subject: [PATCH 02/20] sys/embunit: add module to Kconfig --- sys/Kconfig | 2 ++ sys/embunit/Kconfig | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 sys/embunit/Kconfig diff --git a/sys/Kconfig b/sys/Kconfig index 452c82b320..1061033bc4 100644 --- a/sys/Kconfig +++ b/sys/Kconfig @@ -11,6 +11,8 @@ rsource "auto_init/Kconfig" rsource "benchmark/Kconfig" rsource "color/Kconfig" rsource "div/Kconfig" +rsource "embunit/Kconfig" +rsource "event/Kconfig" rsource "fmt/Kconfig" rsource "isrpipe/Kconfig" rsource "net/Kconfig" diff --git a/sys/embunit/Kconfig b/sys/embunit/Kconfig new file mode 100644 index 0000000000..a6f91d1909 --- /dev/null +++ b/sys/embunit/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_EMBUNIT + bool "EmbUnit" + help + RIOT Unittests based on the EmbUnit Framework. From a7d1ebc0fdef4bd5055de1b52ec68935bc04933c Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Wed, 11 Nov 2020 16:25:50 +0100 Subject: [PATCH 03/20] sys/event: add modules to Kconfig --- sys/event/Kconfig | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 sys/event/Kconfig diff --git a/sys/event/Kconfig b/sys/event/Kconfig new file mode 100644 index 0000000000..68b51dd446 --- /dev/null +++ b/sys/event/Kconfig @@ -0,0 +1,46 @@ +# 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_EVENT + bool "Event queue" + depends on TEST_KCONFIG + select MODULE_CORE_THREAD_FLAGS + help + This module offers an event queue framework like libevent or libuev. + + An event queue is basically a FIFO queue of events, with some functions + to efficiently and safely handle adding and getting events to / from + such a queue. + +if MODULE_EVENT + +config MODULE_EVENT_CALLBACK + bool "Support for callback-with-argument event type" + +menuconfig MODULE_EVENT_THREAD + bool "Support for event handler threads" + help + There are three threads of different priorities that can be enabled. + +if MODULE_EVENT_THREAD + +config MODULE_EVENT_THREAD_LOWEST + bool "Lowest priority thread" + +config MODULE_EVENT_THREAD_MEDIUM + bool "Medium priority thread" + +config MODULE_EVENT_THREAD_HIGHEST + bool "Highest priority thread" + +endif # MODULE_EVENT_THREAD + +config MODULE_EVENT_TIMEOUT + bool "Support for triggering events after timeout" + select MODULE_XTIMER + +endif # MODULE_EVENT From 9a5ed7c0850f4d9467cecacf60dea4723beac7eb Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 12 Nov 2020 13:49:39 +0100 Subject: [PATCH 04/20] sys/ps: add module to Kconfig --- sys/ps/Kconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 sys/ps/Kconfig diff --git a/sys/ps/Kconfig b/sys/ps/Kconfig new file mode 100644 index 0000000000..a53da74904 --- /dev/null +++ b/sys/ps/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_PS + bool "UNIX like ps command" + depends on TEST_KCONFIG From e192857ee8df20bd86f67c471f4b868a7299cd52 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Wed, 11 Nov 2020 09:43:10 +0100 Subject: [PATCH 05/20] drivers/ad7746: add module to Kconfig --- drivers/Kconfig | 1 + drivers/ad7746/Kconfig | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 drivers/ad7746/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index 675909b6b4..6991a683d9 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -21,6 +21,7 @@ rsource "periph_common/Kconfig" endmenu # Peripherals drivers menu "Sensor Device Drivers" +rsource "ad7746/Kconfig" rsource "ads101x/Kconfig" rsource "bmx055/Kconfig" rsource "fxos8700/Kconfig" diff --git a/drivers/ad7746/Kconfig b/drivers/ad7746/Kconfig new file mode 100644 index 0000000000..dcef773d48 --- /dev/null +++ b/drivers/ad7746/Kconfig @@ -0,0 +1,14 @@ +# 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_AD7746 + bool "AD7746 Capacitance-to-digital converter" + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + select MODULE_PERIPH_I2C + help + AD7746 Capacitance-to-digital converter with temperature sensor driver. From 6eecaef9dcf89ef23eb31ee12480f0bc035b8f78 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Wed, 11 Nov 2020 10:02:32 +0100 Subject: [PATCH 06/20] drivers/adcxx1c: add module to Kconfig --- drivers/Kconfig | 1 + drivers/adcxx1c/Kconfig | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 drivers/adcxx1c/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index 6991a683d9..75a5c51d29 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -22,6 +22,7 @@ endmenu # Peripherals drivers menu "Sensor Device Drivers" rsource "ad7746/Kconfig" +rsource "adcxx1c/Kconfig" rsource "ads101x/Kconfig" rsource "bmx055/Kconfig" rsource "fxos8700/Kconfig" diff --git a/drivers/adcxx1c/Kconfig b/drivers/adcxx1c/Kconfig new file mode 100644 index 0000000000..be4f322b9f --- /dev/null +++ b/drivers/adcxx1c/Kconfig @@ -0,0 +1,40 @@ +# 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 "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 + bool + 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 0dda4863ed30b33c42b5c2d824c1ad12ae065473 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Wed, 11 Nov 2020 10:18:22 +0100 Subject: [PATCH 07/20] drivers/ads101x: add module to Kconfig --- drivers/ads101x/Kconfig | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/drivers/ads101x/Kconfig b/drivers/ads101x/Kconfig index c92cb20fbc..4a1fc80e7b 100644 --- a/drivers/ads101x/Kconfig +++ b/drivers/ads101x/Kconfig @@ -4,6 +4,21 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # + +config MODULE_ADS101X + bool "ADS101X Analog-to-Digital converter" + 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 + select MODULE_XTIMER + help + This driver works with the ads1013, ads1014, ads1015, ads1113, ads1114 + and ads1115 models. + menuconfig KCONFIG_USEMODULE_ADS101X bool "Configure ADS101X driver" depends on USEMODULE_ADS101X From 1ff7e6ffac00fe427de6fd52c5e4017c7c385973 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Wed, 11 Nov 2020 10:21:59 +0100 Subject: [PATCH 08/20] drivers/adt7310: add module to Kconfig --- drivers/Kconfig | 1 + drivers/adt7310/Kconfig | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 drivers/adt7310/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index 75a5c51d29..3a2729cc47 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -24,6 +24,7 @@ menu "Sensor Device Drivers" rsource "ad7746/Kconfig" rsource "adcxx1c/Kconfig" rsource "ads101x/Kconfig" +rsource "adt7310/Kconfig" rsource "bmx055/Kconfig" rsource "fxos8700/Kconfig" rsource "gp2y10xx/Kconfig" diff --git a/drivers/adt7310/Kconfig b/drivers/adt7310/Kconfig new file mode 100644 index 0000000000..71b202cfaa --- /dev/null +++ b/drivers/adt7310/Kconfig @@ -0,0 +1,14 @@ +# 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_ADT7310 + bool "ADT7310 temperature sensor" + depends on HAS_PERIPH_SPI + depends on TEST_KCONFIG + select MODULE_PERIPH_SPI + help + Driver for the Analog Devices ADT7310 temperature sensor. From a08fa462fa78a39fe5ef1d72841acab669db3c9c Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Wed, 11 Nov 2020 10:25:03 +0100 Subject: [PATCH 09/20] drivers/adxl345: add module to Kconfig --- drivers/Kconfig | 1 + drivers/adxl345/Kconfig | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 drivers/adxl345/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index 3a2729cc47..b948bd4641 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -25,6 +25,7 @@ rsource "ad7746/Kconfig" rsource "adcxx1c/Kconfig" rsource "ads101x/Kconfig" rsource "adt7310/Kconfig" +rsource "adxl345/Kconfig" rsource "bmx055/Kconfig" rsource "fxos8700/Kconfig" rsource "gp2y10xx/Kconfig" diff --git a/drivers/adxl345/Kconfig b/drivers/adxl345/Kconfig new file mode 100644 index 0000000000..b0ee1109f0 --- /dev/null +++ b/drivers/adxl345/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_ADXL345 + bool "ADXL345 3-Axis accelerometer" + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + select MODULE_PERIPH_I2C From 1dfb66dbe878437cf30d980ce2e26122d5449af5 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Wed, 11 Nov 2020 10:33:34 +0100 Subject: [PATCH 10/20] drivers/aip31068: add module to Kconfig --- drivers/Kconfig | 1 + drivers/aip31068/Kconfig | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 drivers/aip31068/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index b948bd4641..f315d37111 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -7,6 +7,7 @@ menu "Drivers" menu "Actuator Device Drivers" +rsource "aip31068/Kconfig" rsource "motor_driver/Kconfig" endmenu # Actuator Device Drivers diff --git a/drivers/aip31068/Kconfig b/drivers/aip31068/Kconfig new file mode 100644 index 0000000000..4cc2022511 --- /dev/null +++ b/drivers/aip31068/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_AIP31068 + bool "AIP31068 I2C LCD controller" + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + select MODULE_XTIMER + select MODULE_PERIPH_I2C +# necessary to fix driver initialization on esp32 +# TODO: move this to ESP32 + select MODULE_ESP_I2C_HW if CPU_ESP32 From d1127bbb949d9d9c309268ad4865a2c3e2f6de44 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Wed, 11 Nov 2020 10:38:58 +0100 Subject: [PATCH 11/20] drivers/apa102: add module to Kconfig --- drivers/Kconfig | 1 + drivers/apa102/Kconfig | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 drivers/apa102/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index f315d37111..bd05769dcd 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -8,6 +8,7 @@ menu "Drivers" menu "Actuator Device Drivers" rsource "aip31068/Kconfig" +rsource "apa102/Kconfig" rsource "motor_driver/Kconfig" endmenu # Actuator Device Drivers diff --git a/drivers/apa102/Kconfig b/drivers/apa102/Kconfig new file mode 100644 index 0000000000..83271f64b1 --- /dev/null +++ b/drivers/apa102/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_APA102 + bool "APA102 RGB LED" + depends on HAS_PERIPH_GPIO + depends on TEST_KCONFIG + select MODULE_PERIPH_GPIO From bb5370592d0d318cc288f257f59f9319e6d02ff7 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Wed, 11 Nov 2020 11:06:49 +0100 Subject: [PATCH 12/20] drivers/apds99xx: add module to Kconfig --- drivers/Kconfig | 1 + drivers/apds99xx/Kconfig | 59 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 drivers/apds99xx/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index bd05769dcd..1e6d28c846 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -28,6 +28,7 @@ rsource "adcxx1c/Kconfig" rsource "ads101x/Kconfig" rsource "adt7310/Kconfig" rsource "adxl345/Kconfig" +rsource "apds99xx/Kconfig" rsource "bmx055/Kconfig" rsource "fxos8700/Kconfig" rsource "gp2y10xx/Kconfig" diff --git a/drivers/apds99xx/Kconfig b/drivers/apds99xx/Kconfig new file mode 100644 index 0000000000..a7020c8ff5 --- /dev/null +++ b/drivers/apds99xx/Kconfig @@ -0,0 +1,59 @@ +# 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 "APDS99XX proximity and ambient light sensor" + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + optional + help + The driver can be used with following Broadcom sensors: APDS9900, + APDS9901, APDS9930, APDS9950, APDS9960. Select one model. + + The base driver only supports a basic set of functions and has therefore + a small size. The procedure for retrieving new data is polling. Ambient + light and proximity sensing are supported. + + The fully functional driver MODULE_APDS99XX_FULL supports all the + features supported by the base driver, as well as all other sensor + features, including interrupts and their configuration. Data-ready + interrupts can be used to retrieve data. In addition, threshold + interrupts can be used and configured. + +config MODULE_APDS9900 + bool "APDS9900" + select MODULE_APDS99XX + +config MODULE_APDS9901 + bool "APDS9901" + select MODULE_APDS99XX + +config MODULE_APDS9930 + bool "APDS9930" + select MODULE_APDS99XX + +config MODULE_APDS9950 + bool "APDS9950" + select MODULE_APDS99XX + +config MODULE_APDS9960 + bool "APDS9960" + select MODULE_APDS99XX + +endchoice + +config MODULE_APDS99XX + bool + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + select MODULE_PERIPH_I2C + +config MODULE_APDS99XX_FULL + bool "APDS99XX Full functionalities" + depends on MODULE_APDS99XX + depends on HAS_PERIPH_GPIO_IRQ + select MODULE_PERIPH_GPIO_IRQ From 024b70cbe1ead6e692c3a4256265d623eaff4e0d Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Wed, 11 Nov 2020 16:26:12 +0100 Subject: [PATCH 13/20] drivers/at: add modules to Kconfig --- drivers/at/Kconfig | 45 +++++++++++++++++++++++++++++++++++++++++++++ sys/isrpipe/Kconfig | 3 ++- 2 files changed, 47 insertions(+), 1 deletion(-) diff --git a/drivers/at/Kconfig b/drivers/at/Kconfig index d01af0e1a4..d85deca01c 100644 --- a/drivers/at/Kconfig +++ b/drivers/at/Kconfig @@ -4,6 +4,51 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # + +menuconfig MODULE_AT + bool "AT (Hayes) command set library" + depends on HAS_PERIPH_UART + depends on TEST_KCONFIG + depends on MODULE_ISRPIPE + depends on MODULE_ISRPIPE_READ_TIMEOUT + select MODULE_FMT + select MODULE_PERIPH_UART + +if MODULE_AT + +config MODULE_AT_URC + bool "Support Unsolicited Result Codes (URC)" + +config MODULE_AT_URC_ISR + bool "Process URCs when they arrive" + depends on MODULE_AT_URC + depends on MODULE_EVENT_THREAD + +choice + bool "Thread priority" + depends on MODULE_AT_URC_ISR + default MODULE_AT_URC_ISR_MEDIUM + help + To process URCs upon arrival an event thread is used. The + MODULE_EVENT_THREAD symbol should be set. Choose a priority for the + thread that processes the URCs. + +config MODULE_AT_URC_ISR_LOW + bool "Low" + select MODULE_EVENT_THREAD_LOW + +config MODULE_AT_URC_ISR_MEDIUM + bool "Medium" + select MODULE_EVENT_THREAD_MEDIUM + +config MODULE_AT_URC_ISR_HIGHEST + bool "Highest" + select MODULE_EVENT_THREAD_HIGHEST + +endchoice + +endif # MODULE_AT + menuconfig KCONFIG_USEMODULE_AT bool "Configure AT driver" depends on USEMODULE_AT diff --git a/sys/isrpipe/Kconfig b/sys/isrpipe/Kconfig index dc4d8ce867..6519d4e328 100644 --- a/sys/isrpipe/Kconfig +++ b/sys/isrpipe/Kconfig @@ -14,4 +14,5 @@ menuconfig MODULE_ISRPIPE config MODULE_ISRPIPE_READ_TIMEOUT bool "ISR Pipe read with timeout" - depends on MODULE_ISRPIPE && MODULE_XTIMER + depends on MODULE_ISRPIPE + select MODULE_XTIMER From 8abd8bc3d49ad9be7bb7ae4daf2de556525531bd Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Wed, 11 Nov 2020 16:51:01 +0100 Subject: [PATCH 14/20] drivers/mtd: add module to Kconfig --- drivers/Kconfig | 1 + drivers/mtd/Kconfig | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 drivers/mtd/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index 1e6d28c846..a38e2c82ab 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -45,6 +45,7 @@ rsource "tmp00x/Kconfig" endmenu # Sensor Device Drivers menu "Storage Device Drivers" +rsource "mtd/Kconfig" rsource "mtd_sdcard/Kconfig" endmenu # Storage Device Drivers diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig new file mode 100644 index 0000000000..a969e5cb54 --- /dev/null +++ b/drivers/mtd/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_MTD + bool "Memory Technology Device interface (MTD)" + depends on TEST_KCONFIG From 4d35b803c40795e4f2bc8a2f129fc712b02f10c2 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Wed, 11 Nov 2020 16:51:31 +0100 Subject: [PATCH 15/20] drivers/at24cxx: add modules to Kconfig --- drivers/Kconfig | 1 + drivers/at24cxxx/Kconfig | 69 ++++++++++++++++++++++++++++++++++++ drivers/at24cxxx/mtd/Kconfig | 13 +++++++ 3 files changed, 83 insertions(+) create mode 100644 drivers/at24cxxx/Kconfig create mode 100644 drivers/at24cxxx/mtd/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index a38e2c82ab..fc4fcfe976 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -45,6 +45,7 @@ rsource "tmp00x/Kconfig" endmenu # Sensor Device Drivers menu "Storage Device Drivers" +rsource "at24cxxx/Kconfig" rsource "mtd/Kconfig" rsource "mtd_sdcard/Kconfig" endmenu # Storage Device Drivers diff --git a/drivers/at24cxxx/Kconfig b/drivers/at24cxxx/Kconfig new file mode 100644 index 0000000000..1b0af3bd59 --- /dev/null +++ b/drivers/at24cxxx/Kconfig @@ -0,0 +1,69 @@ +# 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 "AT24CXXX EEPROM" + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + optional + help + This driver supports the multiple models, select one. + +config MODULE_AT24C01 + bool "AT24C01" + select MODULE_AT24CXXX + +config MODULE_AT24C02 + bool "AT24C02" + select MODULE_AT24CXXX + +config MODULE_AT24C04 + bool "AT24C04" + select MODULE_AT24CXXX + +config MODULE_AT24C08A + bool "AT24C08A" + select MODULE_AT24CXXX + +config MODULE_AT24C16A + bool "AT24C16A" + select MODULE_AT24CXXX + +config MODULE_AT24C32 + bool "AT24C32" + select MODULE_AT24CXXX + +config MODULE_AT24C64 + bool "AT24C64" + select MODULE_AT24CXXX + +config MODULE_AT24C128 + bool "AT24C128" + select MODULE_AT24CXXX + +config MODULE_AT24C256 + bool "AT24C256" + select MODULE_AT24CXXX + +config MODULE_AT24C512 + bool "AT24C512" + select MODULE_AT24CXXX + +config MODULE_AT24C1024 + bool "AT24C1024" + select MODULE_AT24CXXX + +endchoice + +config MODULE_AT24CXXX + bool + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + select MODULE_PERIPH_I2C + select MODULE_XTIMER + +rsource "mtd/Kconfig" diff --git a/drivers/at24cxxx/mtd/Kconfig b/drivers/at24cxxx/mtd/Kconfig new file mode 100644 index 0000000000..f70ef0622a --- /dev/null +++ b/drivers/at24cxxx/mtd/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_MTD_AT24CXXX + bool "MTD implementation for AT24CXXX" + default y + depends on MODULE_AT24CXXX + depends on MODULE_MTD + depends on TEST_KCONFIG From f1028dfe8509013b199bf920625abe3d9dff44f6 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Wed, 11 Nov 2020 17:00:38 +0100 Subject: [PATCH 16/20] drivers/at24mac: add module to Kconfig --- drivers/Kconfig | 1 + drivers/at24mac/Kconfig | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 drivers/at24mac/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index fc4fcfe976..d83cffe9f9 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -14,6 +14,7 @@ endmenu # Actuator Device Drivers menu "Miscellaneous Device Drivers" rsource "at/Kconfig" +rsource "at24mac/Kconfig" endmenu # Miscellaneous Device Drivers rsource "Kconfig.net" diff --git a/drivers/at24mac/Kconfig b/drivers/at24mac/Kconfig new file mode 100644 index 0000000000..79c5467c99 --- /dev/null +++ b/drivers/at24mac/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_AT24MAC + bool "AT24MAC unique ID chip" + select MODULE_AT24CXXX + depends on TEST_KCONFIG From c94216bb7b9ca1082c798cb973059b2f549188f1 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Wed, 11 Nov 2020 17:44:15 +0100 Subject: [PATCH 17/20] drivers/at25xxx: add modules to Kconfig --- drivers/Kconfig | 1 + drivers/at25xxx/Kconfig | 18 ++++++++++++++++++ drivers/at25xxx/mtd/Kconfig | 12 ++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 drivers/at25xxx/Kconfig create mode 100644 drivers/at25xxx/mtd/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index d83cffe9f9..ed95061103 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -47,6 +47,7 @@ endmenu # Sensor Device Drivers menu "Storage Device Drivers" rsource "at24cxxx/Kconfig" +rsource "at25xxx/Kconfig" rsource "mtd/Kconfig" rsource "mtd_sdcard/Kconfig" endmenu # Storage Device Drivers diff --git a/drivers/at25xxx/Kconfig b/drivers/at25xxx/Kconfig new file mode 100644 index 0000000000..83b28c7af2 --- /dev/null +++ b/drivers/at25xxx/Kconfig @@ -0,0 +1,18 @@ +# 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_AT25XXX + bool "AT25xxx SPI-EEPROMs" + depends on HAS_PERIPH_SPI + depends on TEST_KCONFIG + select MODULE_PERIPH_SPI + select MODULE_XTIMER + help + This driver also supports M95xxx, 25AAxxx, 25LCxxx, CAT25xxx & BR25Sxxx + families. + +rsource "mtd/Kconfig" diff --git a/drivers/at25xxx/mtd/Kconfig b/drivers/at25xxx/mtd/Kconfig new file mode 100644 index 0000000000..89496e0356 --- /dev/null +++ b/drivers/at25xxx/mtd/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_MTD_AT25XXX + bool "MTD implementation for AT25XXX" + depends on MODULE_AT25XXX + depends on MODULE_MTD + depends on TEST_KCONFIG From e3eb80736110b32baee75496e9baa4c7100fad20 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Wed, 11 Nov 2020 17:49:33 +0100 Subject: [PATCH 18/20] drivers/at30tse75x: add module to Kconfig --- drivers/Kconfig | 1 + drivers/at30tse75x/Kconfig | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 drivers/at30tse75x/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index ed95061103..d64f037305 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -30,6 +30,7 @@ rsource "ads101x/Kconfig" rsource "adt7310/Kconfig" rsource "adxl345/Kconfig" rsource "apds99xx/Kconfig" +rsource "at30tse75x/Kconfig" rsource "bmx055/Kconfig" rsource "fxos8700/Kconfig" rsource "gp2y10xx/Kconfig" diff --git a/drivers/at30tse75x/Kconfig b/drivers/at30tse75x/Kconfig new file mode 100644 index 0000000000..f3336be39e --- /dev/null +++ b/drivers/at30tse75x/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_AT30TSE75X + bool "AT30TSE75X temperature sensor" + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + select MODULE_PERIPH_I2C + select MODULE_XTIMER + help + AT30TSE75x temperature sensor with serial EEPROM. From 93dad87fbfd53db256029d174ffa1ecdbdf1d24d Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Fri, 13 Nov 2020 12:27:21 +0100 Subject: [PATCH 19/20] drivers/ata8520e: add module to Kconfig --- drivers/Kconfig.net | 1 + drivers/ata8520e/Kconfig | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 drivers/ata8520e/Kconfig diff --git a/drivers/Kconfig.net b/drivers/Kconfig.net index 74b249f54c..0de58180b7 100644 --- a/drivers/Kconfig.net +++ b/drivers/Kconfig.net @@ -6,6 +6,7 @@ menu "Network Device Drivers" rsource "at86rf215/Kconfig" +rsource "ata8520e/Kconfig" rsource "cc110x/Kconfig" rsource "dose/Kconfig" rsource "mrf24j40/Kconfig" diff --git a/drivers/ata8520e/Kconfig b/drivers/ata8520e/Kconfig new file mode 100644 index 0000000000..267f2d35cd --- /dev/null +++ b/drivers/ata8520e/Kconfig @@ -0,0 +1,18 @@ +# 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_ATA8520E + bool "ATA8520E Sigfox compatible transceiver" + depends on HAS_PERIPH_GPIO + depends on HAS_PERIPH_GPIO_IRQ + depends on HAS_PERIPH_SPI + depends on TEST_KCONFIG + select MODULE_PERIPH_GPIO + select MODULE_PERIPH_GPIO_IRQ + select MODULE_PERIPH_SPI + select MODULE_FMT + select MODULE_XTIMER From 72fda0679af46a436d2ce895ac53fe3d7186bb17 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Fri, 13 Nov 2020 11:44:27 +0100 Subject: [PATCH 20/20] tests/drivers: add Kconfig configuration files and to CI test --- .murdock | 6 +++++- tests/driver_ad7746/app.config.test | 4 ++++ tests/driver_adcxx1c/app.config.test | 4 ++++ tests/driver_ads101x/app.config.test | 3 +++ tests/driver_adt7310/app.config.test | 4 ++++ tests/driver_adxl345/app.config.test | 4 ++++ tests/driver_aip31068/app.config.test | 5 +++++ tests/driver_apa102/app.config.test | 5 +++++ tests/driver_apds99xx/app.config.test | 5 +++++ tests/driver_apds99xx_full/app.config.test | 6 ++++++ tests/driver_at/app.config.test | 20 ++++++++++++++++++++ tests/driver_at24cxxx/app.config.test | 3 +++ tests/driver_at24mac/app.config.test | 3 +++ tests/driver_at25xxx/app.config.test | 4 ++++ tests/driver_at30tse75x/app.config.test | 5 +++++ tests/driver_ata8520e/app.config.test | 5 +++++ 16 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 tests/driver_ad7746/app.config.test create mode 100644 tests/driver_adcxx1c/app.config.test create mode 100644 tests/driver_ads101x/app.config.test create mode 100644 tests/driver_adt7310/app.config.test create mode 100644 tests/driver_adxl345/app.config.test create mode 100644 tests/driver_aip31068/app.config.test create mode 100644 tests/driver_apa102/app.config.test create mode 100644 tests/driver_apds99xx/app.config.test create mode 100644 tests/driver_apds99xx_full/app.config.test create mode 100644 tests/driver_at/app.config.test create mode 100644 tests/driver_at24cxxx/app.config.test create mode 100644 tests/driver_at24mac/app.config.test create mode 100644 tests/driver_at25xxx/app.config.test create mode 100644 tests/driver_at30tse75x/app.config.test create mode 100644 tests/driver_ata8520e/app.config.test diff --git a/.murdock b/.murdock index 7fcab56f82..3cd47cad45 100755 --- a/.murdock +++ b/.murdock @@ -2,7 +2,11 @@ : ${TEST_BOARDS_AVAILABLE:="esp32-wroom-32 samr21-xpro"} : ${TEST_BOARDS_LLVM_COMPILE:="iotlab-m3 native nrf52dk mulle nucleo-f401re samr21-xpro slstk3402a"} -: ${TEST_KCONFIG_samr21_xpro:="examples/hello-world tests/periph_*"} +: ${TEST_KCONFIG_samr21_xpro:="examples/hello-world tests/periph_* +tests/driver_ad7746 tests/driver_adcxx1c tests/driver_ads101x tests/driver_adt101x +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"} : ${TEST_KCONFIG_native:="examples/hello-world tests/periph_*"} export RIOT_CI_BUILD=1 diff --git a/tests/driver_ad7746/app.config.test b/tests/driver_ad7746/app.config.test new file mode 100644 index 0000000000..96cdd8614a --- /dev/null +++ b/tests/driver_ad7746/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_AD7746=y +CONFIG_MODULE_XTIMER=y diff --git a/tests/driver_adcxx1c/app.config.test b/tests/driver_adcxx1c/app.config.test new file mode 100644 index 0000000000..038dc8fd2d --- /dev/null +++ b/tests/driver_adcxx1c/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_ADC081C=y +CONFIG_MODULE_XTIMER=y diff --git a/tests/driver_ads101x/app.config.test b/tests/driver_ads101x/app.config.test new file mode 100644 index 0000000000..c97a99d4ac --- /dev/null +++ b/tests/driver_ads101x/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_ADS101X=y diff --git a/tests/driver_adt7310/app.config.test b/tests/driver_adt7310/app.config.test new file mode 100644 index 0000000000..da5e1f1f9d --- /dev/null +++ b/tests/driver_adt7310/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_ADT7310=y +CONFIG_MODULE_XTIMER=y diff --git a/tests/driver_adxl345/app.config.test b/tests/driver_adxl345/app.config.test new file mode 100644 index 0000000000..f5fd1c5715 --- /dev/null +++ b/tests/driver_adxl345/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_XTIMER=y +CONFIG_MODULE_ADXL345=y diff --git a/tests/driver_aip31068/app.config.test b/tests/driver_aip31068/app.config.test new file mode 100644 index 0000000000..ddd3e24aca --- /dev/null +++ b/tests/driver_aip31068/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_AIP31068=y +CONFIG_MODULE_XTIMER=y +CONFIG_MODULE_SHELL=y diff --git a/tests/driver_apa102/app.config.test b/tests/driver_apa102/app.config.test new file mode 100644 index 0000000000..7b857d461a --- /dev/null +++ b/tests/driver_apa102/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_APA102=y +CONFIG_MODULE_COLOR=y +CONFIG_MODULE_XTIMER=y diff --git a/tests/driver_apds99xx/app.config.test b/tests/driver_apds99xx/app.config.test new file mode 100644 index 0000000000..7d9b6c8278 --- /dev/null +++ b/tests/driver_apds99xx/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_TEST_UTILS_INTERACTIVE_SYNC=y +CONFIG_MODULE_APDS9960=y +CONFIG_MODULE_XTIMER=y diff --git a/tests/driver_apds99xx_full/app.config.test b/tests/driver_apds99xx_full/app.config.test new file mode 100644 index 0000000000..1f5bc62048 --- /dev/null +++ b/tests/driver_apds99xx_full/app.config.test @@ -0,0 +1,6 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. +CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y +CONFIG_MODULE_APDS9960=y +CONFIG_MODULE_APDS99XX_FULL=y +CONFIG_MODULE_CORE_THREAD_FLAGS=y diff --git a/tests/driver_at/app.config.test b/tests/driver_at/app.config.test new file mode 100644 index 0000000000..74fa68728a --- /dev/null +++ b/tests/driver_at/app.config.test @@ -0,0 +1,20 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. +# dependencies of AT driver +CONFIG_MODULE_ISRPIPE=y +CONFIG_MODULE_ISRPIPE_READ_TIMEOUT=y + +CONFIG_MODULE_AT=y + +# support URC processing +CONFIG_MODULE_AT_URC=y + +# enable event thread to process URCs upon arrival +CONFIG_MODULE_EVENT=y +CONFIG_MODULE_EVENT_THREAD=y + +# support URC upon arrival +CONFIG_MODULE_AT_URC_ISR=y + +# enable shell +CONFIG_MODULE_SHELL=y diff --git a/tests/driver_at24cxxx/app.config.test b/tests/driver_at24cxxx/app.config.test new file mode 100644 index 0000000000..fc4739be58 --- /dev/null +++ b/tests/driver_at24cxxx/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_AT24C256=y diff --git a/tests/driver_at24mac/app.config.test b/tests/driver_at24mac/app.config.test new file mode 100644 index 0000000000..d9f9a2b4f1 --- /dev/null +++ b/tests/driver_at24mac/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_AT24MAC=y diff --git a/tests/driver_at25xxx/app.config.test b/tests/driver_at25xxx/app.config.test new file mode 100644 index 0000000000..528faa94d5 --- /dev/null +++ b/tests/driver_at25xxx/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_AT25XXX=y +CONFIG_MODULE_EMBUNIT=y diff --git a/tests/driver_at30tse75x/app.config.test b/tests/driver_at30tse75x/app.config.test new file mode 100644 index 0000000000..2fe7cd3077 --- /dev/null +++ b/tests/driver_at30tse75x/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_AT30TSE75X=y +CONFIG_MODULE_SHELL=y +CONFIG_MODULE_SHELL_COMMANDS=y diff --git a/tests/driver_ata8520e/app.config.test b/tests/driver_ata8520e/app.config.test new file mode 100644 index 0000000000..08023d550f --- /dev/null +++ b/tests/driver_ata8520e/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_ATA8520E=y +CONFIG_MODULE_SHELL=y +CONFIG_MODULE_SHELL_COMMANDS=y