diff --git a/.murdock b/.murdock index 2c74e6c4d1..3f55f40018 100755 --- a/.murdock +++ b/.murdock @@ -16,7 +16,8 @@ tests/driver_b* tests/driver_ccs811 tests/driver_ccs811_full tests/driver_dcf77 tests/driver_dfplayer tests/driver_dht tests/driver_ds18 tests/driver_ds75lx tests/driver_ds1307 tests/driver_ds3231 tests/driver_ds3234 tests/driver_dsp0401 tests/driver_dynamixel tests/driver_edbg_eui tests/driver_f* tests/driver_g* -tests/driver_h* tests/driver_i* tests/driver_j* tests/driver_my9221"} +tests/driver_h* tests/driver_i* tests/driver_j* tests/driver_my9221 +tests/driver_o* tests/driver_p* tests/driver_q* tests/driver_r*"} : ${TEST_KCONFIG_native:="examples/hello-world tests/periph_*"} export RIOT_CI_BUILD=1 diff --git a/drivers/Kconfig b/drivers/Kconfig index 6f6f373147..edba6fd645 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -17,6 +17,7 @@ rsource "feetech/Kconfig" rsource "grove_ledbar/Kconfig" rsource "motor_driver/Kconfig" rsource "my9221/Kconfig" +rsource "rgbled/Kconfig" endmenu # Actuator Device Drivers menu "Display Device Drivers" @@ -41,6 +42,7 @@ rsource "Kconfig.net" menu "Peripherals drivers" rsource "periph_common/Kconfig" +rsource "rtt_rtc/Kconfig" endmenu # Peripherals drivers menu "Sensor Device Drivers" @@ -80,6 +82,13 @@ rsource "lpsxxx/Kconfig" rsource "mag3110/Kconfig" rsource "mma8x5x/Kconfig" rsource "opt3001/Kconfig" +rsource "pca9633/Kconfig" +rsource "pca9685/Kconfig" +rsource "pcd8544/Kconfig" +rsource "ph_oem/Kconfig" +rsource "pir/Kconfig" +rsource "pulse_counter/Kconfig" +rsource "qmc5883l/Kconfig" rsource "sps30/Kconfig" rsource "tcs37727/Kconfig" rsource "tmp00x/Kconfig" diff --git a/drivers/opt3001/Kconfig b/drivers/opt3001/Kconfig index aa5622d529..46bc1799be 100644 --- a/drivers/opt3001/Kconfig +++ b/drivers/opt3001/Kconfig @@ -1,9 +1,18 @@ # 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_OPT3001 + bool "OPT3001 Ambient Light Sensor" + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + select MODULE_PERIPH_I2C + select MODULE_XTIMER + menuconfig KCONFIG_USEMODULE_OPT3001 bool "Configure OPT3001 driver" depends on USEMODULE_OPT3001 diff --git a/drivers/pca9633/Kconfig b/drivers/pca9633/Kconfig new file mode 100644 index 0000000000..f85deec2ee --- /dev/null +++ b/drivers/pca9633/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_PCA9633 + bool "PCA9633 I2C PWM controller" + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + select MODULE_PERIPH_I2C diff --git a/drivers/pca9685/Kconfig b/drivers/pca9685/Kconfig new file mode 100644 index 0000000000..4eb7bf8c85 --- /dev/null +++ b/drivers/pca9685/Kconfig @@ -0,0 +1,16 @@ +# 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_PCA9685 + bool "PCA9685 I2C PWM controller" + depends on !HAS_CPU_EFM32 # efm32 CPU doesn't support PWM_RIGHT + depends on HAS_PERIPH_GPIO + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + select MODULE_PERIPH_GPIO + select MODULE_PERIPH_I2C + select MODULE_XTIMER diff --git a/drivers/pcd8544/Kconfig b/drivers/pcd8544/Kconfig new file mode 100644 index 0000000000..a6fee34b3b --- /dev/null +++ b/drivers/pcd8544/Kconfig @@ -0,0 +1,15 @@ +# 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_PCD8544 + bool "PCD8544 LCD driver" + depends on HAS_PERIPH_GPIO + depends on HAS_PERIPH_SPI + depends on TEST_KCONFIG + select MODULE_PERIPH_GPIO + select MODULE_PERIPH_SPI + select MODULE_XTIMER diff --git a/drivers/ph_oem/Kconfig b/drivers/ph_oem/Kconfig new file mode 100644 index 0000000000..db65bc035e --- /dev/null +++ b/drivers/ph_oem/Kconfig @@ -0,0 +1,17 @@ +# 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_PH_OEM + bool "Atlas Scientific pH OEM 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 + select MODULE_XTIMER diff --git a/drivers/pir/Kconfig b/drivers/pir/Kconfig new file mode 100644 index 0000000000..fa7868fe47 --- /dev/null +++ b/drivers/pir/Kconfig @@ -0,0 +1,15 @@ +# 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_PIR + bool "PIR Motion Sensor" + depends on HAS_PERIPH_GPIO + depends on HAS_PERIPH_GPIO_IRQ + depends on TEST_KCONFIG + select MODULE_PERIPH_GPIO + select MODULE_PERIPH_GPIO_IRQ + select MODULE_XTIMER diff --git a/drivers/pn532/Kconfig b/drivers/pn532/Kconfig index f79537188c..ab53f61eb5 100644 --- a/drivers/pn532/Kconfig +++ b/drivers/pn532/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 && 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 + bool + select MODULE_PERIPH_GPIO + select MODULE_PERIPH_GPIO_IRQ + +endmenu # PN532 NFC reader + +endif # TEST_KCONFIG && HAS_PERIPH_GPIO && HAS_PERIPH_GPIO_IRQ + menuconfig KCONFIG_USEMODULE_PN532 bool "Configure PN532 driver" depends on USEMODULE_PN532 diff --git a/drivers/pulse_counter/Kconfig b/drivers/pulse_counter/Kconfig new file mode 100644 index 0000000000..6221b4e017 --- /dev/null +++ b/drivers/pulse_counter/Kconfig @@ -0,0 +1,15 @@ +# 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_PULSE_COUNTER + bool "Pulse counter" + depends on HAS_PERIPH_GPIO + depends on HAS_PERIPH_GPIO_IRQ + depends on TEST_KCONFIG + select MODULE_PERIPH_GPIO + select MODULE_PERIPH_GPIO_IRQ + select MODULE_XTIMER diff --git a/drivers/qmc5883l/Kconfig b/drivers/qmc5883l/Kconfig new file mode 100644 index 0000000000..b37c7a7d17 --- /dev/null +++ b/drivers/qmc5883l/Kconfig @@ -0,0 +1,20 @@ +# 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. +# + +menuconfig MODULE_QMC5883L + bool "QMC5883L 3-Axis Digital Magnetic sensor" + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + select MODULE_PERIPH_I2C + +config MODULE_QMC5883L_INT + bool "Interrupt support" + depends on HAS_PERIPH_GPIO + depends on HAS_PERIPH_GPIO_IRQ + depends on MODULE_QMC5883L + select MODULE_PERIPH_GPIO + select MODULE_PERIPH_GPIO_IRQ diff --git a/drivers/rgbled/Kconfig b/drivers/rgbled/Kconfig new file mode 100644 index 0000000000..f17674dac7 --- /dev/null +++ b/drivers/rgbled/Kconfig @@ -0,0 +1,11 @@ +# 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_RGBLED + bool "RGB-LED driver" + depends on TEST_KCONFIG + select MODULE_COLOR diff --git a/drivers/rn2xx3/Kconfig b/drivers/rn2xx3/Kconfig index 8808e592df..a3abb11def 100644 --- a/drivers/rn2xx3/Kconfig +++ b/drivers/rn2xx3/Kconfig @@ -4,6 +4,36 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # + +if TEST_KCONFIG + +choice + bool "RN2XX3 LoRa module" + optional + depends on HAS_PERIPH_GPIO + depends on HAS_PERIPH_UART + +config MODULE_RN2483 + bool "RN2483" + select MODULE_RN2XX3 + +config MODULE_RN2903 + bool "RN2903" + select MODULE_RN2XX3 + +endchoice + +config MODULE_RN2XX3 + bool + depends on HAS_PERIPH_GPIO + depends on HAS_PERIPH_UART + select MODULE_PERIPH_GPIO + select MODULE_PERIPH_UART + select MODULE_FMT + select MODULE_XTIMER + +endif # TEST_KCONFIG + menuconfig KCONFIG_USEMODULE_RN2XX3 bool "Configure RN2XX3 driver" depends on USEMODULE_RN2XX3 diff --git a/drivers/rtt_rtc/Kconfig b/drivers/rtt_rtc/Kconfig new file mode 100644 index 0000000000..0b4361bd79 --- /dev/null +++ b/drivers/rtt_rtc/Kconfig @@ -0,0 +1,15 @@ +# 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_RTT_RTC + bool "RTC-based RTT" + depends on HAS_PERIPH_RTT + depends on TEST_KCONFIG + select MODULE_PERIPH_RTT + select HAS_PERIPH_RTC # provides RTC + help + Basic RTC implementation based on a RTT. diff --git a/tests/driver_opt3001/app.config.test b/tests/driver_opt3001/app.config.test new file mode 100644 index 0000000000..05faf23e80 --- /dev/null +++ b/tests/driver_opt3001/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_OPT3001=y +CONFIG_MODULE_XTIMER=y diff --git a/tests/driver_pca9633/app.config.test b/tests/driver_pca9633/app.config.test new file mode 100644 index 0000000000..101bcc6781 --- /dev/null +++ b/tests/driver_pca9633/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_PCA9633=y +CONFIG_MODULE_XTIMER=y +CONFIG_MODULE_SHELL=y diff --git a/tests/driver_pca9685/app.config.test b/tests/driver_pca9685/app.config.test new file mode 100644 index 0000000000..ff7b1ad322 --- /dev/null +++ b/tests/driver_pca9685/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_PCA9685=y +CONFIG_MODULE_SHELL=y diff --git a/tests/driver_pcd8544/app.config.test b/tests/driver_pcd8544/app.config.test new file mode 100644 index 0000000000..c2cca734d3 --- /dev/null +++ b/tests/driver_pcd8544/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_PCD8544=y +CONFIG_MODULE_SHELL=y diff --git a/tests/driver_ph_oem/app.config.test b/tests/driver_ph_oem/app.config.test new file mode 100644 index 0000000000..0df7dd29c7 --- /dev/null +++ b/tests/driver_ph_oem/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_PH_OEM=y +CONFIG_MODULE_EVENT=y +CONFIG_MODULE_EVENT_CALLBACK=y diff --git a/tests/driver_pir/app.config.test b/tests/driver_pir/app.config.test new file mode 100644 index 0000000000..448a89e64c --- /dev/null +++ b/tests/driver_pir/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_PIR=y diff --git a/tests/driver_pn532/app.config.test b/tests/driver_pn532/app.config.test new file mode 100644 index 0000000000..b31e14958f --- /dev/null +++ b/tests/driver_pn532/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. + +# 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 + +CONFIG_MODULE_XTIMER=y diff --git a/tests/driver_pulse_counter/app.config.test b/tests/driver_pulse_counter/app.config.test new file mode 100644 index 0000000000..7d11aed684 --- /dev/null +++ b/tests/driver_pulse_counter/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_PULSE_COUNTER=y diff --git a/tests/driver_qmc5883l/app.config.test b/tests/driver_qmc5883l/app.config.test new file mode 100644 index 0000000000..83409f91a5 --- /dev/null +++ b/tests/driver_qmc5883l/app.config.test @@ -0,0 +1,9 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. + +CONFIG_MODULE_QMC5883L=y +# enable gpio interrupt support +CONFIG_MODULE_QMC5883L_INT=y + +CONFIG_MODULE_CORE_THREAD_FLAGS=y +CONFIG_MODULE_XTIMER=y diff --git a/tests/driver_rn2xx3/app.config.test b/tests/driver_rn2xx3/app.config.test new file mode 100644 index 0000000000..6b73a740ca --- /dev/null +++ b/tests/driver_rn2xx3/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_RN2483=y +CONFIG_MODULE_SHELL=y +CONFIG_MODULE_SHELL_COMMANDS=y