diff --git a/.murdock b/.murdock index b922784e1e..b0909a90a0 100755 --- a/.murdock +++ b/.murdock @@ -7,9 +7,11 @@ 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_g* tests/driver_h* tests/driver_i* tests/driver_j* -tests/driver_my9221"} +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"} : ${TEST_KCONFIG_native:="examples/hello-world tests/periph_*"} export RIOT_CI_BUILD=1 diff --git a/boards/samr21-xpro/Kconfig b/boards/samr21-xpro/Kconfig index e69e37921e..d08a8a8c29 100644 --- a/boards/samr21-xpro/Kconfig +++ b/boards/samr21-xpro/Kconfig @@ -24,3 +24,4 @@ config BOARD_SAMR21_XPRO select HAS_RIOTBOOT select HAVE_SAUL_GPIO + select HAVE_EDBG_EUI diff --git a/drivers/Kconfig b/drivers/Kconfig index 894954cf03..2b16ea0337 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -11,6 +11,9 @@ rsource "saul/Kconfig" menu "Actuator Device Drivers" rsource "aip31068/Kconfig" rsource "apa102/Kconfig" +rsource "dfplayer/Kconfig" +rsource "dynamixel/Kconfig" +rsource "feetech/Kconfig" rsource "grove_ledbar/Kconfig" rsource "motor_driver/Kconfig" rsource "my9221/Kconfig" @@ -19,9 +22,16 @@ endmenu # Actuator Device Drivers menu "Miscellaneous Device Drivers" rsource "at/Kconfig" rsource "at24mac/Kconfig" +rsource "disp_dev/Kconfig" +rsource "ds1307/Kconfig" +rsource "ds3231/Kconfig" +rsource "ds3234/Kconfig" +rsource "dsp0401/Kconfig" +rsource "edbg_eui/Kconfig" rsource "hd44780/Kconfig" rsource "ili9341/Kconfig" rsource "io1_xplained/Kconfig" +rsource "uart_half_duplex/Kconfig" endmenu # Miscellaneous Device Drivers rsource "Kconfig.net" @@ -45,6 +55,10 @@ rsource "bmp180/Kconfig" rsource "bmx055/Kconfig" rsource "bmx280/Kconfig" rsource "ccs811/Kconfig" +rsource "dcf77/Kconfig" +rsource "dht/Kconfig" +rsource "ds18/Kconfig" +rsource "ds75lx/Kconfig" rsource "fxos8700/Kconfig" rsource "gp2y10xx/Kconfig" rsource "hdc1000/Kconfig" diff --git a/drivers/dcf77/Kconfig b/drivers/dcf77/Kconfig new file mode 100644 index 0000000000..ab05a614ff --- /dev/null +++ b/drivers/dcf77/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_DCF77 + bool "DCF77 long wave receiver with 77,5 kHz" + 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/dfplayer/Kconfig b/drivers/dfplayer/Kconfig new file mode 100644 index 0000000000..1e72cdcce4 --- /dev/null +++ b/drivers/dfplayer/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_DFPLAYER + bool "DFPlayer Mini MP3 Player" + depends on HAS_PERIPH_UART + depends on HAS_PERIPH_GPIO + depends on TEST_KCONFIG + select MODULE_PERIPH_UART + select MODULE_PERIPH_GPIO + select MODULE_XTIMER + select HAVE_MULTIMEDIA_DEVICE +# Perhaps this could be moved to its own symbol to enable the dfplayer commands + select MODULE_FMT if MODULE_SHELL_COMMANDS diff --git a/drivers/dht/Kconfig b/drivers/dht/Kconfig new file mode 100644 index 0000000000..e46efbf8bb --- /dev/null +++ b/drivers/dht/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_DHT + bool "DHT Humidity and Temperature Sensors" + depends on HAS_PERIPH_GPIO + depends on TEST_KCONFIG + select MODULE_PERIPH_GPIO + select MODULE_XTIMER diff --git a/drivers/disp_dev/Kconfig b/drivers/disp_dev/Kconfig new file mode 100644 index 0000000000..7e8345d158 --- /dev/null +++ b/drivers/disp_dev/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_DISP_DEV + bool "Display device generic API" + depends on TEST_KCONFIG diff --git a/drivers/ds1307/Kconfig b/drivers/ds1307/Kconfig new file mode 100644 index 0000000000..b3706623b6 --- /dev/null +++ b/drivers/ds1307/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_DS1307 + bool "DS1307 real-time clock" + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + select MODULE_PERIPH_I2C diff --git a/drivers/ds18/Kconfig b/drivers/ds18/Kconfig new file mode 100644 index 0000000000..93c7ff824a --- /dev/null +++ b/drivers/ds18/Kconfig @@ -0,0 +1,20 @@ +# Copyright (c) 2020 HAW Hamburg +# +# This file is subject to the terms and conditions of the GNU Lesser +# General Public License v2.1. See the file LICENSE in the top level +# directory for more details. +# + +menuconfig MODULE_DS18 + bool "DS18 temperature sensors" + depends on HAS_PERIPH_GPIO + depends on TEST_KCONFIG + select MODULE_PERIPH_GPIO + select MODULE_XTIMER + +config MODULE_DS18_OPTIMIZED + bool "Optimized mode" + depends on MODULE_DS18 + help + Say y to use the optimized mode if the board can handle ~3us resolution + with the xtimer. diff --git a/drivers/ds3231/Kconfig b/drivers/ds3231/Kconfig new file mode 100644 index 0000000000..5d84ef7b62 --- /dev/null +++ b/drivers/ds3231/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_DS3231 + bool "DS3231 Real Time Clock" + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + select MODULE_PERIPH_I2C diff --git a/drivers/ds3234/Kconfig b/drivers/ds3234/Kconfig new file mode 100644 index 0000000000..5e8b32f1be --- /dev/null +++ b/drivers/ds3234/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_DS3234 + bool "DS3234 Extremely Accurate SPI RTC" + depends on HAS_PERIPH_SPI + depends on TEST_KCONFIG + select MODULE_PERIPH_SPI diff --git a/drivers/ds75lx/Kconfig b/drivers/ds75lx/Kconfig new file mode 100644 index 0000000000..088e38c00b --- /dev/null +++ b/drivers/ds75lx/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_DS75LX + bool "Maxim DS75LX temperature sensor" + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + select MODULE_PERIPH_I2C + select MODULE_XTIMER diff --git a/drivers/dsp0401/Kconfig b/drivers/dsp0401/Kconfig new file mode 100644 index 0000000000..8785d038bb --- /dev/null +++ b/drivers/dsp0401/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_DSP0401 + bool "DSP0401 alphanumeric display" + depends on HAS_PERIPH_GPIO + depends on HAS_PERIPH_PWM + depends on TEST_KCONFIG + select MODULE_PERIPH_GPIO + select MODULE_PERIPH_PWM + select MODULE_XTIMER diff --git a/drivers/dynamixel/Kconfig b/drivers/dynamixel/Kconfig new file mode 100644 index 0000000000..4c02f0ca62 --- /dev/null +++ b/drivers/dynamixel/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_DYNAMIXEL + bool "Dynamixel driver" + depends on MODULE_UART_HALF_DUPLEX + depends on TEST_KCONFIG diff --git a/drivers/edbg_eui/Kconfig b/drivers/edbg_eui/Kconfig new file mode 100644 index 0000000000..aa6df05a9f --- /dev/null +++ b/drivers/edbg_eui/Kconfig @@ -0,0 +1,21 @@ +# 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_EDBG_EUI + bool "Atmel Embedded Debugger EUI" + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + select MODULE_PERIPH_I2C + default y if MODULE_EUI_PROVIDER && HAVE_EDBG_EUI + help + Driver for getting a unique ID from the Atmel Embedded Debugger. + +config HAVE_EDBG_EUI + bool + help + Indicates that the Atmel Embedded Debugeger EUI is available on the + platform. diff --git a/drivers/feetech/Kconfig b/drivers/feetech/Kconfig new file mode 100644 index 0000000000..89f1330abb --- /dev/null +++ b/drivers/feetech/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_FEETECH + bool "Feetech's servomotors communication bus" + depends on MODULE_UART_HALF_DUPLEX + depends on TEST_KCONFIG diff --git a/drivers/fxos8700/Kconfig b/drivers/fxos8700/Kconfig index 5967004855..5711572836 100644 --- a/drivers/fxos8700/Kconfig +++ b/drivers/fxos8700/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_FXOS8700 + bool "FXOS8700 3-axis accelerometer/magnetometer" + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + select MODULE_PERIPH_I2C + select MODULE_XTIMER + menuconfig KCONFIG_USEMODULE_FXOS8700 bool "Configure FXOS8700 driver" depends on USEMODULE_FXOS8700 diff --git a/drivers/uart_half_duplex/Kconfig b/drivers/uart_half_duplex/Kconfig new file mode 100644 index 0000000000..adcf21550f --- /dev/null +++ b/drivers/uart_half_duplex/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_UART_HALF_DUPLEX + bool "half-duplex UART Driver" + depends on HAS_PERIPH_GPIO + depends on HAS_PERIPH_UART + depends on TEST_KCONFIG + select MODULE_PERIPH_GPIO + select MODULE_PERIPH_UART + select MODULE_XTIMER + help + This module contains drivers for UART half-duplex communication bus. It + needs to manage the communication direction by enabling or disabling TX. diff --git a/sys/Kconfig.stdio b/sys/Kconfig.stdio index 363d17a22e..88d9cdfbb8 100644 --- a/sys/Kconfig.stdio +++ b/sys/Kconfig.stdio @@ -43,4 +43,7 @@ config MODULE_STDIO_UART_RX help Reception when using UART-based STDIO needs to be enabled. +config MODULE_PRINTF_FLOAT + bool "Float support in printf" + endmenu # Standard Input/Output (STDIO) diff --git a/sys/auto_init/Kconfig b/sys/auto_init/Kconfig index 577d5f1909..3208d8da7e 100644 --- a/sys/auto_init/Kconfig +++ b/sys/auto_init/Kconfig @@ -13,3 +13,5 @@ config MODULE_AUTO_INIT Auto-initialization module. Can be used to initialize modules (such as drivers, or network interfaces) on start-up automatically. Disable if a more custom initialization is required. If unsure, say Y. + +rsource "multimedia/Kconfig" diff --git a/sys/auto_init/multimedia/Kconfig b/sys/auto_init/multimedia/Kconfig new file mode 100644 index 0000000000..18d9721c3e --- /dev/null +++ b/sys/auto_init/multimedia/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_AUTO_INIT_MULTIMEDIA + bool "Auto initialize multimedia subsystem" + depends on MODULE_AUTO_INIT + depends on TEST_KCONFIG + default y if HAVE_MULTIMEDIA_DEVICE + +config HAVE_MULTIMEDIA_DEVICE + bool + help + Indicates that a multimedia device driver is present. diff --git a/sys/embunit/Kconfig b/sys/embunit/Kconfig index a6f91d1909..4718a6c06f 100644 --- a/sys/embunit/Kconfig +++ b/sys/embunit/Kconfig @@ -7,5 +7,6 @@ config MODULE_EMBUNIT bool "EmbUnit" + depends on TEST_KCONFIG help RIOT Unittests based on the EmbUnit Framework. diff --git a/sys/fmt/Kconfig b/sys/fmt/Kconfig index 813bee254c..ab9429e4f8 100644 --- a/sys/fmt/Kconfig +++ b/sys/fmt/Kconfig @@ -7,6 +7,7 @@ menuconfig MODULE_FMT bool "String formatting" + depends on TEST_KCONFIG config MODULE_FMT_TABLE bool "Table extension" diff --git a/tests/driver_dcf77/app.config.test b/tests/driver_dcf77/app.config.test new file mode 100644 index 0000000000..1a3f2ed023 --- /dev/null +++ b/tests/driver_dcf77/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_DCF77=y diff --git a/tests/driver_dfplayer/app.config.test b/tests/driver_dfplayer/app.config.test new file mode 100644 index 0000000000..cb6a5817cb --- /dev/null +++ b/tests/driver_dfplayer/app.config.test @@ -0,0 +1,12 @@ +# this file enables modules defined in Kconfig. Do not use this file for +# application configuration. This is only needed during migration. +CONFIG_MODULE_DFPLAYER=y + +# enable event thread in lowest priority +CONFIG_MODULE_EVENT=y +CONFIG_MODULE_EVENT_THREAD=y +CONFIG_MODULE_EVENT_THREAD_LOWEST=y + +# enable shell with basic commands +CONFIG_MODULE_SHELL=y +CONFIG_MODULE_SHELL_COMMANDS=y diff --git a/tests/driver_dht/app.config.test b/tests/driver_dht/app.config.test new file mode 100644 index 0000000000..9768dec2e1 --- /dev/null +++ b/tests/driver_dht/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_DHT=y +CONFIG_MODULE_FMT=y +CONFIG_MODULE_XTIMER=y diff --git a/tests/driver_ds1307/app.config.test b/tests/driver_ds1307/app.config.test new file mode 100644 index 0000000000..6ffc6363e7 --- /dev/null +++ b/tests/driver_ds1307/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_DS1307=y +CONFIG_MODULE_EMBUNIT=y +CONFIG_MODULE_XTIMER=y +CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y diff --git a/tests/driver_ds18/app.config.test b/tests/driver_ds18/app.config.test new file mode 100644 index 0000000000..6e3293edc0 --- /dev/null +++ b/tests/driver_ds18/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. +CONFIG_MODULE_DS18=y +CONFIG_MODULE_XTIMER=y +CONFIG_MODULE_PRINTF_FLOAT=y + +# Use the module if you have an accurate sleep with xtimer (~3us) +#CONFIG_MODULE_DS18_OPTIMIZED=y diff --git a/tests/driver_ds3231/app.config.test b/tests/driver_ds3231/app.config.test new file mode 100644 index 0000000000..455bd9ed2f --- /dev/null +++ b/tests/driver_ds3231/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_DS3231=y +CONFIG_MODULE_SHELL=y +CONFIG_MODULE_XTIMER=y +CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y diff --git a/tests/driver_ds3234/app.config.test b/tests/driver_ds3234/app.config.test new file mode 100644 index 0000000000..9f67f2d6f3 --- /dev/null +++ b/tests/driver_ds3234/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_DS3234=y diff --git a/tests/driver_ds75lx/app.config.test b/tests/driver_ds75lx/app.config.test new file mode 100644 index 0000000000..8f7a59671a --- /dev/null +++ b/tests/driver_ds75lx/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_DS75LX=y +CONFIG_MODULE_XTIMER=y diff --git a/tests/driver_dsp0401/app.config.test b/tests/driver_dsp0401/app.config.test new file mode 100644 index 0000000000..35678fd66f --- /dev/null +++ b/tests/driver_dsp0401/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_DSP0401=y diff --git a/tests/driver_dynamixel/app.config.test b/tests/driver_dynamixel/app.config.test new file mode 100644 index 0000000000..25428236c6 --- /dev/null +++ b/tests/driver_dynamixel/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. + +# needed for the Dynamixel bus implementation +CONFIG_MODULE_UART_HALF_DUPLEX=y + +CONFIG_MODULE_DYNAMIXEL=y +CONFIG_MODULE_SHELL=y diff --git a/tests/driver_edbg_eui/Kconfig b/tests/driver_edbg_eui/Kconfig new file mode 100644 index 0000000000..1c7c6a518a --- /dev/null +++ b/tests/driver_edbg_eui/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 APPLICATION + bool + default y + depends on BOARD_SAMR21_XPRO diff --git a/tests/driver_edbg_eui/app.config.test b/tests/driver_edbg_eui/app.config.test new file mode 100644 index 0000000000..2d77bbb585 --- /dev/null +++ b/tests/driver_edbg_eui/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_EDBG_EUI=y diff --git a/tests/driver_feetech/app.config.test b/tests/driver_feetech/app.config.test new file mode 100644 index 0000000000..98093c2965 --- /dev/null +++ b/tests/driver_feetech/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. + +# needed for the Feetech bus implementation +CONFIG_MODULE_UART_HALF_DUPLEX=y + +CONFIG_MODULE_FEETECH=y +CONFIG_MODULE_SHELL=y diff --git a/tests/driver_fxos8700/app.config.test b/tests/driver_fxos8700/app.config.test new file mode 100644 index 0000000000..7aa34c4b01 --- /dev/null +++ b/tests/driver_fxos8700/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_FXOS8700=y