diff --git a/Kconfig b/Kconfig index 2802ea41920c..5fa6b5536cc9 100644 --- a/Kconfig +++ b/Kconfig @@ -9,12 +9,6 @@ mainmenu "RIOT Configuration" # Load macro definitions rsource "kconfigs/Kconfig.consts" -# Load feature declarations -rsource "kconfigs/Kconfig.features" - -# Load error symbols -rsource "kconfigs/Kconfig.errors" - # For now, get used modules as macros from this file (see kconfig.mk) osource "$(KCONFIG_GENERATED_DEPENDENCIES)" @@ -41,23 +35,5 @@ menu "External Packages" osource "$(KCONFIG_EXTERNAL_PKG_CONFIGS)" endmenu # External Packages -comment "RIOT is in a migration phase." comment "Some configuration options may not be here. Use CFLAGS instead." - -comment "!! ERROR: There are conflicting modules active !!" - depends on ERROR_MODULES_CONFLICT != "" - -config TEST_KCONFIG - bool - default y if '$(TEST_KCONFIG)' = '1' - help - This is used during the Kconfig migration to test the module dependency - modelling. Don't change the default value unless you know what you are - doing. - -config DEVELHELP - bool "Development Help" - help - Set to enable code in RIOT that does safety checking which might not be - needed in a production environment but helps in the development - process. +comment "Ideally, make a PR to add them to the Kconfig." diff --git a/Makefile.base b/Makefile.base index 912eff9ff4b1..ab07fc5c9459 100644 --- a/Makefile.base +++ b/Makefile.base @@ -74,11 +74,7 @@ endif ifneq (,$(SRCXX)) ifeq (,$(filter cpp,$(USEMODULE))) - ifneq (1,$(TEST_KCONFIG)) - $(error Found C++ source, but feature "cpp" is not used. Add "FEATURES_REQUIRED += cpp") - else - $(error Found C++ source, but "cpp" module is not used. Enable the MODULE_CPP in Kconfig) - endif + $(error Found C++ source, but feature "cpp" is not used. Add "FEATURES_REQUIRED += cpp") endif endif diff --git a/Makefile.include b/Makefile.include index 12d9e5bf9a92..66eef4c65ccd 100644 --- a/Makefile.include +++ b/Makefile.include @@ -268,11 +268,6 @@ include $(RIOTMAKE)/scan-build.inc.mk export RIOTBUILD_CONFIG_HEADER_C = $(BINDIR)/riotbuild/riotbuild.h -# When testing Kconfig's module modelling we need to run Kconfig -ifeq (1,$(TEST_KCONFIG)) - SHOULD_RUN_KCONFIG = 1 -endif - ifeq ($(OS),Darwin) OPEN := open else @@ -425,40 +420,22 @@ include $(RIOTMAKE)/defaultmodules_regular.inc.mk # Include Kconfig functionalities include $(RIOTMAKE)/kconfig.mk -# For testing, use TEST_KCONFIG as a switch between Makefile.dep and Kconfig -ifeq (1,$(TEST_KCONFIG)) - ifneq ($(RIOT_CI_BUILD),1) - $(info === [ATTENTION] Testing Kconfig dependency modelling ===) - endif - KCONFIG_MODULES := $(call lowercase,$(patsubst CONFIG_MODULE_%,%,$(filter CONFIG_MODULE_%,$(.VARIABLES)))) - USEMODULE := $(KCONFIG_MODULES) - KCONFIG_PACKAGES := $(call lowercase,$(patsubst CONFIG_PACKAGE_%,%,$(filter CONFIG_PACKAGE_%,$(.VARIABLES)))) - USEPKG := $(KCONFIG_PACKAGES) +# always select provided architecture features +FEATURES_REQUIRED += $(filter arch_%,$(FEATURES_PROVIDED)) +# always select CPU core features +FEATURES_REQUIRED += $(filter cpu_core_%,$(FEATURES_PROVIDED)) - # Locate used packages in $(RIOTPKG) or $(EXTERNAL_PKG_DIRS). - PKGDIRS := $(RIOTPKG) $(EXTERNAL_PKG_DIRS) - PKG_PATHS := $(sort $(foreach dir,$(PKGDIRS),\ - $(foreach pkg,$(USEPKG),$(dir $(wildcard $(dir)/$(pkg)/Makefile))))) +# check if required features are provided and update $(FEATURES_USED) +include $(RIOTMAKE)/features_check.inc.mk - EXTERNAL_MODULE_PATHS := $(dir $(EXTERNAL_MODULE_KCONFIGS)) -else - # always select provided architecture features - FEATURES_REQUIRED += $(filter arch_%,$(FEATURES_PROVIDED)) - # always select CPU core features - FEATURES_REQUIRED += $(filter cpu_core_%,$(FEATURES_PROVIDED)) +# handle removal of default modules +USEMODULE += $(filter-out $(DISABLE_MODULE), $(DEFAULT_MODULE)) - # check if required features are provided and update $(FEATURES_USED) - include $(RIOTMAKE)/features_check.inc.mk +# avoid recursive expansion +USEMODULE := $(sort $(USEMODULE)) - # handle removal of default modules - USEMODULE += $(filter-out $(DISABLE_MODULE), $(DEFAULT_MODULE)) - - # avoid recursive expansion - USEMODULE := $(sort $(USEMODULE)) - - # process dependencies - include $(RIOTMAKE)/dependency_resolution.inc.mk -endif +# process dependencies +include $(RIOTMAKE)/dependency_resolution.inc.mk # Include dfu-util configuration when using riotboot_dfu bootloader before # including the board's Makefile.include which could define dfu-util diff --git a/boards/Kconfig b/boards/Kconfig index d4c143b36d2d..f311ba58ed33 100644 --- a/boards/Kconfig +++ b/boards/Kconfig @@ -8,17 +8,3 @@ config BOARD string help Name of the currently selected board. - -config MODULE_BOARD - bool - default y - depends on TEST_KCONFIG - help - Module which holds all board-specific files. - -config MODULE_BOARD_COMMON_INIT - bool - default y - depends on TEST_KCONFIG - help - Common board initialization module diff --git a/boards/acd52832/Kconfig b/boards/acd52832/Kconfig index b68675992cac..fc0f9d76f1c8 100644 --- a/boards/acd52832/Kconfig +++ b/boards/acd52832/Kconfig @@ -12,10 +12,5 @@ config BOARD_ACD52832 default y select BOARD_COMMON_NRF52 select CPU_MODEL_NRF52832XXAA - select HAS_PERIPH_I2C - select HAS_PERIPH_SPI - select HAS_PERIPH_UART - - select HAVE_SAUL_GPIO source "$(RIOTBOARD)/common/nrf52xxxdk/Kconfig" diff --git a/boards/adafruit-clue/Kconfig b/boards/adafruit-clue/Kconfig index 2cb2a8c111b0..5cca682d2b08 100644 --- a/boards/adafruit-clue/Kconfig +++ b/boards/adafruit-clue/Kconfig @@ -12,22 +12,5 @@ config BOARD_ADAFRUIT_CLUE default y select BOARD_COMMON_NRF52 select CPU_MODEL_NRF52840XXAA - select HAS_PERIPH_I2C - select HAS_PERIPH_SPI - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAS_HIGHLEVEL_STDIO - - select HAVE_APDS9960 - select HAVE_BMP280_I2C - select HAVE_ILI9341 - select HAVE_LIS3MDL - select HAVE_SAUL_GPIO - select HAVE_SHT3X - - select MODULE_USB_BOARD_RESET if KCONFIG_USB && TEST_KCONFIG - -config FORCE_USB_STDIO - default y source "$(RIOTBOARD)/common/nrf52/Kconfig" diff --git a/boards/adafruit-grand-central-m4-express/Kconfig b/boards/adafruit-grand-central-m4-express/Kconfig index 2d5ad9b22e0b..f10d33705225 100644 --- a/boards/adafruit-grand-central-m4-express/Kconfig +++ b/boards/adafruit-grand-central-m4-express/Kconfig @@ -11,26 +11,3 @@ config BOARD_ADAFRUIT_GRAND_CENTRAL_M4_EXPRESS bool default y select CPU_MODEL_SAMD51P20A - select HAS_ARDUINO_ANALOG - select HAS_ARDUINO_PINS - select HAS_HIGHLEVEL_STDIO - select HAS_PERIPH_ADC - select HAS_PERIPH_DAC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAVE_SAUL_GPIO - - select HAVE_MTD_SPI_NOR - # This specific board requires SPI_ON_QSPI for the MTD_SPI_NOR - select MODULE_PERIPH_SPI_ON_QSPI if MODULE_MTD_SPI_NOR - - select HAVE_MTD_SDCARD_DEFAULT - select MODULE_FATFS_VFS if MODULE_VFS_DEFAULT - -source "$(RIOTBOARD)/common/samdx1-arduino-bootloader/Kconfig" diff --git a/boards/adafruit-itsybitsy-m4/Kconfig b/boards/adafruit-itsybitsy-m4/Kconfig index 5dadb40f9eba..39d0a1568575 100644 --- a/boards/adafruit-itsybitsy-m4/Kconfig +++ b/boards/adafruit-itsybitsy-m4/Kconfig @@ -11,21 +11,3 @@ config BOARD_ADAFRUIT_ITSYBITSY_M4 bool default y select CPU_MODEL_SAMD51G19A - select HAS_HIGHLEVEL_STDIO - select HAS_PERIPH_DAC - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAVE_SAUL_GPIO - - select HAVE_MTD_SPI_NOR - # This specific board requires SPI_ON_QSPI for the MTD_SPI_NOR - select MODULE_PERIPH_SPI_ON_QSPI if MODULE_MTD_SPI_NOR - -source "$(RIOTBOARD)/common/samdx1-arduino-bootloader/Kconfig" diff --git a/boards/adafruit-itsybitsy-nrf52/Kconfig b/boards/adafruit-itsybitsy-nrf52/Kconfig index 09c1ca52e1fa..ae9dd8464dcc 100644 --- a/boards/adafruit-itsybitsy-nrf52/Kconfig +++ b/boards/adafruit-itsybitsy-nrf52/Kconfig @@ -12,17 +12,5 @@ config BOARD_ADAFRUIT_ITSYBITSY_NRF52 default y select BOARD_COMMON_NRF52 select CPU_MODEL_NRF52840XXAA - select HAS_PERIPH_I2C - select HAS_PERIPH_SPI - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAS_HIGHLEVEL_STDIO - - select HAVE_SAUL_GPIO - - select MODULE_USB_BOARD_RESET if KCONFIG_USB && TEST_KCONFIG - -config FORCE_USB_STDIO - default y source "$(RIOTBOARD)/common/nrf52/Kconfig" diff --git a/boards/adafruit-pybadge/Kconfig b/boards/adafruit-pybadge/Kconfig index 43808cb61115..e3e9a6210530 100644 --- a/boards/adafruit-pybadge/Kconfig +++ b/boards/adafruit-pybadge/Kconfig @@ -11,22 +11,3 @@ config BOARD_ADAFRUIT_PYBADGE bool default y select CPU_MODEL_SAMD51J19A - select HAS_HIGHLEVEL_STDIO - select HAS_PERIPH_ADC - select HAS_PERIPH_DAC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - - select HAVE_ST7735 - select HAVE_SAUL_GPIO - select HAVE_MTD_SPI_NOR - # This specific board requires SPI_ON_QSPI for the MTD_SPI_NOR - select MODULE_PERIPH_SPI_ON_QSPI if MODULE_MTD_SPI_NOR - -source "$(RIOTBOARD)/common/samdx1-arduino-bootloader/Kconfig" diff --git a/boards/airfy-beacon/Kconfig b/boards/airfy-beacon/Kconfig index 92569f25ce26..74aa0c2abeb9 100644 --- a/boards/airfy-beacon/Kconfig +++ b/boards/airfy-beacon/Kconfig @@ -12,10 +12,5 @@ config BOARD_AIRFY_BEACON default y select BOARD_COMMON_NRF51 select CPU_MODEL_NRF51X22XXAA - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_SPI - select HAS_PERIPH_UART - select MODULE_BOARDS_COMMON_NRF51 if TEST_KCONFIG source "$(RIOTBOARD)/common/nrf51/Kconfig" diff --git a/boards/alientek-pandora/Kconfig b/boards/alientek-pandora/Kconfig index fcfed3365e7a..180f99542188 100644 --- a/boards/alientek-pandora/Kconfig +++ b/boards/alientek-pandora/Kconfig @@ -13,18 +13,7 @@ config BOARD_ALIENTEK_PANDORA default y select CPU_MODEL_STM32L475VE - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - # Put other features for this board (in alphabetical order) - select HAS_RIOTBOOT - # Clock configuration select BOARD_HAS_LSE - select HAVE_SAUL_GPIO - source "$(RIOTBOARD)/common/stm32/Kconfig" diff --git a/boards/arduino-duemilanove/Kconfig b/boards/arduino-duemilanove/Kconfig index f7bc97483b49..34a36f7d595b 100644 --- a/boards/arduino-duemilanove/Kconfig +++ b/boards/arduino-duemilanove/Kconfig @@ -9,8 +9,6 @@ config BOARD_ARDUINO_DUEMILANOVE default y select BOARD_COMMON_ARDUINO_ATMEGA select CPU_MODEL_ATMEGA328P - select MODULE_BOARDS_COMMON_ARDUINO-ATMEGA if TEST_KCONFIG - select HAS_ARDUINO_SHIELD_UNO config BOARD default "arduino-duemilanove" if BOARD_ARDUINO_DUEMILANOVE diff --git a/boards/arduino-leonardo/Kconfig b/boards/arduino-leonardo/Kconfig index a81252183447..d97ff4d24b86 100644 --- a/boards/arduino-leonardo/Kconfig +++ b/boards/arduino-leonardo/Kconfig @@ -12,7 +12,5 @@ config BOARD_ARDUINO_LEONARDO default y select BOARD_COMMON_ARDUINO_ATMEGA select CPU_MODEL_ATMEGA32U4 - select MODULE_BOARDS_COMMON_ARDUINO-ATMEGA if TEST_KCONFIG - select HAS_ARDUINO_SHIELD_UNO source "$(RIOTBOARD)/common/arduino-atmega/Kconfig" diff --git a/boards/arduino-mega2560/Kconfig b/boards/arduino-mega2560/Kconfig index e5dcdf375818..a89be64ae1a5 100644 --- a/boards/arduino-mega2560/Kconfig +++ b/boards/arduino-mega2560/Kconfig @@ -12,8 +12,5 @@ config BOARD_ARDUINO_MEGA2560 default y select CPU_MODEL_ATMEGA2560 select BOARD_COMMON_ARDUINO_ATMEGA - select MODULE_BOARDS_COMMON_ARDUINO-ATMEGA if TEST_KCONFIG - select HAS_ARDUINO_SHIELD_MEGA - select HAS_ARDUINO_SHIELD_UNO source "$(RIOTBOARD)/common/arduino-atmega/Kconfig" diff --git a/boards/arduino-mkr1000/Kconfig b/boards/arduino-mkr1000/Kconfig index 749bb66cebab..4fb4b38a4d32 100644 --- a/boards/arduino-mkr1000/Kconfig +++ b/boards/arduino-mkr1000/Kconfig @@ -11,6 +11,5 @@ config BOARD_ARDUINO_MKR1000 bool default y select BOARD_COMMON_ARDUINO_MKR - select MODULE_BOARDS_COMMON_ARDUINO-MKR if TEST_KCONFIG source "$(RIOTBOARD)/common/arduino-mkr/Kconfig" diff --git a/boards/arduino-mkrfox1200/Kconfig b/boards/arduino-mkrfox1200/Kconfig index 60feef0b059c..2c6d4af1dce6 100644 --- a/boards/arduino-mkrfox1200/Kconfig +++ b/boards/arduino-mkrfox1200/Kconfig @@ -11,6 +11,5 @@ config BOARD_ARDUINO_MKRFOX1200 bool default y select BOARD_COMMON_ARDUINO_MKR - select MODULE_BOARDS_COMMON_ARDUINO-MKR if TEST_KCONFIG source "$(RIOTBOARD)/common/arduino-mkr/Kconfig" diff --git a/boards/arduino-mkrwan1300/Kconfig b/boards/arduino-mkrwan1300/Kconfig index 19a1e3a58e19..f9ea375ca843 100644 --- a/boards/arduino-mkrwan1300/Kconfig +++ b/boards/arduino-mkrwan1300/Kconfig @@ -11,6 +11,5 @@ config BOARD_ARDUINO_MKRWAN1300 bool default y select BOARD_COMMON_ARDUINO_MKR - select MODULE_BOARDS_COMMON_ARDUINO-MKR if TEST_KCONFIG source "$(RIOTBOARD)/common/arduino-mkr/Kconfig" diff --git a/boards/arduino-mkrzero/Kconfig b/boards/arduino-mkrzero/Kconfig index 5bec9fd481a8..9b8abe36c01f 100644 --- a/boards/arduino-mkrzero/Kconfig +++ b/boards/arduino-mkrzero/Kconfig @@ -11,6 +11,5 @@ config BOARD_ARDUINO_MKRZERO bool default y select BOARD_COMMON_ARDUINO_MKR - select MODULE_BOARDS_COMMON_ARDUINO-MKR if TEST_KCONFIG source "$(RIOTBOARD)/common/arduino-mkr/Kconfig" diff --git a/boards/arduino-nano-33-ble/Kconfig b/boards/arduino-nano-33-ble/Kconfig index 18aeab747898..4750ea176527 100644 --- a/boards/arduino-nano-33-ble/Kconfig +++ b/boards/arduino-nano-33-ble/Kconfig @@ -12,17 +12,5 @@ config BOARD_ARDUINO_NANO_33_BLE default y select BOARD_COMMON_NRF52 select CPU_MODEL_NRF52840XXAA - select HAS_PERIPH_I2C - select HAS_PERIPH_SPI - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAS_HIGHLEVEL_STDIO - - select HAVE_SAUL_GPIO - - select MODULE_USB_BOARD_RESET if KCONFIG_USB && TEST_KCONFIG - -config FORCE_USB_STDIO - default y source "$(RIOTBOARD)/common/nrf52/Kconfig" diff --git a/boards/arduino-nano-33-iot/Kconfig b/boards/arduino-nano-33-iot/Kconfig index 71078bf1e066..d4d702bc6d0b 100644 --- a/boards/arduino-nano-33-iot/Kconfig +++ b/boards/arduino-nano-33-iot/Kconfig @@ -11,17 +11,3 @@ config BOARD_ARDUINO_NANO_33_IOT bool default y select CPU_MODEL_SAMD21G18A - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAS_HIGHLEVEL_STDIO - - select HAVE_SAUL_GPIO - -source "$(RIOTBOARD)/common/samdx1-arduino-bootloader/Kconfig" diff --git a/boards/arduino-nano/Kconfig b/boards/arduino-nano/Kconfig index 2f2e9dbd6293..2375c2413e88 100644 --- a/boards/arduino-nano/Kconfig +++ b/boards/arduino-nano/Kconfig @@ -9,8 +9,6 @@ config BOARD_ARDUINO_NANO default y select BOARD_COMMON_ARDUINO_ATMEGA select CPU_MODEL_ATMEGA328P - select MODULE_BOARDS_COMMON_ARDUINO-ATMEGA if TEST_KCONFIG - select HAS_ARDUINO_SHIELD_NANO config BOARD default "arduino-nano" if BOARD_ARDUINO_NANO diff --git a/boards/arduino-uno/Kconfig b/boards/arduino-uno/Kconfig index c41b31e49d31..acd5da8af91f 100644 --- a/boards/arduino-uno/Kconfig +++ b/boards/arduino-uno/Kconfig @@ -9,8 +9,6 @@ config BOARD_ARDUINO_UNO default y select CPU_MODEL_ATMEGA328P select BOARD_COMMON_ARDUINO_ATMEGA - select MODULE_BOARDS_COMMON_ARDUINO-ATMEGA if TEST_KCONFIG - select HAS_ARDUINO_SHIELD_UNO config BOARD default "arduino-uno" if BOARD_ARDUINO_UNO diff --git a/boards/arduino-zero/Kconfig b/boards/arduino-zero/Kconfig index c110ca3bbe21..bb1932fa02e5 100644 --- a/boards/arduino-zero/Kconfig +++ b/boards/arduino-zero/Kconfig @@ -11,7 +11,6 @@ config BOARD config BOARD_ARDUINO_ZERO bool default y - select HAS_TINYUSB_DEVICE select BOARD_COMMON_ARDUINO_ZERO source "$(RIOTBOARD)/common/arduino-zero/Kconfig" diff --git a/boards/atmega1284p/Kconfig b/boards/atmega1284p/Kconfig index dfdf1f3175f8..401ce8ad02c1 100644 --- a/boards/atmega1284p/Kconfig +++ b/boards/atmega1284p/Kconfig @@ -11,15 +11,3 @@ config BOARD_ATMEGA1284P bool default y select CPU_MODEL_ATMEGA1284P - select HAS_PERIPH_ADC - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select MODULE_BOARDS_COMMON_ATMEGA if TEST_KCONFIG - -source "$(RIOTBOARD)/common/atmega/Kconfig" diff --git a/boards/atmega256rfr2-xpro/Kconfig b/boards/atmega256rfr2-xpro/Kconfig index 92bf8b3dae15..889e09fc8bb2 100644 --- a/boards/atmega256rfr2-xpro/Kconfig +++ b/boards/atmega256rfr2-xpro/Kconfig @@ -11,16 +11,3 @@ config BOARD_ATMEGA256RFR2_XPRO bool default y select CPU_MODEL_ATMEGA256RFR2 - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select HAVE_SAUL_GPIO - select HAVE_AT30TSE75X - select MODULE_BOARDS_COMMON_ATMEGA if TEST_KCONFIG - -source "$(RIOTBOARD)/common/atmega/Kconfig" diff --git a/boards/atmega328p-xplained-mini/Kconfig b/boards/atmega328p-xplained-mini/Kconfig index 7142eef13553..be3e32694726 100644 --- a/boards/atmega328p-xplained-mini/Kconfig +++ b/boards/atmega328p-xplained-mini/Kconfig @@ -12,18 +12,3 @@ config BOARD_ATMEGA328P_XPLAINED_MINI bool default y select CPU_MODEL_ATMEGA328P - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select HAVE_SAUL_GPIO - select MODULE_BOARDS_COMMON_ATMEGA if TEST_KCONFIG - select MODULE_ATMEGA_PCINT0 if TEST_KCONFIG - -source "$(RIOTBOARD)/common/atmega/Kconfig" diff --git a/boards/atmega328p/Kconfig b/boards/atmega328p/Kconfig index 472aa537f3c0..ec848bb9eb6d 100644 --- a/boards/atmega328p/Kconfig +++ b/boards/atmega328p/Kconfig @@ -11,16 +11,3 @@ config BOARD_ATMEGA328P bool default y select CPU_MODEL_ATMEGA328P - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - # Various other features (if any) - select MODULE_BOARDS_COMMON_ATMEGA if TEST_KCONFIG - -source "$(RIOTBOARD)/common/atmega/Kconfig" diff --git a/boards/atmega8/Kconfig b/boards/atmega8/Kconfig index 420dc8185737..7057cef0ed2a 100644 --- a/boards/atmega8/Kconfig +++ b/boards/atmega8/Kconfig @@ -11,15 +11,3 @@ config BOARD_ATMEGA8 bool default y select CPU_MODEL_ATMEGA8 - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_GPIO - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - # Various other features (if any) - select MODULE_BOARDS_COMMON_ATMEGA if TEST_KCONFIG - -source "$(RIOTBOARD)/common/atmega/Kconfig" diff --git a/boards/atxmega-a1-xplained/Kconfig b/boards/atxmega-a1-xplained/Kconfig index 483f642bef91..4ab66d878ad1 100644 --- a/boards/atxmega-a1-xplained/Kconfig +++ b/boards/atxmega-a1-xplained/Kconfig @@ -12,12 +12,3 @@ config BOARD_ATXMEGA_A1_XPLAINED bool default y select CPU_MODEL_XMEGA128A1 - - select HAS_PERIPH_I2C - select HAS_PERIPH_SPI - select HAS_PERIPH_UART - - select HAVE_SAUL_GPIO - select MODULE_BOARDS_COMMON_ATXMEGA if TEST_KCONFIG - -source "$(RIOTBOARD)/common/atxmega/Kconfig" diff --git a/boards/atxmega-a1u-xpro/Kconfig b/boards/atxmega-a1u-xpro/Kconfig index 291709e2a03c..dbefae084353 100644 --- a/boards/atxmega-a1u-xpro/Kconfig +++ b/boards/atxmega-a1u-xpro/Kconfig @@ -12,12 +12,3 @@ config BOARD_ATXMEGA_A1U_XPRO bool default y select CPU_MODEL_XMEGA128A1U - - select HAS_PERIPH_I2C - select HAS_PERIPH_SPI - select HAS_PERIPH_UART - - select HAVE_SAUL_GPIO - select MODULE_BOARDS_COMMON_ATXMEGA if TEST_KCONFIG - -source "$(RIOTBOARD)/common/atxmega/Kconfig" diff --git a/boards/atxmega-a3bu-xplained/Kconfig b/boards/atxmega-a3bu-xplained/Kconfig index db4a45a5817c..48bb3fed0f8e 100644 --- a/boards/atxmega-a3bu-xplained/Kconfig +++ b/boards/atxmega-a3bu-xplained/Kconfig @@ -12,12 +12,3 @@ config BOARD_ATXMEGA_A3BU_XPLAINED bool default y select CPU_MODEL_XMEGA256A3BU - - select HAS_PERIPH_I2C - select HAS_PERIPH_SPI - select HAS_PERIPH_UART - - select HAVE_SAUL_GPIO - select MODULE_BOARDS_COMMON_ATXMEGA if TEST_KCONFIG - -source "$(RIOTBOARD)/common/atxmega/Kconfig" diff --git a/boards/avr-rss2/Kconfig b/boards/avr-rss2/Kconfig index 0f282b886dba..3fbfbf6a1e94 100644 --- a/boards/avr-rss2/Kconfig +++ b/boards/avr-rss2/Kconfig @@ -11,20 +11,3 @@ config BOARD_AVR_RSS2 bool default y select CPU_MODEL_ATMEGA256RFR2 - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select MODULE_BOARDS_COMMON_ATMEGA if TEST_KCONFIG - select MODULE_ATMEGA_PCINT0 if TEST_KCONFIG - select HAVE_SAUL_GPIO - select HAVE_BME280_I2C - select HAVE_AT24MAC - select HAVE_MTD_AT24CXXX - - -source "$(RIOTBOARD)/common/atmega/Kconfig" diff --git a/boards/avsextrem/Kconfig b/boards/avsextrem/Kconfig index 14620a67941c..ebdfe35fc315 100644 --- a/boards/avsextrem/Kconfig +++ b/boards/avsextrem/Kconfig @@ -11,7 +11,3 @@ config BOARD_AVSEXTREM bool default y select CPU_MODEL_LPC2387 - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART diff --git a/boards/b-l072z-lrwan1/Kconfig b/boards/b-l072z-lrwan1/Kconfig index 6b64eec23a87..403bb2c8620b 100644 --- a/boards/b-l072z-lrwan1/Kconfig +++ b/boards/b-l072z-lrwan1/Kconfig @@ -13,28 +13,7 @@ config BOARD_B_L072Z_LRWAN1 default y select CPU_MODEL_STM32L072CZ - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_DMA - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_SPI_GPIO_MODE - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - # Put other features for this board (in alphabetical order) - # For riotboot you need an openocd that supports dualbank flashing. - # The 0.10.0 openocd version in Ubuntu Bionic doesn't work. The change was - # introduced after Jun 8, 2017 - v0.10.0-1-20170607-2132-dev. - select HAS_RIOTBOOT - # Clock configuration select BOARD_HAS_LSE - select HAVE_SAUL_GPIO - -config MODULE_PERIPH_INIT_LED0 - default n if MODULE_PERIPH_SPI - source "$(RIOTBOARD)/common/stm32/Kconfig" diff --git a/boards/b-l475e-iot01a/Kconfig b/boards/b-l475e-iot01a/Kconfig index 00e61e932fb7..1be90f021814 100644 --- a/boards/b-l475e-iot01a/Kconfig +++ b/boards/b-l475e-iot01a/Kconfig @@ -13,31 +13,7 @@ config BOARD_B_L475E_IOT01A default y select CPU_MODEL_STM32L475VG - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_DMA - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - - # Put other features for this board (in alphabetical order) - select HAS_RIOTBOOT - select HAS_TINYUSB_DEVICE - # Clock configuration select BOARD_HAS_LSE - select HAVE_SAUL_GPIO - select HAVE_HTS221 - select HAVE_LIS3MDL - select HAVE_LPS22HB - select HAVE_LSM6DSL - -config MODULE_PERIPH_INIT_LED0 - default n if MODULE_PERIPH_SPI - source "$(RIOTBOARD)/common/stm32/Kconfig" diff --git a/boards/b-u585i-iot02a/Kconfig b/boards/b-u585i-iot02a/Kconfig index c35f33cb1bc7..347ec2a4b9d2 100644 --- a/boards/b-u585i-iot02a/Kconfig +++ b/boards/b-u585i-iot02a/Kconfig @@ -13,23 +13,7 @@ config BOARD_B_U585I_IOT02A default y select CPU_MODEL_STM32U585AI - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_I2C - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - - # Put other features for this board (in alphabetical order) - select HAS_TINYUSB_DEVICE - # Clock configuration select BOARD_HAS_LSE - select HAVE_SAUL_GPIO - select HAVE_HTS221 - select HAVE_LPS22HH - -config MODULE_PERIPH_INIT_LED0 - default n if MODULE_PERIPH_SPI - source "$(RIOTBOARD)/common/stm32/Kconfig" diff --git a/boards/bastwan/Kconfig b/boards/bastwan/Kconfig index 2d19213890c4..1d071ab4f56e 100644 --- a/boards/bastwan/Kconfig +++ b/boards/bastwan/Kconfig @@ -11,19 +11,3 @@ config BOARD_BASTWAN bool default y select CPU_MODEL_SAMR34J18B - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAS_RIOTBOOT - select HAS_HIGHLEVEL_STDIO - - select HAVE_SAUL_GPIO - select HAVE_SX1276 - -config FORCE_USB_STDIO - default y diff --git a/boards/blackpill-stm32f103c8/Kconfig b/boards/blackpill-stm32f103c8/Kconfig index 853e043455e8..978be5e8ae96 100644 --- a/boards/blackpill-stm32f103c8/Kconfig +++ b/boards/blackpill-stm32f103c8/Kconfig @@ -13,6 +13,5 @@ config BOARD_BLACKPILL_STM32F103C8 default y select BOARD_COMMON_BLXXXPILL select CPU_MODEL_STM32F103C8 - select MODULE_BOARDS_COMMON_BLXXXPILL if TEST_KCONFIG source "$(RIOTBOARD)/common/blxxxpill/Kconfig" diff --git a/boards/blackpill-stm32f103cb/Kconfig b/boards/blackpill-stm32f103cb/Kconfig index bafca351a20f..5fdc45161d80 100644 --- a/boards/blackpill-stm32f103cb/Kconfig +++ b/boards/blackpill-stm32f103cb/Kconfig @@ -13,18 +13,5 @@ config BOARD_BLACKPILL_STM32F103CB default y select BOARD_COMMON_BLXXXPILL select CPU_MODEL_STM32F103CB - select MODULE_BOARDS_COMMON_BLXXXPILL if TEST_KCONFIG - - select HAS_HIGHLEVEL_STDIO - -config FORCE_USB_STDIO - default y - -# HACK: This is added due to the make resolution -# make will select timer backend, probably due to the USBUS -# and kconfig cannot select if something is already selected like make -choice ZTIMER_MSEC_BACKEND - default ZTIMER_MSEC_BACKEND_TIMER if MODULE_PERIPH_RTC -endchoice source "$(RIOTBOARD)/common/blxxxpill/Kconfig" diff --git a/boards/bluepill-stm32f030c8/Kconfig b/boards/bluepill-stm32f030c8/Kconfig index ed15cc7d1777..040fa5a7b56a 100644 --- a/boards/bluepill-stm32f030c8/Kconfig +++ b/boards/bluepill-stm32f030c8/Kconfig @@ -12,14 +12,3 @@ config BOARD_BLUEPILL_STM32F030C8 bool default y select CPU_MODEL_STM32F030C8 - - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_SPI - select HAS_PERIPH_RTC - - select HAVE_SAUL_GPIO diff --git a/boards/bluepill-stm32f103c8/Kconfig b/boards/bluepill-stm32f103c8/Kconfig index 3e2f4da732ae..32032a7d0591 100644 --- a/boards/bluepill-stm32f103c8/Kconfig +++ b/boards/bluepill-stm32f103c8/Kconfig @@ -13,6 +13,5 @@ config BOARD_BLUEPILL_STM32F103C8 default y select BOARD_COMMON_BLXXXPILL select CPU_MODEL_STM32F103C8 - select MODULE_BOARDS_COMMON_BLXXXPILL if TEST_KCONFIG source "$(RIOTBOARD)/common/blxxxpill/Kconfig" diff --git a/boards/bluepill-stm32f103cb/Kconfig b/boards/bluepill-stm32f103cb/Kconfig index 482c27e2bab3..862d0b259a99 100644 --- a/boards/bluepill-stm32f103cb/Kconfig +++ b/boards/bluepill-stm32f103cb/Kconfig @@ -13,18 +13,5 @@ config BOARD_BLUEPILL_STM32F103CB default y select BOARD_COMMON_BLXXXPILL select CPU_MODEL_STM32F103CB - select MODULE_BOARDS_COMMON_BLXXXPILL if TEST_KCONFIG - - select HAS_HIGHLEVEL_STDIO - -config FORCE_USB_STDIO - default y - -# HACK: This is added due to the make resolution -# make will select timer backend, probably due to the USBUS -# and kconfig cannot select if something is already selected like make -choice ZTIMER_MSEC_BACKEND - default ZTIMER_MSEC_BACKEND_TIMER if MODULE_PERIPH_RTC -endchoice source "$(RIOTBOARD)/common/blxxxpill/Kconfig" diff --git a/boards/calliope-mini/Kconfig b/boards/calliope-mini/Kconfig index e5ffde225b65..e5f457340e92 100644 --- a/boards/calliope-mini/Kconfig +++ b/boards/calliope-mini/Kconfig @@ -12,12 +12,5 @@ config BOARD_CALLIOPE_MINI default y select BOARD_COMMON_NRF51 select CPU_MODEL_NRF51X22XXAB - select HAS_PERIPH_I2C - select HAS_PERIPH_UART - select HAS_PERIPH_PWM - select HAVE_SAUL_GPIO - select HAVE_BMX055 - -source "$(RIOTBOARD)/common/microbit/Kconfig" source "$(RIOTBOARD)/common/nrf51/Kconfig" diff --git a/boards/cc1312-launchpad/Kconfig b/boards/cc1312-launchpad/Kconfig index 4b96a435970d..87650d21fcf6 100644 --- a/boards/cc1312-launchpad/Kconfig +++ b/boards/cc1312-launchpad/Kconfig @@ -12,10 +12,3 @@ config BOARD_CC1312_LAUNCHPAD bool default y select CPU_MODEL_CC1312R1F3 - select HAS_PERIPH_I2C - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select HAVE_SAUL_GPIO diff --git a/boards/cc1350-launchpad/Kconfig b/boards/cc1350-launchpad/Kconfig index 4557817d67be..fbc918591b93 100644 --- a/boards/cc1350-launchpad/Kconfig +++ b/boards/cc1350-launchpad/Kconfig @@ -12,10 +12,3 @@ config BOARD_CC1350_LAUNCHPAD bool default y select CPU_MODEL_CC13X0F128 - select HAS_PERIPH_I2C - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select HAVE_SAUL_GPIO diff --git a/boards/cc1352-launchpad/Kconfig b/boards/cc1352-launchpad/Kconfig index 7a66d692513b..510b463d98ee 100644 --- a/boards/cc1352-launchpad/Kconfig +++ b/boards/cc1352-launchpad/Kconfig @@ -12,10 +12,3 @@ config BOARD_CC1352_LAUNCHPAD bool default y select CPU_MODEL_CC1352R1 - select HAS_PERIPH_I2C - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select HAVE_SAUL_GPIO diff --git a/boards/cc1352p-launchpad/Kconfig b/boards/cc1352p-launchpad/Kconfig index 03e6455e6c9a..680076581ecb 100644 --- a/boards/cc1352p-launchpad/Kconfig +++ b/boards/cc1352p-launchpad/Kconfig @@ -12,10 +12,3 @@ config BOARD_CC1352P_LAUNCHPAD bool default y select CPU_MODEL_CC1352P1 - select HAS_PERIPH_I2C - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select HAVE_SAUL_GPIO diff --git a/boards/cc2538dk/Kconfig b/boards/cc2538dk/Kconfig index 52bf6c3cf1e4..6735bb69cf7d 100644 --- a/boards/cc2538dk/Kconfig +++ b/boards/cc2538dk/Kconfig @@ -11,13 +11,3 @@ config BOARD_CC2538DK bool default y select CPU_MODEL_CC2538NF53 - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_EMULATOR_RENODE - select HAS_RIOTBOOT - - select HAVE_CC2538_RF diff --git a/boards/cc2650-launchpad/Kconfig b/boards/cc2650-launchpad/Kconfig index c02ce037d224..119b1405d5fb 100644 --- a/boards/cc2650-launchpad/Kconfig +++ b/boards/cc2650-launchpad/Kconfig @@ -12,10 +12,3 @@ config BOARD_CC2650_LAUNCHPAD bool default y select CPU_MODEL_CC26X0F128 - select HAS_PERIPH_I2C - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select HAVE_SAUL_GPIO diff --git a/boards/cc2650stk/Kconfig b/boards/cc2650stk/Kconfig index 4cc1a088b289..42891fb76286 100644 --- a/boards/cc2650stk/Kconfig +++ b/boards/cc2650stk/Kconfig @@ -12,8 +12,3 @@ config BOARD_CC2650STK bool default y select CPU_MODEL_CC26X0F128 - select HAS_PERIPH_I2C - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART diff --git a/boards/common/arduino-atmega/Kconfig b/boards/common/arduino-atmega/Kconfig index a0fc47a27b25..e779d59f3b27 100644 --- a/boards/common/arduino-atmega/Kconfig +++ b/boards/common/arduino-atmega/Kconfig @@ -6,29 +6,3 @@ config BOARD_COMMON_ARDUINO_ATMEGA bool - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - # Various other features (if any) - select HAS_ARDUINO_ANALOG - select HAS_ARDUINO_I2C - select HAS_ARDUINO_PINS - select HAS_ARDUINO_PWM - select HAS_ARDUINO_SHIELD_ISP - select HAS_ARDUINO_SPI - select HAS_ARDUINO_UART - - select HAVE_SAUL_GPIO - -config MODULE_BOARDS_COMMON_ARDUINO-ATMEGA - bool - depends on TEST_KCONFIG - select MODULE_BOARDS_COMMON_ATMEGA - help - Common code of Arduino ATmega boards. - -source "$(RIOTBOARD)/common/atmega/Kconfig" diff --git a/boards/common/arduino-due/Kconfig b/boards/common/arduino-due/Kconfig index f80cc88b3d2f..5b4bd01037ba 100644 --- a/boards/common/arduino-due/Kconfig +++ b/boards/common/arduino-due/Kconfig @@ -7,30 +7,3 @@ config BOARD_COMMON_ARDUINO_DUE bool select CPU_MODEL_SAM3X8E - select HAS_ARDUINO_ANALOG - select HAS_ARDUINO_DAC - select HAS_ARDUINO_I2C - select HAS_ARDUINO_PINS - select HAS_ARDUINO_SHIELD_ISP - select HAS_ARDUINO_SHIELD_MEGA - select HAS_ARDUINO_SHIELD_UNO - select HAS_ARDUINO_SPI - select HAS_ARDUINO_UART - select HAS_PERIPH_ADC - select HAS_PERIPH_DAC - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_PWM - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select HAVE_SAUL_GPIO - select MODULE_BOARDS_COMMON_ARDUINO_DUE if TEST_KCONFIG - -config MODULE_BOARDS_COMMON_ARDUINO_DUE - bool - depends on TEST_KCONFIG - help - Common code for boards based on arduino-due. diff --git a/boards/common/arduino-mkr/Kconfig b/boards/common/arduino-mkr/Kconfig index d7547283a019..34bb992784fa 100644 --- a/boards/common/arduino-mkr/Kconfig +++ b/boards/common/arduino-mkr/Kconfig @@ -7,26 +7,3 @@ config BOARD_COMMON_ARDUINO_MKR bool select CPU_MODEL_SAMD21G18A - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAS_ARDUINO_ANALOG - select HAS_ARDUINO_PINS - select HAS_ARDUINO_PWM - select HAS_HIGHLEVEL_STDIO - - select HAVE_SAUL_GPIO - -config MODULE_BOARDS_COMMON_ARDUINO-MKR - bool - depends on TEST_KCONFIG - help - Common code for arduino-mkr type of boards. - -source "$(RIOTBOARD)/common/samdx1-arduino-bootloader/Kconfig" diff --git a/boards/common/arduino-zero/Kconfig b/boards/common/arduino-zero/Kconfig index 82b9a8378cd7..5c732e6f0e1f 100644 --- a/boards/common/arduino-zero/Kconfig +++ b/boards/common/arduino-zero/Kconfig @@ -7,29 +7,3 @@ config BOARD_COMMON_ARDUINO_ZERO bool select CPU_MODEL_SAMD21G18A - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAS_ARDUINO_ANALOG - select HAS_ARDUINO_I2C - select HAS_ARDUINO_PINS - select HAS_ARDUINO_PWM - select HAS_ARDUINO_SHIELD_ISP - select HAS_ARDUINO_SHIELD_UNO - select HAS_ARDUINO_SPI - select HAS_ARDUINO_UART - - select HAVE_SAUL_GPIO - -config MODULE_BOARDS_COMMON_ARDUINO_ZERO - bool - depends on TEST_KCONFIG - default y - help - Common code for arduino-zero type of boards. diff --git a/boards/common/atmega/Kconfig b/boards/common/atmega/Kconfig deleted file mode 100644 index 1a9be0bbfc20..000000000000 --- a/boards/common/atmega/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# 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_BOARDS_COMMON_ATMEGA - bool - depends on TEST_KCONFIG - help - Common code of ATmega boards. diff --git a/boards/common/atxmega/Kconfig b/boards/common/atxmega/Kconfig deleted file mode 100644 index 1aed05da0d9a..000000000000 --- a/boards/common/atxmega/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# 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_BOARDS_COMMON_ATXMEGA - bool - depends on TEST_KCONFIG - help - Common ATXmega boards code. diff --git a/boards/common/blxxxpill/Kconfig b/boards/common/blxxxpill/Kconfig index 6a33cead4278..663f3e5ffe8b 100644 --- a/boards/common/blxxxpill/Kconfig +++ b/boards/common/blxxxpill/Kconfig @@ -7,30 +7,10 @@ config BOARD_COMMON_BLXXXPILL bool - select HAS_PERIPH_ADC - select HAS_PERIPH_DMA - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_QDEC - select HAS_PERIPH_USBDEV - select HAS_RIOTBOOT # Clock configuration select BOARD_HAS_HSE select BOARD_HAS_LSE - select HAVE_SAUL_GPIO - -config MODULE_BOARDS_COMMON_BLXXXPILL - bool - depends on TEST_KCONFIG - help - Common code of bluepill-stm32f103xx and blackpill-stm32f103xx boards - source "$(RIOTBOARD)/common/stm32/Kconfig" diff --git a/boards/common/e104-bt50xxa-tb/Kconfig b/boards/common/e104-bt50xxa-tb/Kconfig index 75d3d6060fa2..e5c54068b6b1 100644 --- a/boards/common/e104-bt50xxa-tb/Kconfig +++ b/boards/common/e104-bt50xxa-tb/Kconfig @@ -7,32 +7,5 @@ config BOARD_COMMON_E104_BT50XXA_TB bool select BOARD_COMMON_NRF52 - select HAS_PERIPH_I2C - select HAS_PERIPH_SPI - select HAS_PERIPH_UART - - select HAVE_SAUL_GPIO - select MODULE_BOARDS_COMMON_E104_BT50XXA_TB if TEST_KCONFIG - -config MODULE_BOARDS_COMMON_E104_BT50XXA_TB - bool - depends on TEST_KCONFIG - help - common code of e104-bt50xxa-tb boards - -config MODULE_BOARD_SOFTWARE_RESET - bool "Enable softare reset button" - default y - depends on HAS_PERIPH_GPIO - depends on HAS_PERIPH_GPIO_IRQ - depends on HAS_PERIPH_PM - depends on TEST_KCONFIG - select MODULE_PERIPH_GPIO - select MODULE_PERIPH_GPIO_IRQ - select MODULE_PERIPH_PM - -choice NRF5X_RADIO_BACKEND - default MODULE_NRFMIN -endchoice source "$(RIOTBOARD)/common/nrf52/Kconfig" diff --git a/boards/common/esp32/Kconfig b/boards/common/esp32/Kconfig index 4b487747ddb3..342812ad3b28 100644 --- a/boards/common/esp32/Kconfig +++ b/boards/common/esp32/Kconfig @@ -8,13 +8,4 @@ config BOARD_COMMON_ESP32 bool select BOARD_COMMON_ESP32X -config MODULE_BOARDS_COMMON_ESP32 - bool - depends on TEST_KCONFIG - depends on BOARD_COMMON_ESP32 - depends on HAS_ARCH_ESP32 - default y - help - Common ESP32 boards code. - source "$(RIOTBOARD)/common/esp32x/Kconfig" diff --git a/boards/common/esp32c3/Kconfig b/boards/common/esp32c3/Kconfig index e36e07837aaf..7a2934e6dca9 100644 --- a/boards/common/esp32c3/Kconfig +++ b/boards/common/esp32c3/Kconfig @@ -9,13 +9,4 @@ config BOARD_COMMON_ESP32C3 bool select BOARD_COMMON_ESP32X -config MODULE_BOARDS_COMMON_ESP32C3 - bool - depends on TEST_KCONFIG - depends on BOARD_COMMON_ESP32C3 - depends on HAS_ARCH_ESP32 - default y - help - Common ESP32-C3 boards code. - source "$(RIOTBOARD)/common/esp32x/Kconfig" diff --git a/boards/common/esp32s2/Kconfig b/boards/common/esp32s2/Kconfig index 5cb72e8ea97e..2e7374f291e6 100644 --- a/boards/common/esp32s2/Kconfig +++ b/boards/common/esp32s2/Kconfig @@ -9,13 +9,4 @@ config BOARD_COMMON_ESP32S2 bool select BOARD_COMMON_ESP32X -config MODULE_BOARDS_COMMON_ESP32S2 - bool - depends on TEST_KCONFIG - depends on BOARD_COMMON_ESP32S2 - depends on HAS_ARCH_ESP32 - default y - help - Common ESP32-S2 boards code. - source "$(RIOTBOARD)/common/esp32x/Kconfig" diff --git a/boards/common/esp32s3/Kconfig b/boards/common/esp32s3/Kconfig index 1007d5fcc7e1..0200e7df7e75 100644 --- a/boards/common/esp32s3/Kconfig +++ b/boards/common/esp32s3/Kconfig @@ -9,13 +9,4 @@ config BOARD_COMMON_ESP32S3 bool select BOARD_COMMON_ESP32X -config MODULE_BOARDS_COMMON_ESP32S3 - bool - depends on TEST_KCONFIG - depends on BOARD_COMMON_ESP32S3 - depends on HAS_ARCH_ESP32 - default y - help - Common ESP32-S3 boards code. - source "$(RIOTBOARD)/common/esp32x/Kconfig" diff --git a/boards/common/esp32x/Kconfig b/boards/common/esp32x/Kconfig index 703ab39ac0ba..1f97432b65d1 100644 --- a/boards/common/esp32x/Kconfig +++ b/boards/common/esp32x/Kconfig @@ -6,15 +6,3 @@ config BOARD_COMMON_ESP32X bool - select HAS_PERIPH_UART - - select HAVE_SAUL_GPIO - -config MODULE_BOARDS_COMMON_ESP32X - bool - depends on TEST_KCONFIG - depends on BOARD_COMMON_ESP32X - depends on HAS_ARCH_ESP32 - default y - help - Common ESP32x boards code. diff --git a/boards/common/esp8266/Kconfig b/boards/common/esp8266/Kconfig index 1a9c276dbf49..7f66a0d6c120 100644 --- a/boards/common/esp8266/Kconfig +++ b/boards/common/esp8266/Kconfig @@ -6,20 +6,3 @@ config BOARD_COMMON_ESP8266 bool - select HAS_ARDUINO_PINS - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI - select HAS_PERIPH_UART - - select HAVE_SAUL_GPIO - -config MODULE_BOARDS_COMMON_ESP8266 - bool - depends on TEST_KCONFIG - depends on HAS_ARCH_ESP8266 - depends on BOARD_COMMON_ESP8266 - default y - help - Common ESP8266 boards code. diff --git a/boards/common/iotlab/Kconfig b/boards/common/iotlab/Kconfig index 7b02cc30cd2f..ea818c231de8 100644 --- a/boards/common/iotlab/Kconfig +++ b/boards/common/iotlab/Kconfig @@ -8,32 +8,12 @@ config BOARD_COMMON_IOTLAB bool select CPU_MODEL_STM32F103RE - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - # Put other features for this board (in alphabetical order) - select HAS_RIOTBOOT # Clock configuration select BOARD_HAS_HSE select BOARD_HAS_LSE - select HAVE_AT86RF231 - select HAVE_SAUL_GPIO - select HAVE_L3G4200D_NG - select HAVE_LSM303DLHC - config CLOCK_HSE default 16000000 -config MODULE_BOARDS_COMMON_IOTLAB - bool - depends on TEST_KCONFIG - help - Common code of iotlab based boards - source "$(RIOTBOARD)/common/stm32/Kconfig" diff --git a/boards/common/kw41z/Kconfig b/boards/common/kw41z/Kconfig index 9a5253b567f1..51af6c5e05e9 100644 --- a/boards/common/kw41z/Kconfig +++ b/boards/common/kw41z/Kconfig @@ -8,18 +8,3 @@ config BOARD_COMMON_KW41Z bool default y select CPU_MODEL_MKW41Z512VHT4 - select HAS_PERIPH_ADC - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_RIOTBOOT - - select HAVE_KW41ZRF - select HAVE_SAUL_ADC - select HAVE_SAUL_GPIO - -config MODULE_BOARDS_COMMON_KW41Z - bool - help - Common code for kw41z-based boards. diff --git a/boards/common/microbit/Kconfig b/boards/common/microbit/Kconfig deleted file mode 100644 index 1e3c33d7405b..000000000000 --- a/boards/common/microbit/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# Copyright (c) 2021 Inria -# -# 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_MICROBIT - bool "BBC micro:bit specific LED matrix handling" - select MODULE_ZTIMER - select ZTIMER_USEC - select MODULE_MINEPLEX diff --git a/boards/common/msb-430/Kconfig b/boards/common/msb-430/Kconfig index 644f84e358af..cf87d207a89e 100644 --- a/boards/common/msb-430/Kconfig +++ b/boards/common/msb-430/Kconfig @@ -9,11 +9,3 @@ config BOARD_COMMON_MSB_430 bool default y select CPU_MODEL_MSP430F1612 - -config MODULE_BOARDS_COMMON_MSB_430 - bool - default y - depends on TEST_KCONFIG - depends on BOARD_COMMON_MSB_430 - help - Common code for msb-430 boards. diff --git a/boards/common/nrf51/Kconfig b/boards/common/nrf51/Kconfig index ea63e6730fce..398a02e75e2c 100644 --- a/boards/common/nrf51/Kconfig +++ b/boards/common/nrf51/Kconfig @@ -6,17 +6,3 @@ config BOARD_COMMON_NRF51 bool - select HAS_PERIPH_RTT - select HAS_PERIPH_TIMER - - select HAVE_SAUL_NRF_TEMPERATURE - -config MODULE_BOARDS_COMMON_NRF51 - bool - depends on TEST_KCONFIG - help - Common code of NRF51 boards - -choice NRF5X_RADIO_BACKEND - default MODULE_NRFMIN -endchoice diff --git a/boards/common/nrf52/Kconfig b/boards/common/nrf52/Kconfig index 437bb6e43a13..4301a00af9a0 100644 --- a/boards/common/nrf52/Kconfig +++ b/boards/common/nrf52/Kconfig @@ -6,8 +6,3 @@ config BOARD_COMMON_NRF52 bool - select HAS_PERIPH_RTT - select HAS_PERIPH_TIMER - select HAS_RIOTBOOT - - select HAVE_SAUL_NRF_TEMPERATURE diff --git a/boards/common/nrf52xxxdk/Kconfig b/boards/common/nrf52xxxdk/Kconfig index f8cbf754e3ad..43a0154ae756 100644 --- a/boards/common/nrf52xxxdk/Kconfig +++ b/boards/common/nrf52xxxdk/Kconfig @@ -7,19 +7,5 @@ config BOARDS_COMMON_NRF52XXXDK bool select BOARD_COMMON_NRF52 - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI - select HAS_PERIPH_UART - select HAS_VDD_LC_FILTER_REG1 - - select HAVE_SAUL_GPIO - select HAVE_SAUL_PWM - -config MODULE_BOARDS_COMMON_NRF52XXXDK - bool - depends on TEST_KCONFIG - help - Common code for boards based on nrf52xxxdk. source "$(RIOTBOARD)/common/nrf52/Kconfig" diff --git a/boards/common/nucleo/Kconfig b/boards/common/nucleo/Kconfig index e0947d2ef300..9ffb6885e806 100644 --- a/boards/common/nucleo/Kconfig +++ b/boards/common/nucleo/Kconfig @@ -5,15 +5,4 @@ # directory for more details. # -if TEST_KCONFIG - -config MODULE_BOARDS_COMMON_NUCLEO - bool - default y - select HAVE_SAUL_GPIO - help - stm32 common nucleo code. - -endif # TEST_KCONFIG - rsource "../stm32/Kconfig" diff --git a/boards/common/nucleo144/Kconfig b/boards/common/nucleo144/Kconfig index c309ce3c3720..2efb41c9985c 100644 --- a/boards/common/nucleo144/Kconfig +++ b/boards/common/nucleo144/Kconfig @@ -7,10 +7,6 @@ config BOARD_COMMON_NUCLEO144 bool - select HAS_ARDUINO_ANALOG - select HAS_ARDUINO_PINS - select HAS_ARDUINO_SHIELD_MEGA - select HAS_ARDUINO_SHIELD_UNO # Clock configuration select BOARD_HAS_HSE if !CPU_FAM_L4 && !CPU_FAM_L5 diff --git a/boards/common/nucleo32/Kconfig b/boards/common/nucleo32/Kconfig index a5ac1d7dfb9a..00a323c6f34f 100644 --- a/boards/common/nucleo32/Kconfig +++ b/boards/common/nucleo32/Kconfig @@ -7,15 +7,9 @@ config BOARD_COMMON_NUCLEO32 bool - select HAS_ARDUINO_ANALOG - select HAS_ARDUINO_PINS - select HAS_ARDUINO_SHIELD_NANO # Clock configuration select BOARD_HAS_LSE if (CPU_FAM_L0 || CPU_FAM_L4) && !BOARD_NUCLEO_L011K4 -config MODULE_PERIPH_INIT_LED0 - default n if MODULE_PERIPH_SPI - source "$(RIOTBOARD)/common/nucleo/Kconfig" source "$(RIOTBOARD)/common/stm32/Kconfig" diff --git a/boards/common/nucleo64/Kconfig b/boards/common/nucleo64/Kconfig index 577e0e91cfdd..4acf9884f1f7 100644 --- a/boards/common/nucleo64/Kconfig +++ b/boards/common/nucleo64/Kconfig @@ -7,19 +7,10 @@ config BOARD_COMMON_NUCLEO64 bool - select HAS_ARDUINO_ANALOG - select HAS_ARDUINO_I2C - select HAS_ARDUINO_PINS - select HAS_ARDUINO_SHIELD_UNO - select HAS_ARDUINO_SPI - select HAS_ARDUINO_UART # Clock configuration select BOARD_HAS_HSE if !CPU_FAM_G0 && !CPU_FAM_L0 && !CPU_FAM_L1 && !CPU_FAM_L4 select BOARD_HAS_LSE if !BOARD_NUCLEO_L152RE -config MODULE_PERIPH_INIT_LED0 - default n if MODULE_PERIPH_SPI - source "$(RIOTBOARD)/common/nucleo/Kconfig" source "$(RIOTBOARD)/common/stm32/Kconfig" diff --git a/boards/common/particle-mesh/Kconfig b/boards/common/particle-mesh/Kconfig index 551f9f93126e..647752e057ed 100644 --- a/boards/common/particle-mesh/Kconfig +++ b/boards/common/particle-mesh/Kconfig @@ -8,28 +8,5 @@ config BOARD_COMMON_PARTICLE_MESH bool select BOARD_COMMON_NRF52 select CPU_MODEL_NRF52840XXAA - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI - select HAS_PERIPH_UART - select HAS_PERIPH_UART_HW_FC - select HAS_PERIPH_USBDEV - select HAS_HIGHLEVEL_STDIO - select HAS_VDD_LC_FILTER_REG1 - - select HAVE_SAUL_GPIO - select HAVE_SAUL_PWM - - select MODULE_BOARDS_COMMON_PARTICLE_MESH if TEST_KCONFIG - select MODULE_USB_BOARD_RESET if KCONFIG_USB && TEST_KCONFIG - -config MODULE_BOARDS_COMMON_PARTICLE_MESH - bool - depends on TEST_KCONFIG - help - Common code for particle-mesh boards - -config FORCE_USB_STDIO - default y source "$(RIOTBOARD)/common/nrf52/Kconfig" diff --git a/boards/common/qn908x/Kconfig b/boards/common/qn908x/Kconfig index 6674cdded1c6..bd5142e9f383 100644 --- a/boards/common/qn908x/Kconfig +++ b/boards/common/qn908x/Kconfig @@ -7,11 +7,4 @@ config BOARD_COMMON_QN908X bool depends on CPU_FAM_QN908X - select MODULE_BOARD_COMMON_QN908X if TEST_KCONFIG # Add common board support here. - -config MODULE_BOARDS_COMMON_QN908X - bool - depends on TEST_KCONFIG - help - Common code for qn908x boards. diff --git a/boards/common/remote/Kconfig b/boards/common/remote/Kconfig index 72413bb5c2c9..d691348ea342 100644 --- a/boards/common/remote/Kconfig +++ b/boards/common/remote/Kconfig @@ -9,17 +9,3 @@ config BOARD_COMMON_REMOTE bool default y select CPU_MODEL_CC2538SF53 - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_RIOTBOOT - - select HAVE_CC2538_RF - -config MODULE_BOARDS_COMMON_REMOTE - bool - default y - depends on TEST_KCONFIG diff --git a/boards/common/samdx1-arduino-bootloader/Kconfig b/boards/common/samdx1-arduino-bootloader/Kconfig deleted file mode 100644 index da62743e3674..000000000000 --- a/boards/common/samdx1-arduino-bootloader/Kconfig +++ /dev/null @@ -1,16 +0,0 @@ -# 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_BOARDS_COMMON_SAMDX1-ARDUINO-BOOTLOADER - bool - default y if MODULE_USBUS_CDC_ACM - imply MODULE_USB_BOARD_RESET - depends on TEST_KCONFIG - help - Common code of samdx1 boards with an arduino bootloader - -config FORCE_USB_STDIO - default y diff --git a/boards/common/saml1x/Kconfig b/boards/common/saml1x/Kconfig index 4bfcd2029b11..ebf621b662a3 100644 --- a/boards/common/saml1x/Kconfig +++ b/boards/common/saml1x/Kconfig @@ -6,24 +6,3 @@ config BOARD_COMMON_SAML1X bool - select HAS_PERIPH_ADC - select HAS_PERIPH_DAC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_RIOTBOOT - - select HAVE_SAUL_GPIO - -config MODULE_BOARDS_COMMON_SAML1X - bool - depends on TEST_KCONFIG - depends on BOARD_COMMON_SAML1X - default y - help - Board specific code for the Microchip SAML10 and SAML11 Xplained Pro - boards. diff --git a/boards/common/silabs/Kconfig b/boards/common/silabs/Kconfig index a37ec01c4f5a..0486a454774a 100644 --- a/boards/common/silabs/Kconfig +++ b/boards/common/silabs/Kconfig @@ -6,17 +6,3 @@ config BOARD_COMMON_SILABS bool - select HAS_ARDUINO_ANALOG - select HAS_ARDUINO_PINS - select HAS_EFM32_CORETEMP - select HAS_RIOTBOOT - -config MODULE_BOARDS_COMMON_SILABS - bool - depends on TEST_KCONFIG - depends on BOARD_COMMON_SILABS - default y - help - Common silabs board code. - -rsource "drivers/Kconfig" diff --git a/boards/common/silabs/drivers/Kconfig b/boards/common/silabs/drivers/Kconfig deleted file mode 100644 index f737042fa376..000000000000 --- a/boards/common/silabs/drivers/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# 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. -# - -rsource "aem/Kconfig" -rsource "bc/Kconfig" -rsource "pic/Kconfig" diff --git a/boards/common/silabs/drivers/aem/Kconfig b/boards/common/silabs/drivers/aem/Kconfig deleted file mode 100644 index eb69f572fc49..000000000000 --- a/boards/common/silabs/drivers/aem/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# 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_SILABS_AEM - bool - depends on TEST_KCONFIG - depends on BOARD_COMMON_SILABS - help - Advanced energy monitor driver for silabs boards. diff --git a/boards/common/silabs/drivers/bc/Kconfig b/boards/common/silabs/drivers/bc/Kconfig deleted file mode 100644 index 203c458e710c..000000000000 --- a/boards/common/silabs/drivers/bc/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# 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_SILABS_BC - bool - depends on TEST_KCONFIG - depends on BOARD_COMMON_SILABS - help - Board controller driver for silabs boards. diff --git a/boards/common/silabs/drivers/pic/Kconfig b/boards/common/silabs/drivers/pic/Kconfig deleted file mode 100644 index f86384c6d82e..000000000000 --- a/boards/common/silabs/drivers/pic/Kconfig +++ /dev/null @@ -1,15 +0,0 @@ -# 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_SILABS_PIC - bool - depends on TEST_KCONFIG - depends on BOARD_COMMON_SILABS - depends on HAS_PERIPH_I2C - select MODULE_PERIPH_I2C - help - Power-and-interrupt controller driver for silabs boards. diff --git a/boards/common/slwstk6000b/Kconfig b/boards/common/slwstk6000b/Kconfig index c75c68eba0c5..80e8d9cd0bf0 100644 --- a/boards/common/slwstk6000b/Kconfig +++ b/boards/common/slwstk6000b/Kconfig @@ -7,24 +7,5 @@ config BOARD_COMMON_SLWSTK6000B bool select BOARD_COMMON_SILABS - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - # additional hardware present in the board - select HAVE_SAUL_GPIO - select HAVE_SI7021 - -config MODULE_BOARD_COMMON_SLWSTK6000B - bool - depends on TEST_KCONFIG - depends on BOARD_COMMON_SLWSTK6000B - select MODULE_SILABS_AEM - select MODULE_SILABS_BC - help - Common code for SLWSTK6000B silabs boards. source "$(RIOTBOARD)/common/silabs/Kconfig" diff --git a/boards/common/sodaq/Kconfig b/boards/common/sodaq/Kconfig index ff32879a0b58..9c1428457f23 100644 --- a/boards/common/sodaq/Kconfig +++ b/boards/common/sodaq/Kconfig @@ -6,23 +6,3 @@ config BOARD_COMMON_SODAQ bool - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAS_ARDUINO_PINS - select HAS_HIGHLEVEL_STDIO - - select HAVE_SAUL_GPIO - -config MODULE_BOARDS_COMMON_SODAQ - bool - depends on TEST_KCONFIG - help - Common code for Sodaq boards. - -source "$(RIOTBOARD)/common/samdx1-arduino-bootloader/Kconfig" diff --git a/boards/common/weact-f4x1cx/Kconfig b/boards/common/weact-f4x1cx/Kconfig index 825127591fb4..10ebe303ff85 100644 --- a/boards/common/weact-f4x1cx/Kconfig +++ b/boards/common/weact-f4x1cx/Kconfig @@ -7,36 +7,12 @@ config BOARD_COMMON_WEACT_F4X1CX bool - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAS_HIGHLEVEL_STDIO # Clock configuration select BOARD_HAS_HSE select BOARD_HAS_LSE - select HAVE_SAUL_GPIO - select HAVE_MTD_SPI_NOR - select MODULE_BOOTLOADER_STM32 if MODULE_STDIO_CDC_ACM - select MODULE_USB_BOARD_RESET if KCONFIG_USB && TEST_KCONFIG - config CLOCK_HSE default 25000000 -config MODULE_BOARDS_COMMON_WEACT-F4X1CX - bool - depends on TEST_KCONFIG - help - Common code of weact based boards - -config FORCE_USB_STDIO - default y - source "$(RIOTBOARD)/common/stm32/Kconfig" diff --git a/boards/derfmega128/Kconfig b/boards/derfmega128/Kconfig index cd32deb87856..f53fd9b9e1ec 100644 --- a/boards/derfmega128/Kconfig +++ b/boards/derfmega128/Kconfig @@ -11,14 +11,3 @@ config BOARD_DERFMEGA128 bool default y select CPU_MODEL_ATMEGA128RFA1 - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select MODULE_BOARDS_COMMON_ATMEGA if TEST_KCONFIG - -source "$(RIOTBOARD)/common/atmega/Kconfig" diff --git a/boards/derfmega256/Kconfig b/boards/derfmega256/Kconfig index 8108ec45a401..7dc7d3223a7e 100644 --- a/boards/derfmega256/Kconfig +++ b/boards/derfmega256/Kconfig @@ -11,15 +11,3 @@ config BOARD_DERFMEGA256 bool default y select CPU_MODEL_ATMEGA256RFR2 - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select MODULE_BOARDS_COMMON_ATMEGA if TEST_KCONFIG - select MODULE_PERIPH_EEPROM if MODULE_EUI_PROVIDER && HAS_PERIPH_EEPROM - -source "$(RIOTBOARD)/common/atmega/Kconfig" diff --git a/boards/doc.txt b/boards/doc.txt index fd539e9728fc..a86ae8fba67c 100644 --- a/boards/doc.txt +++ b/boards/doc.txt @@ -54,8 +54,8 @@ Popular Boards | @ref boards_esp32_esp-ethernet-kit | Development | `+++` | ✔ | ✔ (WiFi, BLE, Ethernet, custom) | ✗ | ✗ | Custom | `-` (1 button) | `+` | `o` | Requires proprietary software | | @ref boards_esp32_wroom-32 | Prototyping | `+++` | ✗ | ✔ (WiFi, BLE, custom) | ✗ | ✗ | Custom | `-` (1 button) | `+++` | `+++` | Requires proprietary software | | @ref boards_microbit_v2 | Education | `++` | ✔ | ✔ (802.15.4, BLE, custom) | ✗ | ✗ | micro:bit edge connector | `+++` (6 buttons, LED matrix, mic, speaker, IMO) | `--` | `++` | Good education board | -| @ref boards_nrf52840dk | Development | `++` | ✔ | ✔ (802.15.4, BLE, custom) | ✔ | `+++`(Uno, Mega) | Custom | `+` (4 buttons, 4 LEDs) | `+` | `+` | Excellent border router | -| @ref boards_nrf52840dongle | Prototyping | `++` | ✗ | ✔ (802.15.4, BLE, custom) | ✔ | ✗ | Custom | o (1 button, 4 LEDs) | `++` | `++` | Good wireless dev board | +| @ref boards_nrf52840dk | Development | `++` | ✔ | ✔ (802.15.4, BLE, custom) | ✔ | `+++`(Uno, Mega) | Custom | `+` (4 buttons, 4 LEDs) | `+` | `+` | Good wireless dev board | +| @ref boards_nrf52840dongle | Prototyping | `++` | ✗ | ✔ (802.15.4, BLE, custom) | ✔ | ✗ | Custom | o (1 button, 4 LEDs) | `++` | `++` | Excellent border router | | @ref boards_nucleo-wl55jc | Development | `++` | ✔ | ✔ (LoRa) | ✗ | `+` (Uno) | ST Morpho Headers | `+` (3 buttons, 3 LEDs) | `+` | `++` | Good bang for the buck | | @ref boards_pinetime | Gadget | `++` | ✗ | ✔ (BLE) | ✗ | ✗ | ✗ | `+++` (LCD, button, touch screen, IMU, flash, ...) | `---` | `+++` | Buy two: One with SWD access | | @ref boards_samr21-xpro | Development | `+` | ✔ | ✔ (802.15.4) | ✔ | ✗ | XPRO Expansion Header | `o` (1 button, 1 LED) | `+` | `--` | Quite expensive | diff --git a/boards/dwm1001/Kconfig b/boards/dwm1001/Kconfig index a2f566b721e4..2ebef9c59fbf 100644 --- a/boards/dwm1001/Kconfig +++ b/boards/dwm1001/Kconfig @@ -12,12 +12,5 @@ config BOARD_DWM1001 default y select BOARD_COMMON_NRF52 select CPU_MODEL_NRF52832XXAA - select HAS_PERIPH_I2C - select HAS_PERIPH_SPI - select HAS_PERIPH_UART - select HAS_VDD_LC_FILTER_REG1 - - select HAVE_LIS2DH12_I2C - select HAVE_SAUL_GPIO source "$(RIOTBOARD)/common/nrf52/Kconfig" diff --git a/boards/e180-zg120b-tb/Kconfig b/boards/e180-zg120b-tb/Kconfig index 9a2ca3965967..4600e533a6a1 100644 --- a/boards/e180-zg120b-tb/Kconfig +++ b/boards/e180-zg120b-tb/Kconfig @@ -11,14 +11,5 @@ config BOARD_E180_ZG120B_TB bool default y select CPU_MODEL_EFR32MG1B232F256GM32 - select HAS_PERIPH_ADC - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_EFM32_CORETEMP - select HAS_RIOTBOOT - - select HAVE_SAUL_GPIO source "$(RIOTBOARD)/common/silabs/Kconfig" diff --git a/boards/ek-lm4f120xl/Kconfig b/boards/ek-lm4f120xl/Kconfig index 857d5915357a..89e2724f6800 100644 --- a/boards/ek-lm4f120xl/Kconfig +++ b/boards/ek-lm4f120xl/Kconfig @@ -11,11 +11,3 @@ config BOARD_EK_LM4F120XL bool default y select CPU_MODEL_LM4F120H5QR - select HAS_PERIPH_ADC - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select HAVE_SAUL_GPIO diff --git a/boards/esp32-ethernet-kit-v1_0/Kconfig b/boards/esp32-ethernet-kit-v1_0/Kconfig index 76dc878350d1..43ea80b3445b 100644 --- a/boards/esp32-ethernet-kit-v1_0/Kconfig +++ b/boards/esp32-ethernet-kit-v1_0/Kconfig @@ -13,11 +13,5 @@ config BOARD_ESP32_ETHERNET_KIT_V1_0 default y select BOARD_COMMON_ESP32 select CPU_MODEL_ESP32_WROVER_B - select HAS_ESP_ETH - select HAS_ESP_JTAG - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI if !MODULE_ESP_JTAG source "$(RIOTBOARD)/common/esp32/Kconfig" diff --git a/boards/esp32-ethernet-kit-v1_1/Kconfig b/boards/esp32-ethernet-kit-v1_1/Kconfig index 9303dd1514e4..b82f812b414c 100644 --- a/boards/esp32-ethernet-kit-v1_1/Kconfig +++ b/boards/esp32-ethernet-kit-v1_1/Kconfig @@ -13,11 +13,5 @@ config BOARD_ESP32_ETHERNET_KIT_V1_1 default y select BOARD_COMMON_ESP32 select CPU_MODEL_ESP32_WROVER_B - select HAS_ESP_ETH - select HAS_ESP_JTAG - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI if !MODULE_ESP_JTAG source "$(RIOTBOARD)/common/esp32/Kconfig" diff --git a/boards/esp32-ethernet-kit-v1_2/Kconfig b/boards/esp32-ethernet-kit-v1_2/Kconfig index 214ac6ff81c0..873a9e43e3f4 100644 --- a/boards/esp32-ethernet-kit-v1_2/Kconfig +++ b/boards/esp32-ethernet-kit-v1_2/Kconfig @@ -13,11 +13,5 @@ config BOARD_ESP32_ETHERNET_KIT_V1_2 default y select BOARD_COMMON_ESP32 select CPU_MODEL_ESP32_WROVER_E - select HAS_ESP_ETH - select HAS_ESP_JTAG - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI if !MODULE_ESP_JTAG source "$(RIOTBOARD)/common/esp32/Kconfig" diff --git a/boards/esp32-heltec-lora32-v2/Kconfig b/boards/esp32-heltec-lora32-v2/Kconfig index 2abb4fbd693a..cbf395fc1c48 100644 --- a/boards/esp32-heltec-lora32-v2/Kconfig +++ b/boards/esp32-heltec-lora32-v2/Kconfig @@ -12,13 +12,5 @@ config BOARD_ESP32_HELTEC_LORA32_V2 default y select BOARD_COMMON_ESP32 select CPU_MODEL_ESP32_D0WD - select HAS_ARDUINO_PINS - select HAS_ESP_RTC_TIMER_32K - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI - - select HAVE_SX1276 source "$(RIOTBOARD)/common/esp32/Kconfig" diff --git a/boards/esp32-mh-et-live-minikit/Kconfig b/boards/esp32-mh-et-live-minikit/Kconfig index 027f0365b128..239121045187 100644 --- a/boards/esp32-mh-et-live-minikit/Kconfig +++ b/boards/esp32-mh-et-live-minikit/Kconfig @@ -12,11 +12,5 @@ config BOARD_ESP32_MH_ET_LIVE_MINIKIT default y select BOARD_COMMON_ESP32 select CPU_MODEL_ESP32_WROOM_32 - select HAS_ARDUINO_PINS - select HAS_PERIPH_ADC - select HAS_PERIPH_DAC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI source "$(RIOTBOARD)/common/esp32/Kconfig" diff --git a/boards/esp32-olimex-evb/Kconfig b/boards/esp32-olimex-evb/Kconfig index 916d3777f786..0ce2ea942c19 100644 --- a/boards/esp32-olimex-evb/Kconfig +++ b/boards/esp32-olimex-evb/Kconfig @@ -12,15 +12,5 @@ config BOARD_ESP32_OLIMEX_EVB default y select BOARD_COMMON_ESP32 select CPU_MODEL_ESP32_WROOM_32 - select HAS_ARDUINO_PINS - select HAS_ESP_ETH - select HAS_PERIPH_ADC if USEMODULE_OLIMEX_ESP32_GATEWAY - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SDMMC - select HAS_PERIPH_SPI - select HAS_PERIPH_CAN - - select HAVE_MTD_SDMMC_DEFAULT source "$(RIOTBOARD)/common/esp32/Kconfig" diff --git a/boards/esp32-ttgo-t-beam/Kconfig b/boards/esp32-ttgo-t-beam/Kconfig index c82b8d9a3446..483cb3788640 100644 --- a/boards/esp32-ttgo-t-beam/Kconfig +++ b/boards/esp32-ttgo-t-beam/Kconfig @@ -12,28 +12,5 @@ config BOARD_ESP32_TTGO_T_BEAM default y select BOARD_COMMON_ESP32 select CPU_MODEL_ESP32_D0WD - select HAS_ARDUINO_PINS - select HAS_ESP_SPI_RAM - select HAS_PERIPH_ADC - select HAS_PERIPH_DAC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI - select HAS_PERIPH_UART source "$(RIOTBOARD)/common/esp32/Kconfig" - -menu "ESP32 TTGO T-Beam options" - depends on TEST_KCONFIG - depends on BOARD_ESP32_TTGO_T_BEAM - -config MODULE_ESP32_TTGO_T_BEAM_V1_0 - bool "Use V1.0 board variant" - select MODULE_PERIPH_I2C - help - There are at least three board types: rev0, rev1, and V1.0. Versions - rev0 and rev1 are very similar, the only difference is that rev1 has - an additional LED connected to GPIO14. The pinout of V1.0 has more - changes. - -endmenu diff --git a/boards/esp32-wemos-lolin-d32-pro/Kconfig b/boards/esp32-wemos-lolin-d32-pro/Kconfig index e6196f6da4e8..863abca3dee8 100644 --- a/boards/esp32-wemos-lolin-d32-pro/Kconfig +++ b/boards/esp32-wemos-lolin-d32-pro/Kconfig @@ -12,15 +12,5 @@ config BOARD_ESP32_WEMOS_LOLIN_D32_PRO default y select BOARD_COMMON_ESP32 select CPU_MODEL_ESP32_WROVER - select HAS_ARDUINO_PINS - select HAS_PERIPH_ADC - select HAS_PERIPH_DAC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI - select HAS_SDCARD_SPI - - select HAVE_MTD_SDCARD_DEFAULT - select MODULE_FATFS_VFS if MODULE_VFS_DEFAULT source "$(RIOTBOARD)/common/esp32/Kconfig" diff --git a/boards/esp32-wemos-lolin-d32-pro/esp32-wemos-lolin-d32-pro.config b/boards/esp32-wemos-lolin-d32-pro/esp32-wemos-lolin-d32-pro.config deleted file mode 100644 index 171440efa1ec..000000000000 --- a/boards/esp32-wemos-lolin-d32-pro/esp32-wemos-lolin-d32-pro.config +++ /dev/null @@ -1 +0,0 @@ -CONFIG_MODULE_ESP_SPI_RAM=y diff --git a/boards/esp32-wroom-32/Kconfig b/boards/esp32-wroom-32/Kconfig index dbf682aceb23..364233c05232 100644 --- a/boards/esp32-wroom-32/Kconfig +++ b/boards/esp32-wroom-32/Kconfig @@ -12,11 +12,5 @@ config BOARD_ESP32_WROOM_32 default y select BOARD_COMMON_ESP32 select CPU_MODEL_ESP32_WROOM_32 - select HAS_ARDUINO_PINS - select HAS_PERIPH_ADC - select HAS_PERIPH_DAC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI source "$(RIOTBOARD)/common/esp32/Kconfig" diff --git a/boards/esp32-wrover-kit/Kconfig b/boards/esp32-wrover-kit/Kconfig index c9e7748ae721..317b65b25e35 100644 --- a/boards/esp32-wrover-kit/Kconfig +++ b/boards/esp32-wrover-kit/Kconfig @@ -12,19 +12,5 @@ config BOARD_ESP32_WROVER_KIT default y select BOARD_COMMON_ESP32 select CPU_MODEL_ESP32_WROVER - select HAS_ARDUINO_PINS - select HAS_ESP_RTC_TIMER_32K - select HAS_ESP_JTAG - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SDMMC - select HAS_PERIPH_SPI - select HAS_SDCARD_SPI - - select HAVE_ILI9341 - select HAVE_MTD_SDMMC_DEFAULT if !MODULE_SDCARD_SPI - - select MODULE_FATFS_VFS if MODULE_VFS_DEFAULT source "$(RIOTBOARD)/common/esp32/Kconfig" diff --git a/boards/esp32-wrover-kit/esp32-wrover-kit.config b/boards/esp32-wrover-kit/esp32-wrover-kit.config deleted file mode 100644 index 2b24cf45d3eb..000000000000 --- a/boards/esp32-wrover-kit/esp32-wrover-kit.config +++ /dev/null @@ -1,2 +0,0 @@ -# Sets up configuration for openocd -CONFIG_MODULE_ESP_JTAG=y diff --git a/boards/esp32c3-devkit/Kconfig b/boards/esp32c3-devkit/Kconfig index 33eb7002a825..eb7ca9053d10 100644 --- a/boards/esp32c3-devkit/Kconfig +++ b/boards/esp32c3-devkit/Kconfig @@ -13,11 +13,5 @@ config BOARD_ESP32C3_DEVKIT default y select BOARD_COMMON_ESP32C3 select CPU_MODEL_ESP32C3_MINI_1X - select HAS_ARDUINO_PINS - select HAS_ESP_JTAG - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI source "$(RIOTBOARD)/common/esp32c3/Kconfig" diff --git a/boards/esp32c3-wemos-mini/Kconfig b/boards/esp32c3-wemos-mini/Kconfig index 4ae400788653..94a4671e69e6 100644 --- a/boards/esp32c3-wemos-mini/Kconfig +++ b/boards/esp32c3-wemos-mini/Kconfig @@ -13,14 +13,6 @@ config BOARD_ESP32C3_WEMOS_MINI default y select BOARD_COMMON_ESP32C3 select CPU_MODEL_ESP32C3_FH4 - select HAS_ARDUINO_PINS - select HAS_ESP_JTAG - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI - select MODULE_ESP32C3_WEMOS_MINI_V1_0_0 if BOARD_VERSION_ESP32C3_WEMOS_MINI_V1_0_0 - select MODULE_ESP32C3_WEMOS_MINI_V2_1_0 if BOARD_VERSION_ESP32C3_WEMOS_MINI_V2_1_0 choice bool "Wemos ESP32-C3 mini board version" @@ -38,14 +30,4 @@ config BOARD_ESP32C3_WEMOS_MINI version 1.0.0 endchoice -config MODULE_ESP32C3_WEMOS_MINI_V1_0_0 - bool - help - Indicates that Wemos ESP32-C3 mini board version v1.0.0 is used. - -config MODULE_ESP32C3_WEMOS_MINI_V2_1_0 - bool - help - Indicates that Wemos ESP32-C3 mini board version v2.1.0 is used. - source "$(RIOTBOARD)/common/esp32c3/Kconfig" diff --git a/boards/esp32c3-wemos-mini/esp32c3-wemos-mini.config b/boards/esp32c3-wemos-mini/esp32c3-wemos-mini.config deleted file mode 100644 index 0ebba57f03ef..000000000000 --- a/boards/esp32c3-wemos-mini/esp32c3-wemos-mini.config +++ /dev/null @@ -1 +0,0 @@ -CONFIG_MODULE_STDIO_USB_SERIAL_JTAG=y diff --git a/boards/esp32s2-devkit/Kconfig b/boards/esp32s2-devkit/Kconfig index f8d28211e704..b410e2b4df34 100644 --- a/boards/esp32s2-devkit/Kconfig +++ b/boards/esp32s2-devkit/Kconfig @@ -24,20 +24,6 @@ config BOARD_ESP32S2_DEVKIT select CPU_MODEL_ESP32S2_WROOM if BOARD_VERSION_ESP32S2_SAOLA_1MI select CPU_MODEL_ESP32S2_WROVER_N4R2 if BOARD_VERSION_ESP32S2_SAOLA_1R select CPU_MODEL_ESP32S2_WROVER_N4R2 if BOARD_VERSION_ESP32S2_SAOLA_1RI - select HAS_ARDUINO_PINS - select HAS_PERIPH_ADC - select HAS_PERIPH_DAC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI - select HAS_PERIPH_USBDEV if BOARD_VERSION_ESP32S2_DEVKITC_1 - select HAS_PERIPH_USBDEV if BOARD_VERSION_ESP32S2_DEVKITC_1U - select HAS_PERIPH_USBDEV if BOARD_VERSION_ESP32S2_DEVKITC_1R - select HAS_PERIPH_USBDEV if BOARD_VERSION_ESP32S2_DEVKITC_1RU - select HAS_TINYUSB_DEVICE if BOARD_VERSION_ESP32S2_DEVKITC_1 - select HAS_TINYUSB_DEVICE if BOARD_VERSION_ESP32S2_DEVKITC_1U - select HAS_TINYUSB_DEVICE if BOARD_VERSION_ESP32S2_DEVKITC_1R - select HAS_TINYUSB_DEVICE if BOARD_VERSION_ESP32S2_DEVKITC_1RU choice bool "ESP32-S2-DevKit board version" diff --git a/boards/esp32s2-lilygo-ttgo-t8/Kconfig b/boards/esp32s2-lilygo-ttgo-t8/Kconfig index 2fdd4e093bfe..f220e69bcb34 100644 --- a/boards/esp32s2-lilygo-ttgo-t8/Kconfig +++ b/boards/esp32s2-lilygo-ttgo-t8/Kconfig @@ -13,24 +13,6 @@ config BOARD_ESP32S2_LILYGO_TTGO_T8 default y select BOARD_COMMON_ESP32S2 select CPU_MODEL_ESP32S2 - select HAS_ARDUINO_PINS - select HAS_ESP_RTC_TIMER_32K if ESP32S2_LILYGO_TTGO_T8_32K_XTAL - select HAS_ESP_SPI_RAM - select HAS_HIGHLEVEL_STDIO if ESP32S2_LILYGO_TTGO_T8_USB - select HAS_PERIPH_ADC - select HAS_PERIPH_DAC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI - select HAS_PERIPH_USBDEV - select HAS_SDCARD_SPI - select HAS_TINYUSB_DEVICE - select HAVE_MTD_SDCARD_DEFAULT - select HAVE_ST7789 - select MODULE_FATFS_VFS if MODULE_VFS_DEFAULT - -config FORCE_USB_STDIO - default y if ESP32S2_LILYGO_TTGO_T8_USB menu "LILYGO TTGO T8 ESP32-S2 Board configurations" depends on BOARD_ESP32S2_LILYGO_TTGO_T8 diff --git a/boards/esp32s2-wemos-mini/Kconfig b/boards/esp32s2-wemos-mini/Kconfig index e26e13471f81..71cd72d2d483 100644 --- a/boards/esp32s2-wemos-mini/Kconfig +++ b/boards/esp32s2-wemos-mini/Kconfig @@ -12,20 +12,5 @@ config BOARD_ESP32S2_WEMOS_MINI default y select BOARD_COMMON_ESP32S2 select CPU_MODEL_ESP32S2_FN4R2 - select HAS_PERIPH_ADC - select HAS_PERIPH_DAC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI - select HAS_PERIPH_USBDEV - select HAS_TINYUSB_DEVICE - select HAS_HIGHLEVEL_STDIO - -config FORCE_USB_STDIO - default y - -choice USB_IMPLEMENTATION - default PACKAGE_TINYUSB -endchoice source "$(RIOTBOARD)/common/esp32s2/Kconfig" diff --git a/boards/esp32s3-box/Kconfig b/boards/esp32s3-box/Kconfig index 26b904512e73..0480bf63e397 100644 --- a/boards/esp32s3-box/Kconfig +++ b/boards/esp32s3-box/Kconfig @@ -13,23 +13,5 @@ config BOARD_ESP32S3_BOX default y select BOARD_COMMON_ESP32S3 select CPU_MODEL_ESP32S3_WROOM_1X_N16R8 - select HAS_ESP_JTAG - select HAS_HIGHLEVEL_STDIO - select HAS_PERIPH_I2C - select HAS_PERIPH_SPI - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAS_TINYUSB_DEVICE - # Only this board has a requirement to use USB_BOARD_RESET with STDIO_USB_SERIAL_JTAG - select MODULE_USB_BOARD_RESET if MODULE_STDIO_USB_SERIAL_JTAG - select REQUIRES_USB_STDIO if MODULE_USBUS || MODULE_TINYUSB_DEVICE - - select HAVE_ILI9341 - -choice STDIO_IMPLEMENTATION - default MODULE_STDIO_CDC_ACM if MODULE_USBUS - default MODULE_STDIO_TINYUSB_CDC_ACM if MODULE_TINYUSB_DEVICE - default MODULE_STDIO_USB_SERIAL_JTAG -endchoice source "$(RIOTBOARD)/common/esp32s3/Kconfig" diff --git a/boards/esp32s3-devkit/Kconfig b/boards/esp32s3-devkit/Kconfig index f13f62c98045..a7e286158c87 100644 --- a/boards/esp32s3-devkit/Kconfig +++ b/boards/esp32s3-devkit/Kconfig @@ -37,14 +37,6 @@ config BOARD_ESP32S3_DEVKIT select CPU_MODEL_ESP32S3_WROOM_1X_N8R8 if BOARD_VERSION_ESP32S3_DEVKITC_1U_N8R8 select CPU_MODEL_ESP32S3_MINI_1X_N8 if BOARD_VERSION_ESP32S3_DEVKITM_1_N8 select CPU_MODEL_ESP32S3_MINI_1X_N8 if BOARD_VERSION_ESP32S3_DEVKITM_1U_N8 - select HAS_ARDUINO_PINS - select HAS_ESP_JTAG - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI - select HAS_PERIPH_USBDEV - select HAS_TINYUSB_DEVICE choice bool "ESP32-S3-DevKit board version" diff --git a/boards/esp32s3-pros3/Kconfig b/boards/esp32s3-pros3/Kconfig index e779ab0e6a08..c5dbbae268b6 100644 --- a/boards/esp32s3-pros3/Kconfig +++ b/boards/esp32s3-pros3/Kconfig @@ -13,24 +13,5 @@ config BOARD_ESP32S3_PROS3 default y select BOARD_COMMON_ESP32S3 select CPU_MODEL_ESP32S3 - select HAS_ARDUINO_PINS - select HAS_ESP_JTAG - select HAS_ESP_SPI_RAM - select HAS_HIGHLEVEL_STDIO - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI - select HAS_PERIPH_USBDEV - select HAS_TINYUSB_DEVICE - # Only this board has a requirement to use USB_BOARD_RESET with STDIO_USB_SERIAL_JTAG - select MODULE_USB_BOARD_RESET if MODULE_STDIO_USB_SERIAL_JTAG - select REQUIRES_USB_STDIO if MODULE_USBUS || MODULE_TINYUSB_DEVICE - -choice STDIO_IMPLEMENTATION - default MODULE_STDIO_CDC_ACM if MODULE_USBUS - default MODULE_STDIO_TINYUSB_CDC_ACM if MODULE_TINYUSB_DEVICE - default MODULE_STDIO_USB_SERIAL_JTAG -endchoice source "$(RIOTBOARD)/common/esp32s3/Kconfig" diff --git a/boards/esp32s3-usb-otg/Kconfig b/boards/esp32s3-usb-otg/Kconfig index 79dee2c1f2a3..a99f2038f81a 100644 --- a/boards/esp32s3-usb-otg/Kconfig +++ b/boards/esp32s3-usb-otg/Kconfig @@ -13,26 +13,5 @@ config BOARD_ESP32S3_USB_OTG default y select BOARD_COMMON_ESP32S3 select CPU_MODEL_ESP32S3_MINI_1X_N8 - select HAS_ESP_JTAG - select HAS_HIGHLEVEL_STDIO - select HAS_PERIPH_ADC - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAS_SDCARD_SPI - select HAS_TINYUSB_DEVICE - select HAVE_MTD_SDCARD_DEFAULT - select HAVE_ST7789 - select MODULE_FATFS_VFS if MODULE_VFS_DEFAULT - # Only this board has a requirement to use USB_BOARD_RESET with STDIO_USB_SERIAL_JTAG - select MODULE_USB_BOARD_RESET if MODULE_STDIO_USB_SERIAL_JTAG - select REQUIRES_USB_STDIO if MODULE_USBUS || MODULE_TINYUSB_DEVICE - -choice STDIO_IMPLEMENTATION - default MODULE_STDIO_CDC_ACM if MODULE_USBUS - default MODULE_STDIO_TINYUSB_CDC_ACM if MODULE_TINYUSB_DEVICE - default MODULE_STDIO_USB_SERIAL_JTAG -endchoice source "$(RIOTBOARD)/common/esp32s3/Kconfig" diff --git a/boards/esp32s3-wt32-sc01-plus/Kconfig b/boards/esp32s3-wt32-sc01-plus/Kconfig index 502e789d254e..cb20b9ff0916 100644 --- a/boards/esp32s3-wt32-sc01-plus/Kconfig +++ b/boards/esp32s3-wt32-sc01-plus/Kconfig @@ -13,33 +13,5 @@ config BOARD_ESP32S3_WT32_SC01_PLUS default y select BOARD_COMMON_ESP32S3 select CPU_MODEL_ESP32S3_WROOM_1X_N16R2 - select HAS_ESP_JTAG - select HAS_HIGHLEVEL_STDIO - select HAS_PERIPH_I2C - select HAS_PERIPH_SPI - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAS_SDCARD_SPI - select HAS_TINYUSB_DEVICE - - select HAVE_FT5X06 - select HAVE_LCD_PARALLEL if MODULE_ST7796 - select HAVE_LCD_PARALLEL_LL_MCU if MODULE_ST7796 - select HAVE_MTD_SDCARD_DEFAULT - select HAVE_ST7796 - - select MODULE_FATFS_VFS if MODULE_VFS_DEFAULT - select MODULE_USB_BOARD_RESET if MODULE_STDIO_USB_SERIAL_JTAG - select REQUIRES_USB_STDIO if MODULE_USBUS || MODULE_TINYUSB_DEVICE - -choice STDIO_IMPLEMENTATION - default MODULE_STDIO_CDC_ACM if MODULE_USBUS - default MODULE_STDIO_TINYUSB_CDC_ACM if MODULE_TINYUSB_DEVICE - default MODULE_STDIO_USB_SERIAL_JTAG -endchoice - -choice ESP32_I2C_IMPLEMENTATION - default MODULE_ESP_I2C_HW -endchoice source "$(RIOTBOARD)/common/esp32s3/Kconfig" diff --git a/boards/f4vi1/Kconfig b/boards/f4vi1/Kconfig index 24d4655762d5..cab87b1782f8 100644 --- a/boards/f4vi1/Kconfig +++ b/boards/f4vi1/Kconfig @@ -13,10 +13,6 @@ config BOARD_F4VI1 default y select CPU_MODEL_STM32F415RG - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - # Clock configuration select BOARD_HAS_HSE select BOARD_HAS_LSE @@ -28,7 +24,7 @@ config CLOCK_PLL_M default 16 config CLOCK_PLL_N - default 336 if MODULE_PERIPH_USBDEV && TEST_KCONFIG + default 336 if USEMODULE_PERIPH_USBDEV default 360 source "$(RIOTBOARD)/common/stm32/Kconfig" diff --git a/boards/feather-m0-lora/Kconfig b/boards/feather-m0-lora/Kconfig index 494569c44ffe..a4e992f8b804 100644 --- a/boards/feather-m0-lora/Kconfig +++ b/boards/feather-m0-lora/Kconfig @@ -11,6 +11,5 @@ config BOARD_FEATHER_M0_LORA bool default y select BOARD_FEATHER_M0_BASE - select HAVE_SX1276 source "$(RIOTBOARD)/feather-m0/Kconfig.feather-m0-base" diff --git a/boards/feather-m0-wifi/Kconfig b/boards/feather-m0-wifi/Kconfig index b8fdcbfeccb2..5892dc72bcd2 100644 --- a/boards/feather-m0-wifi/Kconfig +++ b/boards/feather-m0-wifi/Kconfig @@ -11,6 +11,5 @@ config BOARD_FEATHER_M0_WIFI bool default y select BOARD_FEATHER_M0_BASE - select HAVE_ATWINC15X0 source "$(RIOTBOARD)/feather-m0/Kconfig.feather-m0-base" diff --git a/boards/feather-m0/Kconfig.feather-m0-base b/boards/feather-m0/Kconfig.feather-m0-base index b539599977cc..5c2a8e44b97e 100644 --- a/boards/feather-m0/Kconfig.feather-m0-base +++ b/boards/feather-m0/Kconfig.feather-m0-base @@ -8,19 +8,3 @@ config BOARD_FEATHER_M0_BASE bool default y select CPU_MODEL_SAMD21G18A - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAS_ARDUINO_ANALOG - select HAS_ARDUINO_PINS - select HAS_HIGHLEVEL_STDIO - - select HAVE_SAUL_GPIO - -source "$(RIOTBOARD)/common/samdx1-arduino-bootloader/Kconfig" diff --git a/boards/feather-nrf52840-sense/Kconfig b/boards/feather-nrf52840-sense/Kconfig index 7595562f597b..84e8085a47d2 100644 --- a/boards/feather-nrf52840-sense/Kconfig +++ b/boards/feather-nrf52840-sense/Kconfig @@ -12,20 +12,5 @@ config BOARD_FEATHER_NRF52840_SENSE default y select BOARD_COMMON_NRF52 select CPU_MODEL_NRF52840XXAA - select HAS_PERIPH_I2C - select HAS_PERIPH_SPI - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAS_HIGHLEVEL_STDIO - - select HAVE_APDS9960 - select HAVE_BMP280_I2C - select HAVE_LIS3MDL - select HAVE_SAUL_GPIO - select HAVE_SHT3X - select MODULE_USB_BOARD_RESET if KCONFIG_USB && TEST_KCONFIG - -config FORCE_USB_STDIO - default y source "$(RIOTBOARD)/common/nrf52/Kconfig" diff --git a/boards/feather-nrf52840/Kconfig b/boards/feather-nrf52840/Kconfig index ed1fe0567836..4e7d005b3428 100644 --- a/boards/feather-nrf52840/Kconfig +++ b/boards/feather-nrf52840/Kconfig @@ -12,16 +12,5 @@ config BOARD_FEATHER_NRF52840 default y select BOARD_COMMON_NRF52 select CPU_MODEL_NRF52840XXAA - select HAS_PERIPH_I2C - select HAS_PERIPH_SPI - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAS_HIGHLEVEL_STDIO - - select HAVE_SAUL_GPIO - select MODULE_USB_BOARD_RESET if KCONFIG_USB && TEST_KCONFIG - -config FORCE_USB_STDIO - default y source "$(RIOTBOARD)/common/nrf52/Kconfig" diff --git a/boards/firefly/Kconfig b/boards/firefly/Kconfig index e59fd24e501c..1a6324ec85c9 100644 --- a/boards/firefly/Kconfig +++ b/boards/firefly/Kconfig @@ -11,7 +11,5 @@ config BOARD_FIREFLY bool default y select BOARD_COMMON_REMOTE - select HAVE_SAUL_ADC - select HAVE_SAUL_GPIO source "$(RIOTBOARD)/common/remote/Kconfig" diff --git a/boards/frdm-k22f/Kconfig b/boards/frdm-k22f/Kconfig index 25714161b83b..4eb927821841 100644 --- a/boards/frdm-k22f/Kconfig +++ b/boards/frdm-k22f/Kconfig @@ -11,14 +11,3 @@ config BOARD_FRDM_K22F bool default y select CPU_MODEL_MK22FN512VLH12 - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select HAVE_SAUL_ADC - select HAVE_SAUL_GPIO diff --git a/boards/frdm-k64f/Kconfig b/boards/frdm-k64f/Kconfig index f3352e365d83..105a536717fa 100644 --- a/boards/frdm-k64f/Kconfig +++ b/boards/frdm-k64f/Kconfig @@ -11,14 +11,3 @@ config BOARD_FRDM_K64F bool default y select CPU_MODEL_MK64FN1M0VLL12 - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_RIOTBOOT - - select HAVE_SAUL_ADC diff --git a/boards/frdm-kl43z/Kconfig b/boards/frdm-kl43z/Kconfig index 2a327b1094ee..cb6f063db226 100644 --- a/boards/frdm-kl43z/Kconfig +++ b/boards/frdm-kl43z/Kconfig @@ -11,14 +11,3 @@ config BOARD_FRDM_KL43Z bool default y select CPU_MODEL_MKL43Z256VLH4 - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select HAVE_MAG3110 - select HAVE_MMA8X5X - select HAVE_SAUL_ADC - select HAVE_SAUL_GPIO diff --git a/boards/frdm-kw41z/Kconfig b/boards/frdm-kw41z/Kconfig index d07b4adb6c9c..67c45ace806b 100644 --- a/boards/frdm-kw41z/Kconfig +++ b/boards/frdm-kw41z/Kconfig @@ -10,11 +10,6 @@ config BOARD config BOARD_FRDM_KW41Z bool default y - select HAS_PERIPH_I2C - select HAS_PERIPH_SPI select BOARD_COMMON_KW41Z - select MODULE_BOARDS_COMMON_KW41Z if TEST_KCONFIG - select HAVE_FXOS8700 - source "$(RIOTBOARD)/common/kw41z/Kconfig" diff --git a/boards/generic-cc2538-cc2592-dk/Kconfig b/boards/generic-cc2538-cc2592-dk/Kconfig index cbbdfa1529f9..f0d48e5d8c60 100644 --- a/boards/generic-cc2538-cc2592-dk/Kconfig +++ b/boards/generic-cc2538-cc2592-dk/Kconfig @@ -11,13 +11,3 @@ config BOARD_GENERIC_CC2538_CC2592_DK bool default y select CPU_MODEL_CC2538SF53 - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_EMULATOR_RENODE - select HAS_RIOTBOOT - - select HAVE_CC2538_RF diff --git a/boards/hamilton/Kconfig b/boards/hamilton/Kconfig index fb4a7fdbf110..52016ddf25aa 100644 --- a/boards/hamilton/Kconfig +++ b/boards/hamilton/Kconfig @@ -11,20 +11,3 @@ config BOARD_HAMILTON bool default y select CPU_MODEL_SAMR21E18A - select HAS_PERIPH_ADC - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - - select HAVE_AT86RF233 - select HAVE_FXOS8700 - select HAVE_HDC1000 - select HAVE_PIR - select HAVE_PULSE_COUNTER - select HAVE_SAUL_GPIO - select HAVE_TMP006 diff --git a/boards/hamilton/hamilton.config b/boards/hamilton/hamilton.config deleted file mode 100644 index 9136c90eb64a..000000000000 --- a/boards/hamilton/hamilton.config +++ /dev/null @@ -1 +0,0 @@ -CONFIG_MODULE_STDIO_RTT=y diff --git a/boards/hifive1/Kconfig b/boards/hifive1/Kconfig index 1f2f76d70a0e..7fda98b5fb15 100644 --- a/boards/hifive1/Kconfig +++ b/boards/hifive1/Kconfig @@ -12,8 +12,3 @@ config BOARD_HIFIVE1 bool default y select CPU_MODEL_FE310_G000 - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART diff --git a/boards/hifive1b/Kconfig b/boards/hifive1b/Kconfig index 4f45f05176c6..8e92f720e447 100644 --- a/boards/hifive1b/Kconfig +++ b/boards/hifive1b/Kconfig @@ -12,10 +12,3 @@ config BOARD_HIFIVE1B bool default y select CPU_MODEL_FE310_G002 - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_ARDUINO_PINS diff --git a/boards/hip-badge/Kconfig b/boards/hip-badge/Kconfig index 4bc85f1674c6..026d05e0d4cb 100644 --- a/boards/hip-badge/Kconfig +++ b/boards/hip-badge/Kconfig @@ -12,10 +12,5 @@ config BOARD_HIP_BADGE default y select BOARD_COMMON_ESP32C3 select CPU_MODEL_ESP32C3 - select HAS_ESP_JTAG - select HAS_PERIPH_I2C - - select HAVE_SAUL_GPIO - select HAVE_SGP30 source "$(RIOTBOARD)/common/esp32c3/Kconfig" diff --git a/boards/hip-badge/hip-badge.config b/boards/hip-badge/hip-badge.config deleted file mode 100644 index 0ebba57f03ef..000000000000 --- a/boards/hip-badge/hip-badge.config +++ /dev/null @@ -1 +0,0 @@ -CONFIG_MODULE_STDIO_USB_SERIAL_JTAG=y diff --git a/boards/i-nucleo-lrwan1/Kconfig b/boards/i-nucleo-lrwan1/Kconfig index 553b135196b0..01b6a4fa007a 100644 --- a/boards/i-nucleo-lrwan1/Kconfig +++ b/boards/i-nucleo-lrwan1/Kconfig @@ -13,18 +13,6 @@ config BOARD_I_NUCLEO_LRWAN1 default y select CPU_MODEL_STM32L052T8 - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_I2C - select HAS_PERIPH_LPUART - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_SPI_GPIO_MODE - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select MODULE_PERIPH_LPUART if MODULE_STDIO_UART && HAS_PERIPH_LPUART - # Clock configuration select BOARD_HAS_LSE diff --git a/boards/ikea-tradfri/Kconfig b/boards/ikea-tradfri/Kconfig index df28a6a9c92e..96e6987d2adf 100644 --- a/boards/ikea-tradfri/Kconfig +++ b/boards/ikea-tradfri/Kconfig @@ -11,14 +11,3 @@ config BOARD_IKEA_TRADFRI bool default y select CPU_MODEL_EFR32MG1P132F256GM32 - select HAS_PERIPH_ADC - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_EFM32_CORETEMP - select HAS_RIOTBOOT - - select HAVE_SAUL_GPIO - select HAVE_MTD_SPI_NOR diff --git a/boards/im880b/Kconfig b/boards/im880b/Kconfig index b653be069b0e..12582427cba4 100644 --- a/boards/im880b/Kconfig +++ b/boards/im880b/Kconfig @@ -13,14 +13,6 @@ config BOARD_IM880B default y select CPU_MODEL_STM32L151CB - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - # Clock configuration select BOARD_HAS_HSE select BOARD_HAS_LSE diff --git a/boards/iotlab-a8-m3/Kconfig b/boards/iotlab-a8-m3/Kconfig index 71f7c790f310..5dd00a285934 100644 --- a/boards/iotlab-a8-m3/Kconfig +++ b/boards/iotlab-a8-m3/Kconfig @@ -12,6 +12,5 @@ config BOARD_IOTLAB_A8_M3 bool default y select BOARD_COMMON_IOTLAB - select MODULE_BOARDS_COMMON_IOTLAB if TEST_KCONFIG source "$(RIOTBOARD)/common/iotlab/Kconfig" diff --git a/boards/iotlab-m3/Kconfig b/boards/iotlab-m3/Kconfig index a3851d6b4fc4..8b2bae8bbb06 100644 --- a/boards/iotlab-m3/Kconfig +++ b/boards/iotlab-m3/Kconfig @@ -13,10 +13,4 @@ config BOARD_IOTLAB_M3 default y select BOARD_COMMON_IOTLAB - select HAS_PERIPH_DMA - select HAVE_MTD_SPI_NOR - select HAVE_LPS331AP - select HAVE_ISL29020 - select MODULE_BOARDS_COMMON_IOTLAB if TEST_KCONFIG - source "$(RIOTBOARD)/common/iotlab/Kconfig" diff --git a/boards/limifrog-v1/Kconfig b/boards/limifrog-v1/Kconfig index 3ae9f51a91e5..5a4eff5c302d 100644 --- a/boards/limifrog-v1/Kconfig +++ b/boards/limifrog-v1/Kconfig @@ -13,12 +13,4 @@ config BOARD_LIMIFROG_V1 default y select CPU_MODEL_STM32L151RC - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_I2C - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select HAVE_LIS3MDL - source "$(RIOTBOARD)/common/stm32/Kconfig" diff --git a/boards/lobaro-lorabox/Kconfig b/boards/lobaro-lorabox/Kconfig index d5a298074e8b..381b306500ea 100644 --- a/boards/lobaro-lorabox/Kconfig +++ b/boards/lobaro-lorabox/Kconfig @@ -13,17 +13,7 @@ config BOARD_LOBARO_LORABOX default y select CPU_MODEL_STM32L151CB_A - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI - select HAS_PERIPH_SPI_GPIO_MODE - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - # Clock configuration select BOARD_HAS_LSE - select HAVE_SAUL_GPIO - source "$(RIOTBOARD)/common/stm32/Kconfig" diff --git a/boards/lora-e5-dev/Kconfig b/boards/lora-e5-dev/Kconfig index ee0228f6e596..cbc66bbf2c5e 100644 --- a/boards/lora-e5-dev/Kconfig +++ b/boards/lora-e5-dev/Kconfig @@ -13,26 +13,10 @@ config BOARD_LORA_E5_DEV default y select CPU_MODEL_STM32WLE5JC - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_LPUART - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - # Put other features for this board (in alphabetical order) - select HAS_ARDUINO_PINS - select HAS_RIOTBOOT - # Clock configuration select BOARD_HAS_HSE select BOARD_HAS_LSE - select HAVE_SAUL_GPIO - select HAVE_LM75A - config CLOCK_HSE default 32000000 diff --git a/boards/lsn50/Kconfig b/boards/lsn50/Kconfig index e892eaecd44d..d5bc045ca420 100644 --- a/boards/lsn50/Kconfig +++ b/boards/lsn50/Kconfig @@ -13,22 +13,6 @@ config BOARD_LSN50 default y select CPU_MODEL_STM32L072CZ - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_DMA - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_SPI_GPIO_MODE - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - # Put other features for this board (in alphabetical order) - # For riotboot you need an openocd that supports dualbank flashing. - # The 0.10.0 openocd version in Ubuntu Bionic doesn't work. The change was - # introduced after Jun 8, 2017 - v0.10.0-1-20170607-2132-dev. - select HAS_RIOTBOOT - # Clock configuration select BOARD_HAS_LSE diff --git a/boards/maple-mini/Kconfig b/boards/maple-mini/Kconfig index 0edea454e20e..9071faa73a83 100644 --- a/boards/maple-mini/Kconfig +++ b/boards/maple-mini/Kconfig @@ -13,10 +13,4 @@ config BOARD_MAPLE_MINI default y select CPU_MODEL_STM32F103CB - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_I2C - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - source "$(RIOTBOARD)/common/stm32/Kconfig" diff --git a/boards/mbed_lpc1768/Kconfig b/boards/mbed_lpc1768/Kconfig index a17135ef2e84..7d6f1868539e 100644 --- a/boards/mbed_lpc1768/Kconfig +++ b/boards/mbed_lpc1768/Kconfig @@ -11,9 +11,3 @@ config BOARD_MBED_LPC1768 bool default y select CPU_MODEL_LPC1768 - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select HAVE_SAUL_GPIO diff --git a/boards/mcb2388/Kconfig b/boards/mcb2388/Kconfig index 02979aef4390..0c221465456b 100644 --- a/boards/mcb2388/Kconfig +++ b/boards/mcb2388/Kconfig @@ -11,13 +11,3 @@ config BOARD_MCB2388 bool default y select CPU_MODEL_LPC2388 - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select HAVE_SAUL_ADC - select HAVE_SAUL_GPIO - select HAVE_MTD_SPI_MCI diff --git a/boards/mega-xplained/Kconfig b/boards/mega-xplained/Kconfig index 99724c1e4cbf..5ad0b38b8a70 100644 --- a/boards/mega-xplained/Kconfig +++ b/boards/mega-xplained/Kconfig @@ -11,16 +11,3 @@ config BOARD_MEGA_XPLAINED bool default y select CPU_MODEL_ATMEGA1284P - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select MODULE_BOARDS_COMMON_ATMEGA if TEST_KCONFIG - select HAVE_SAUL_ADC - select HAVE_SAUL_GPIO - -source "$(RIOTBOARD)/common/atmega/Kconfig" diff --git a/boards/microbit-v2/Kconfig b/boards/microbit-v2/Kconfig index 44eacaf949f5..c1d4bd65f7d9 100644 --- a/boards/microbit-v2/Kconfig +++ b/boards/microbit-v2/Kconfig @@ -12,14 +12,5 @@ config BOARD_MICROBIT_V2 default y select BOARD_COMMON_NRF52 select CPU_MODEL_NRF52833XXAA - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI - select HAS_PERIPH_UART - select HAS_VDD_LC_FILTER_REG1 - select HAVE_SAUL_GPIO - select HAVE_LSM303AGR - -source "$(RIOTBOARD)/common/microbit/Kconfig" source "$(RIOTBOARD)/common/nrf52/Kconfig" diff --git a/boards/microbit/Kconfig b/boards/microbit/Kconfig index b568606f384e..4ca1243a1028 100644 --- a/boards/microbit/Kconfig +++ b/boards/microbit/Kconfig @@ -12,11 +12,5 @@ config BOARD_MICROBIT default y select BOARD_COMMON_NRF51 select CPU_MODEL_NRF51X22XXAB - select HAS_PERIPH_I2C - select HAS_PERIPH_UART - select HAVE_SAUL_GPIO - select HAVE_MMA8X5X - -source "$(RIOTBOARD)/common/microbit/Kconfig" source "$(RIOTBOARD)/common/nrf51/Kconfig" diff --git a/boards/microduino-corerf/Kconfig b/boards/microduino-corerf/Kconfig index 9d880d1aad5d..507fd513d777 100644 --- a/boards/microduino-corerf/Kconfig +++ b/boards/microduino-corerf/Kconfig @@ -12,14 +12,3 @@ config BOARD_MICRODUINO_CORERF bool default y select CPU_MODEL_ATMEGA128RFA1 - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select MODULE_BOARDS_COMMON_ATMEGA if TEST_KCONFIG - -source "$(RIOTBOARD)/common/atmega/Kconfig" diff --git a/boards/msb-430/Kconfig b/boards/msb-430/Kconfig index b997d66aae65..ed421d032c64 100644 --- a/boards/msb-430/Kconfig +++ b/boards/msb-430/Kconfig @@ -11,17 +11,6 @@ config BOARD config BOARD_MSB_430 bool default y - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART select BOARD_COMMON_MSB_430 - select HAVE_SHT11 - -config ERROR_MODULES_CONFLICT - default "The msb-430 uses the same USART for UART and SPI" if MODULE_PERIPH_SPI && MODULE_PERIPH_UART - depends on BOARD_MSB_430 - source "$(RIOTBOARD)/common/msb-430/Kconfig" diff --git a/boards/msb-430h/Kconfig b/boards/msb-430h/Kconfig index e7c8fc8e1f41..3f6c9cf435f5 100644 --- a/boards/msb-430h/Kconfig +++ b/boards/msb-430h/Kconfig @@ -10,12 +10,6 @@ config BOARD config BOARD_MSB_430H bool default y - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART select BOARD_COMMON_MSB_430 - select HAVE_SHT11 source "$(RIOTBOARD)/common/msb-430/Kconfig" diff --git a/boards/msba2/Kconfig b/boards/msba2/Kconfig index e255665a6c2a..df050c8cde26 100644 --- a/boards/msba2/Kconfig +++ b/boards/msba2/Kconfig @@ -11,14 +11,3 @@ config BOARD_MSBA2 bool default y select CPU_MODEL_LPC2387 - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select HAVE_LTC4150 - select HAVE_SHT11 - select HAVE_MTD_SPI_MCI diff --git a/boards/msbiot/Kconfig b/boards/msbiot/Kconfig index c25a03b59296..e05076a6da4f 100644 --- a/boards/msbiot/Kconfig +++ b/boards/msbiot/Kconfig @@ -13,23 +13,10 @@ config BOARD_MSBIOT default y select CPU_MODEL_STM32F415RG - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_DMA - select HAS_PERIPH_DAC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - # Clock configuration select BOARD_HAS_HSE select BOARD_HAS_LSE - select HAVE_MPU9150 - select HAVE_SAUL_GPIO - config CLOCK_HSE default 16000000 @@ -37,7 +24,7 @@ config CLOCK_PLL_M default 16 config CLOCK_PLL_N - default 336 if MODULE_PERIPH_USBDEV && TEST_KCONFIG + default 336 if USEMODULE_PERIPH_USBDEV default 360 diff --git a/boards/mulle/Kconfig b/boards/mulle/Kconfig index 88c886b50968..e752a8b7eb44 100644 --- a/boards/mulle/Kconfig +++ b/boards/mulle/Kconfig @@ -11,17 +11,3 @@ config BOARD_MULLE bool default y select CPU_MODEL_MK60DN512VLL10 - select HAS_PERIPH_ADC - select HAS_PERIPH_DAC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select HAVE_AT86RF212B - select HAVE_LIS3DH - select HAVE_SAUL_ADC - select HAVE_SAUL_GPIO diff --git a/boards/mulle/mulle.config b/boards/mulle/mulle.config deleted file mode 100644 index 5cc339922285..000000000000 --- a/boards/mulle/mulle.config +++ /dev/null @@ -1,10 +0,0 @@ -# The Mulle uses NVRAM to store persistent variables, such as boot count. -CONFIG_MODULE_NVRAM=y -CONFIG_MODULE_NVRAM_SPI=y -CONFIG_MODULE_VFS=y -CONFIG_MODULE_DEVFS=y -CONFIG_MODULE_MTD=y -CONFIG_MODULE_MTD_SPI_NOR=y - -# Mulle always uses the RTT for the oscillator -CONFIG_MODULE_PERIPH_RTT=y diff --git a/boards/native/Kconfig b/boards/native/Kconfig index 3e5f1d7580a4..7e64709009d0 100644 --- a/boards/native/Kconfig +++ b/boards/native/Kconfig @@ -12,19 +12,3 @@ config BOARD_NATIVE bool default y select CPU_MODEL_NATIVE - - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_RTC - select HAS_PERIPH_RTC_MS - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_GPIO - select HAS_PERIPH_PWM - select HAS_PERIPH_QDEC - - # Various other features (if any) - select HAS_ETHERNET - select HAS_MOTOR_DRIVER - select HAVE_SDL - -rsource "drivers/Kconfig" diff --git a/boards/native/drivers/Kconfig b/boards/native/drivers/Kconfig deleted file mode 100644 index 1fe03b86ef28..000000000000 --- a/boards/native/drivers/Kconfig +++ /dev/null @@ -1,14 +0,0 @@ -# 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_NATIVE_DRIVERS - bool - depends on BOARD_NATIVE - depends on TEST_KCONFIG - default y - help - Drivers for Native board. diff --git a/boards/native64/Kconfig b/boards/native64/Kconfig index a336e5903d37..eff7b55b59b1 100644 --- a/boards/native64/Kconfig +++ b/boards/native64/Kconfig @@ -12,19 +12,3 @@ config BOARD_NATIVE64 bool default y select CPU_MODEL_NATIVE - - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_RTC - select HAS_PERIPH_RTC_MS - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_GPIO - select HAS_PERIPH_PWM - select HAS_PERIPH_QDEC - - # Various other features (if any) - select HAS_ETHERNET - select HAS_MOTOR_DRIVER - select HAVE_SDL - -rsource "../native/drivers/Kconfig" diff --git a/boards/nrf51dk/Kconfig b/boards/nrf51dk/Kconfig index 3f157b8e7006..d61d4506a32a 100644 --- a/boards/nrf51dk/Kconfig +++ b/boards/nrf51dk/Kconfig @@ -12,21 +12,5 @@ config BOARD_NRF51DK default y select BOARD_COMMON_NRF51 select CPU_MODEL_NRF51X22XXAC - select HAS_ARDUINO_ANALOG - select HAS_ARDUINO_I2C - select HAS_ARDUINO_PINS - select HAS_ARDUINO_SHIELD_ISP - select HAS_ARDUINO_SHIELD_UNO - select HAS_ARDUINO_SPI - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_SPI - select HAS_PERIPH_UART - select HAS_PERIPH_UART_HW_FC - select HAS_VDD_LC_FILTER_REG1 - - select HAVE_SAUL_GPIO - - select MODULE_PERIPH_UART_HW_FC if HAS_PERIPH_UART_HW_FC && MODULE_PERIPH_UART source "$(RIOTBOARD)/common/nrf51/Kconfig" diff --git a/boards/nrf51dongle/Kconfig b/boards/nrf51dongle/Kconfig index 4c4b61861b55..9ccbeccf7109 100644 --- a/boards/nrf51dongle/Kconfig +++ b/boards/nrf51dongle/Kconfig @@ -12,9 +12,5 @@ config BOARD_NRF51DONGLE default y select BOARD_COMMON_NRF51 select CPU_MODEL_NRF51X22XXAB - select HAS_PERIPH_UART - select HAS_PERIPH_UART_HW_FC - - select MODULE_PERIPH_UART_HW_FC if HAS_PERIPH_UART_HW_FC && MODULE_PERIPH_UART source "$(RIOTBOARD)/common/nrf51/Kconfig" diff --git a/boards/nrf52832-mdk/Kconfig b/boards/nrf52832-mdk/Kconfig index 8fd7f4c228bb..2bc427d5c752 100644 --- a/boards/nrf52832-mdk/Kconfig +++ b/boards/nrf52832-mdk/Kconfig @@ -12,10 +12,5 @@ config BOARD_NRF52832_MDK default y select BOARD_COMMON_NRF52 select CPU_MODEL_NRF52832XXAA - select HAS_PERIPH_I2C - select HAS_PERIPH_UART - select HAS_VDD_LC_FILTER_REG1 - - select HAVE_SAUL_GPIO source "$(RIOTBOARD)/common/nrf52/Kconfig" diff --git a/boards/nrf52840-mdk-dongle/Kconfig b/boards/nrf52840-mdk-dongle/Kconfig index 711095b76231..d3e2925b55c7 100644 --- a/boards/nrf52840-mdk-dongle/Kconfig +++ b/boards/nrf52840-mdk-dongle/Kconfig @@ -12,16 +12,5 @@ config BOARD_NRF52840_MDK_DONGLE default y select BOARD_COMMON_NRF52 select CPU_MODEL_NRF52840XXAA - select HAS_PERIPH_PWM - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAS_HIGHLEVEL_STDIO - - select HAVE_SAUL_GPIO - select HAVE_SAUL_PWM - select MODULE_USB_BOARD_RESET if KCONFIG_USB && TEST_KCONFIG - -config FORCE_USB_STDIO - default y source "$(RIOTBOARD)/common/nrf52/Kconfig" diff --git a/boards/nrf52840-mdk/Kconfig b/boards/nrf52840-mdk/Kconfig index d22bc62ed583..bb45ea9cad5b 100644 --- a/boards/nrf52840-mdk/Kconfig +++ b/boards/nrf52840-mdk/Kconfig @@ -12,13 +12,5 @@ config BOARD_NRF52840_MDK default y select CPU_MODEL_NRF52840XXAA select BOARD_COMMON_NRF52 - select HAS_PERIPH_I2C - select HAS_PERIPH_SPI - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAS_TINYUSB_DEVICE - select HAS_VDD_LC_FILTER_REG1 - - select HAVE_SAUL_GPIO source "$(RIOTBOARD)/common/nrf52/Kconfig" diff --git a/boards/nrf52840dk/Kconfig b/boards/nrf52840dk/Kconfig index eb7974cf3aaf..5cdea4fe52c3 100644 --- a/boards/nrf52840dk/Kconfig +++ b/boards/nrf52840dk/Kconfig @@ -12,20 +12,5 @@ config BOARD_NRF52840DK default y select BOARDS_COMMON_NRF52XXXDK select CPU_MODEL_NRF52840XXAA - select HAS_ARDUINO_ANALOG - select HAS_ARDUINO_I2C - select HAS_ARDUINO_PINS - select HAS_ARDUINO_SHIELD_ISP - select HAS_ARDUINO_SHIELD_MEGA - select HAS_ARDUINO_SHIELD_UNO - select HAS_ARDUINO_SPI - select HAS_ARDUINO_UART - select HAS_PERIPH_PWM - select HAS_PERIPH_USBDEV - select HAS_TINYUSB_DEVICE - select HAS_VDD_LC_FILTER_REG0 - select HAVE_MTD_SPI_NOR - - select MODULE_BOARDS_COMMON_NRF52XXXDK if TEST_KCONFIG source "$(RIOTBOARD)/common/nrf52xxxdk/Kconfig" diff --git a/boards/nrf52840dongle/Kconfig b/boards/nrf52840dongle/Kconfig index 5539172c9db7..e3a761d7d71d 100644 --- a/boards/nrf52840dongle/Kconfig +++ b/boards/nrf52840dongle/Kconfig @@ -12,22 +12,5 @@ config BOARD_NRF52840DONGLE default y select BOARD_COMMON_NRF52 select CPU_MODEL_NRF52840XXAA - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_UART - select HAS_PERIPH_SPI - select HAS_PERIPH_USBDEV - select HAS_HIGHLEVEL_STDIO - select HAS_VDD_LC_FILTER_REG0 - select HAS_VDD_LC_FILTER_REG1 - - select HAVE_SAUL_GPIO - select HAVE_SAUL_PWM - select HAVE_SAUL_NRF_VDDH - - select MODULE_USB_BOARD_RESET if KCONFIG_USB && TEST_KCONFIG - -config FORCE_USB_STDIO - default y source "$(RIOTBOARD)/common/nrf52/Kconfig" diff --git a/boards/nrf52dk/Kconfig b/boards/nrf52dk/Kconfig index 5f01bd1a031e..301b854987f4 100644 --- a/boards/nrf52dk/Kconfig +++ b/boards/nrf52dk/Kconfig @@ -13,6 +13,4 @@ config BOARD_NRF52DK select BOARDS_COMMON_NRF52XXXDK select CPU_MODEL_NRF52832XXAA - select MODULE_BOARDS_COMMON_NRF52XXXDK if TEST_KCONFIG - source "$(RIOTBOARD)/common/nrf52xxxdk/Kconfig" diff --git a/boards/nrf5340dk-app/Kconfig b/boards/nrf5340dk-app/Kconfig index 8c5adbc127e6..01618e579897 100644 --- a/boards/nrf5340dk-app/Kconfig +++ b/boards/nrf5340dk-app/Kconfig @@ -11,15 +11,5 @@ config BOARD_NRF5340DK_APP bool default y select CPU_MODEL_NRF5340_APP - select HAS_PERIPH_I2C - select HAS_PERIPH_SPI - select HAS_PERIPH_SPI_GPIO_MODE - select HAS_PERIPH_PWM - select HAS_PERIPH_RTT - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_UART_HW_FC - select HAS_PERIPH_USBDEV - select HAVE_MTD_SPI_NOR # Put other features for this board (in alphabetical order) diff --git a/boards/nrf6310/Kconfig b/boards/nrf6310/Kconfig index 6bdb4bff485e..53d1696153ba 100644 --- a/boards/nrf6310/Kconfig +++ b/boards/nrf6310/Kconfig @@ -12,7 +12,5 @@ config BOARD_NRF6310 default y select BOARD_COMMON_NRF51 select CPU_MODEL_NRF51X22XXAA - select HAS_PERIPH_SPI - select HAS_PERIPH_UART source "$(RIOTBOARD)/common/nrf51/Kconfig" diff --git a/boards/nrf9160dk/Kconfig b/boards/nrf9160dk/Kconfig index 59be987652bc..0deb951ae975 100644 --- a/boards/nrf9160dk/Kconfig +++ b/boards/nrf9160dk/Kconfig @@ -11,12 +11,3 @@ config BOARD_NRF9160DK bool default y select CPU_MODEL_NRF9160 - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - # Put other features for this board (in alphabetical order) - select HAS_RIOTBOOT diff --git a/boards/nucleo-c031c6/Kconfig b/boards/nucleo-c031c6/Kconfig index de3c01f44323..cc14fed573a1 100644 --- a/boards/nucleo-c031c6/Kconfig +++ b/boards/nucleo-c031c6/Kconfig @@ -14,15 +14,4 @@ config BOARD_NUCLEO_C031C6 select BOARD_COMMON_NUCLEO64 select CPU_MODEL_STM32C031C6 - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - # Put other features for this board (in alphabetical order) - select HAS_RIOTBOOT - source "$(RIOTBOARD)/common/nucleo64/Kconfig" diff --git a/boards/nucleo-f030r8/Kconfig b/boards/nucleo-f030r8/Kconfig index 5f3e84284165..8fcdc6667714 100644 --- a/boards/nucleo-f030r8/Kconfig +++ b/boards/nucleo-f030r8/Kconfig @@ -14,13 +14,4 @@ config BOARD_NUCLEO_F030R8 select BOARD_COMMON_NUCLEO64 select CPU_MODEL_STM32F030R8 - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - source "$(RIOTBOARD)/common/nucleo64/Kconfig" diff --git a/boards/nucleo-f031k6/Kconfig b/boards/nucleo-f031k6/Kconfig index f523ddf3ba28..b0c36c269b76 100644 --- a/boards/nucleo-f031k6/Kconfig +++ b/boards/nucleo-f031k6/Kconfig @@ -14,12 +14,4 @@ config BOARD_NUCLEO_F031K6 select BOARD_COMMON_NUCLEO32 select CPU_MODEL_STM32F031K6 - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - source "$(RIOTBOARD)/common/nucleo32/Kconfig" diff --git a/boards/nucleo-f042k6/Kconfig b/boards/nucleo-f042k6/Kconfig index 6e76fcf60c2e..74cfbb8cbab4 100644 --- a/boards/nucleo-f042k6/Kconfig +++ b/boards/nucleo-f042k6/Kconfig @@ -14,12 +14,4 @@ config BOARD_NUCLEO_F042K6 select BOARD_COMMON_NUCLEO32 select CPU_MODEL_STM32F042K6 - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - source "$(RIOTBOARD)/common/nucleo32/Kconfig" diff --git a/boards/nucleo-f070rb/Kconfig b/boards/nucleo-f070rb/Kconfig index d1270af5a83e..00fb38415137 100644 --- a/boards/nucleo-f070rb/Kconfig +++ b/boards/nucleo-f070rb/Kconfig @@ -14,14 +14,4 @@ config BOARD_NUCLEO_F070RB select BOARD_COMMON_NUCLEO64 select CPU_MODEL_STM32F070RB - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_DMA - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - source "$(RIOTBOARD)/common/nucleo64/Kconfig" diff --git a/boards/nucleo-f072rb/Kconfig b/boards/nucleo-f072rb/Kconfig index 33e28d926185..cd9294bd4601 100644 --- a/boards/nucleo-f072rb/Kconfig +++ b/boards/nucleo-f072rb/Kconfig @@ -14,13 +14,4 @@ config BOARD_NUCLEO_F072RB select BOARD_COMMON_NUCLEO64 select CPU_MODEL_STM32F072RB - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_SPI - source "$(RIOTBOARD)/common/nucleo64/Kconfig" diff --git a/boards/nucleo-f091rc/Kconfig b/boards/nucleo-f091rc/Kconfig index b85c71dcfd89..bb182ebf939d 100644 --- a/boards/nucleo-f091rc/Kconfig +++ b/boards/nucleo-f091rc/Kconfig @@ -13,13 +13,5 @@ config BOARD_NUCLEO_F091RC default y select BOARD_COMMON_NUCLEO64 select CPU_MODEL_STM32F091RC - select HAS_PERIPH_ADC - select HAS_PERIPH_DMA - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_SPI source "$(RIOTBOARD)/common/nucleo64/Kconfig" diff --git a/boards/nucleo-f103rb/Kconfig b/boards/nucleo-f103rb/Kconfig index f783e74f7b7f..df838f045d36 100644 --- a/boards/nucleo-f103rb/Kconfig +++ b/boards/nucleo-f103rb/Kconfig @@ -14,12 +14,4 @@ config BOARD_NUCLEO_F103RB select BOARD_COMMON_NUCLEO64 select CPU_MODEL_STM32F103RB - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_SPI - source "$(RIOTBOARD)/common/nucleo64/Kconfig" diff --git a/boards/nucleo-f207zg/Kconfig b/boards/nucleo-f207zg/Kconfig index a30f0b68d9e4..c2f8992c002b 100644 --- a/boards/nucleo-f207zg/Kconfig +++ b/boards/nucleo-f207zg/Kconfig @@ -14,22 +14,4 @@ config BOARD_NUCLEO_F207ZG select BOARD_COMMON_NUCLEO144 select CPU_MODEL_STM32F207ZG - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_DMA - select HAS_PERIPH_ETH - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - - # Put other features for this board (in alphabetical order) - select HAS_RIOTBOOT - select HAS_TINYUSB_DEVICE - - select HAVE_STM32_ETH - source "$(RIOTBOARD)/common/nucleo144/Kconfig" diff --git a/boards/nucleo-f302r8/Kconfig b/boards/nucleo-f302r8/Kconfig index 6b42fa4d962f..2c236b93e7ec 100644 --- a/boards/nucleo-f302r8/Kconfig +++ b/boards/nucleo-f302r8/Kconfig @@ -14,16 +14,4 @@ config BOARD_NUCLEO_F302R8 select BOARD_COMMON_NUCLEO64 select CPU_MODEL_STM32F302R8 - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - # Put other features for this board (in alphabetical order) - select HAS_RIOTBOOT - source "$(RIOTBOARD)/common/nucleo64/Kconfig" diff --git a/boards/nucleo-f303k8/Kconfig b/boards/nucleo-f303k8/Kconfig index e9af6e756713..b84c8f501550 100644 --- a/boards/nucleo-f303k8/Kconfig +++ b/boards/nucleo-f303k8/Kconfig @@ -14,15 +14,4 @@ config BOARD_NUCLEO_F303K8 select BOARD_COMMON_NUCLEO32 select CPU_MODEL_STM32F303K8 - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_DMA - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - # Put other features for this board (in alphabetical order) - select HAS_RIOTBOOT - source "$(RIOTBOARD)/common/nucleo32/Kconfig" diff --git a/boards/nucleo-f303re/Kconfig b/boards/nucleo-f303re/Kconfig index d31143e9b8a7..256a64a8a253 100644 --- a/boards/nucleo-f303re/Kconfig +++ b/boards/nucleo-f303re/Kconfig @@ -14,16 +14,4 @@ config BOARD_NUCLEO_F303RE select BOARD_COMMON_NUCLEO64 select CPU_MODEL_STM32F303RE - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - # Put other features for this board (in alphabetical order) - select HAS_RIOTBOOT - source "$(RIOTBOARD)/common/nucleo64/Kconfig" diff --git a/boards/nucleo-f303ze/Kconfig b/boards/nucleo-f303ze/Kconfig index d22ed454e43b..80543a661d4a 100644 --- a/boards/nucleo-f303ze/Kconfig +++ b/boards/nucleo-f303ze/Kconfig @@ -14,17 +14,4 @@ config BOARD_NUCLEO_F303ZE select BOARD_COMMON_NUCLEO144 select CPU_MODEL_STM32F303ZE - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - - # Put other features for this board (in alphabetical order) - select HAS_RIOTBOOT - select HAS_TINYUSB_DEVICE - source "$(RIOTBOARD)/common/nucleo144/Kconfig" diff --git a/boards/nucleo-f334r8/Kconfig b/boards/nucleo-f334r8/Kconfig index 01988728b905..99a6eddd8c8a 100644 --- a/boards/nucleo-f334r8/Kconfig +++ b/boards/nucleo-f334r8/Kconfig @@ -14,16 +14,4 @@ config BOARD_NUCLEO_F334R8 select BOARD_COMMON_NUCLEO64 select CPU_MODEL_STM32F334R8 - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_DMA - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - # Put other features for this board (in alphabetical order) - select HAS_RIOTBOOT - source "$(RIOTBOARD)/common/nucleo64/Kconfig" diff --git a/boards/nucleo-f401re/Kconfig b/boards/nucleo-f401re/Kconfig index 386295462333..c72b3fcb5bd8 100644 --- a/boards/nucleo-f401re/Kconfig +++ b/boards/nucleo-f401re/Kconfig @@ -14,18 +14,4 @@ config BOARD_NUCLEO_F401RE select BOARD_COMMON_NUCLEO64 select CPU_MODEL_STM32F401RE - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_DMA - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_QDEC - - # Put other features for this board (in alphabetical order) - select HAS_RIOTBOOT - source "$(RIOTBOARD)/common/nucleo64/Kconfig" diff --git a/boards/nucleo-f410rb/Kconfig b/boards/nucleo-f410rb/Kconfig index a37da84d5778..7ac4426a2b1d 100644 --- a/boards/nucleo-f410rb/Kconfig +++ b/boards/nucleo-f410rb/Kconfig @@ -14,13 +14,4 @@ config BOARD_NUCLEO_F410RB select BOARD_COMMON_NUCLEO64 select CPU_MODEL_STM32F410RB - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_DMA - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - source "$(RIOTBOARD)/common/nucleo64/Kconfig" diff --git a/boards/nucleo-f411re/Kconfig b/boards/nucleo-f411re/Kconfig index 3e93c88300c2..33c259fe7257 100644 --- a/boards/nucleo-f411re/Kconfig +++ b/boards/nucleo-f411re/Kconfig @@ -14,14 +14,4 @@ config BOARD_NUCLEO_F411RE select BOARD_COMMON_NUCLEO64 select CPU_MODEL_STM32F411RE - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_DMA - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - source "$(RIOTBOARD)/common/nucleo64/Kconfig" diff --git a/boards/nucleo-f412zg/Kconfig b/boards/nucleo-f412zg/Kconfig index c5b945bafcd3..50b078bcb895 100644 --- a/boards/nucleo-f412zg/Kconfig +++ b/boards/nucleo-f412zg/Kconfig @@ -14,18 +14,4 @@ config BOARD_NUCLEO_F412ZG select BOARD_COMMON_NUCLEO144 select CPU_MODEL_STM32F412ZG - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_DMA - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - - # Put other features for this board (in alphabetical order) - select HAS_TINYUSB_DEVICE - source "$(RIOTBOARD)/common/nucleo144/Kconfig" diff --git a/boards/nucleo-f413zh/Kconfig b/boards/nucleo-f413zh/Kconfig index 8ec9fd7a34a8..3b9d9fc83195 100644 --- a/boards/nucleo-f413zh/Kconfig +++ b/boards/nucleo-f413zh/Kconfig @@ -14,21 +14,4 @@ config BOARD_NUCLEO_F413ZH select BOARD_COMMON_NUCLEO144 select CPU_MODEL_STM32F413ZH - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_DMA - select HAS_PERIPH_CAN - select HAS_PERIPH_DMA - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - - # Put other features for this board (in alphabetical order) - select HAS_TINYUSB_DEVICE - source "$(RIOTBOARD)/common/nucleo144/Kconfig" diff --git a/boards/nucleo-f429zi/Kconfig b/boards/nucleo-f429zi/Kconfig index b6d4ab11a684..4751da642a57 100644 --- a/boards/nucleo-f429zi/Kconfig +++ b/boards/nucleo-f429zi/Kconfig @@ -14,19 +14,4 @@ config BOARD_NUCLEO_F429ZI select BOARD_COMMON_NUCLEO144 select CPU_MODEL_STM32F429ZI - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_DMA - select HAS_PERIPH_ETH - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - - # Put other features for this board (in alphabetical order) - select HAS_TINYUSB_DEVICE - source "$(RIOTBOARD)/common/nucleo144/Kconfig" diff --git a/boards/nucleo-f439zi/Kconfig b/boards/nucleo-f439zi/Kconfig index 9e06fe4b999e..4c737b045bd2 100644 --- a/boards/nucleo-f439zi/Kconfig +++ b/boards/nucleo-f439zi/Kconfig @@ -14,18 +14,4 @@ config BOARD_NUCLEO_F439ZI select BOARD_COMMON_NUCLEO144 select CPU_MODEL_STM32F439ZI - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_DMA - select HAS_PERIPH_ETH - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - - # Put other features for this board (in alphabetical order) - select HAS_TINYUSB_DEVICE - source "$(RIOTBOARD)/common/nucleo144/Kconfig" diff --git a/boards/nucleo-f446re/Kconfig b/boards/nucleo-f446re/Kconfig index 569b2f51af57..d657487c89cb 100644 --- a/boards/nucleo-f446re/Kconfig +++ b/boards/nucleo-f446re/Kconfig @@ -14,20 +14,4 @@ config BOARD_NUCLEO_F446RE select BOARD_COMMON_NUCLEO64 select CPU_MODEL_STM32F446RE - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_DMA - select HAS_PERIPH_I2C - select HAS_PERIPH_CAN - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_QDEC - - # Various other features (if any) - select HAS_MOTOR_DRIVER - select HAS_RIOTBOOT - source "$(RIOTBOARD)/common/nucleo64/Kconfig" diff --git a/boards/nucleo-f446ze/Kconfig b/boards/nucleo-f446ze/Kconfig index e7e334954762..a5f00f487c18 100644 --- a/boards/nucleo-f446ze/Kconfig +++ b/boards/nucleo-f446ze/Kconfig @@ -14,19 +14,4 @@ config BOARD_NUCLEO_F446ZE select BOARD_COMMON_NUCLEO144 select CPU_MODEL_STM32F446ZE - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_DMA - select HAS_PERIPH_I2C - select HAS_PERIPH_CAN - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - - # Put other features for this board (in alphabetical order) - select HAS_TINYUSB_DEVICE - source "$(RIOTBOARD)/common/nucleo144/Kconfig" diff --git a/boards/nucleo-f722ze/Kconfig b/boards/nucleo-f722ze/Kconfig index 9c943162b2f7..772485f7ec14 100644 --- a/boards/nucleo-f722ze/Kconfig +++ b/boards/nucleo-f722ze/Kconfig @@ -14,17 +14,4 @@ config BOARD_NUCLEO_F722ZE select BOARD_COMMON_NUCLEO144 select CPU_MODEL_STM32F722ZE - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAS_PERIPH_CAN - - # Put other features for this board (in alphabetical order) - select HAS_RIOTBOOT - select HAS_TINYUSB_DEVICE - source "$(RIOTBOARD)/common/nucleo144/Kconfig" diff --git a/boards/nucleo-f746zg/Kconfig b/boards/nucleo-f746zg/Kconfig index 503ec4518795..add1ad8981f8 100644 --- a/boards/nucleo-f746zg/Kconfig +++ b/boards/nucleo-f746zg/Kconfig @@ -14,21 +14,4 @@ config BOARD_NUCLEO_F746ZG select BOARD_COMMON_NUCLEO144 select CPU_MODEL_STM32F746ZG - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_DMA - select HAS_PERIPH_ETH - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - - # Put other features for this board (in alphabetical order) - select HAS_RIOTBOOT - select HAS_TINYUSB_DEVICE - select HAVE_STM32_ETH - source "$(RIOTBOARD)/common/nucleo144/Kconfig" diff --git a/boards/nucleo-f767zi/Kconfig b/boards/nucleo-f767zi/Kconfig index 5a68db3efde6..6739fac6bdeb 100644 --- a/boards/nucleo-f767zi/Kconfig +++ b/boards/nucleo-f767zi/Kconfig @@ -14,27 +14,4 @@ config BOARD_NUCLEO_F767ZI select BOARD_COMMON_NUCLEO144 select CPU_MODEL_STM32F767ZI - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_CAN - select HAS_PERIPH_DMA - select HAS_PERIPH_ETH - select HAS_PERIPH_I2C - select HAS_PERIPH_PTP - select HAS_PERIPH_PTP_SPEED_ADJUSTMENT - select HAS_PERIPH_PTP_TIMER - select HAS_PERIPH_PTP_TXRX_TIMESTAMPS - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - - # Put other features for this board (in alphabetical order) - select HAS_RIOTBOOT - select HAS_TINYUSB_DEVICE - select HAVE_STM32_ETH - source "$(RIOTBOARD)/common/nucleo144/Kconfig" diff --git a/boards/nucleo-g070rb/Kconfig b/boards/nucleo-g070rb/Kconfig index 78ceb7451ad7..cb1135a91bac 100644 --- a/boards/nucleo-g070rb/Kconfig +++ b/boards/nucleo-g070rb/Kconfig @@ -14,14 +14,4 @@ config BOARD_NUCLEO_G070RB select BOARD_COMMON_NUCLEO64 select CPU_MODEL_STM32G070RB - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - # Put other features for this board (in alphabetical order) - select HAS_RIOTBOOT - source "$(RIOTBOARD)/common/nucleo64/Kconfig" diff --git a/boards/nucleo-g071rb/Kconfig b/boards/nucleo-g071rb/Kconfig index e03e2a87a82f..51f708fa8ef4 100644 --- a/boards/nucleo-g071rb/Kconfig +++ b/boards/nucleo-g071rb/Kconfig @@ -14,15 +14,4 @@ config BOARD_NUCLEO_G071RB select BOARD_COMMON_NUCLEO64 select CPU_MODEL_STM32G071RB - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - # Put other features for this board (in alphabetical order) - select HAS_RIOTBOOT - source "$(RIOTBOARD)/common/nucleo64/Kconfig" diff --git a/boards/nucleo-g431rb/Kconfig b/boards/nucleo-g431rb/Kconfig index a396fe92e4d3..265bb816130f 100644 --- a/boards/nucleo-g431rb/Kconfig +++ b/boards/nucleo-g431rb/Kconfig @@ -14,19 +14,4 @@ config BOARD_NUCLEO_G431RB select BOARD_COMMON_NUCLEO64 select CPU_MODEL_STM32G431RB - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_I2C - select HAS_PERIPH_LPUART - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select MODULE_PERIPH_LPUART if MODULE_STDIO_UART && HAS_PERIPH_LPUART - - # Put other features for this board (in alphabetical order) - select HAS_RIOTBOOT - source "$(RIOTBOARD)/common/nucleo64/Kconfig" diff --git a/boards/nucleo-g474re/Kconfig b/boards/nucleo-g474re/Kconfig index e2a2bb5d12b2..e1b2aca1ceac 100644 --- a/boards/nucleo-g474re/Kconfig +++ b/boards/nucleo-g474re/Kconfig @@ -14,18 +14,4 @@ config BOARD_NUCLEO_G474RE select BOARD_COMMON_NUCLEO64 select CPU_MODEL_STM32G474RE - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_I2C - select HAS_PERIPH_LPUART - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select MODULE_PERIPH_LPUART if MODULE_STDIO_UART && HAS_PERIPH_LPUART - - # Put other features for this board (in alphabetical order) - select HAS_RIOTBOOT - source "$(RIOTBOARD)/common/nucleo64/Kconfig" diff --git a/boards/nucleo-l011k4/Kconfig b/boards/nucleo-l011k4/Kconfig index c1b98c6d73a8..f4d29c08183b 100644 --- a/boards/nucleo-l011k4/Kconfig +++ b/boards/nucleo-l011k4/Kconfig @@ -14,18 +14,4 @@ config BOARD_NUCLEO_L011K4 select BOARD_COMMON_NUCLEO32 select CPU_MODEL_STM32L011K4 - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - -choice LIBC_IMPLEMENTATION - # Use Picolibc to reduce ROM usage - default MODULE_PICOLIBC -endchoice - source "$(RIOTBOARD)/common/nucleo32/Kconfig" diff --git a/boards/nucleo-l031k6/Kconfig b/boards/nucleo-l031k6/Kconfig index 1ea29212b063..f46ab2329bb0 100644 --- a/boards/nucleo-l031k6/Kconfig +++ b/boards/nucleo-l031k6/Kconfig @@ -14,14 +14,4 @@ config BOARD_NUCLEO_L031K6 select BOARD_COMMON_NUCLEO32 select CPU_MODEL_STM32L031K6 - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - source "$(RIOTBOARD)/common/nucleo32/Kconfig" diff --git a/boards/nucleo-l053r8/Kconfig b/boards/nucleo-l053r8/Kconfig index 1e5617b34c5a..6eaa12216924 100644 --- a/boards/nucleo-l053r8/Kconfig +++ b/boards/nucleo-l053r8/Kconfig @@ -14,12 +14,4 @@ config BOARD_NUCLEO_L053R8 select BOARD_COMMON_NUCLEO64 select CPU_MODEL_STM32L053R8 - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - source "$(RIOTBOARD)/common/nucleo64/Kconfig" diff --git a/boards/nucleo-l073rz/Kconfig b/boards/nucleo-l073rz/Kconfig index 4b5737516658..9d6d015f483f 100644 --- a/boards/nucleo-l073rz/Kconfig +++ b/boards/nucleo-l073rz/Kconfig @@ -14,22 +14,4 @@ config BOARD_NUCLEO_L073RZ select BOARD_COMMON_NUCLEO64 select CPU_MODEL_STM32L073RZ - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_LPUART - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_SPI_GPIO_MODE - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - # Put other features for this board (in alphabetical order) - # For riotboot you need an openocd that supports dualbank flashing. - # The 0.10.0 openocd version in Ubuntu Bionic doesn't work. The change was - # introduced after Jun 8, 2017 - v0.10.0-1-20170607-2132-dev. - select HAS_RIOTBOOT - source "$(RIOTBOARD)/common/nucleo64/Kconfig" diff --git a/boards/nucleo-l152re/Kconfig b/boards/nucleo-l152re/Kconfig index c2d116f4f9dd..e22f5e8e5513 100644 --- a/boards/nucleo-l152re/Kconfig +++ b/boards/nucleo-l152re/Kconfig @@ -14,19 +14,4 @@ config BOARD_NUCLEO_L152RE select BOARD_COMMON_NUCLEO64 select CPU_MODEL_STM32L152RE - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_DAC - select HAS_PERIPH_DMA - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI - select HAS_PERIPH_SPI_GPIO_MODE - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - # Put other features for this board (in alphabetical order) - select HAS_RIOTBOOT - source "$(RIOTBOARD)/common/nucleo64/Kconfig" diff --git a/boards/nucleo-l412kb/Kconfig b/boards/nucleo-l412kb/Kconfig index 25c67186035b..7926615e98c6 100644 --- a/boards/nucleo-l412kb/Kconfig +++ b/boards/nucleo-l412kb/Kconfig @@ -14,18 +14,4 @@ config BOARD_NUCLEO_L412KB select BOARD_COMMON_NUCLEO32 select CPU_MODEL_STM32L412KB - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - # Put other features for this board (in alphabetical order) - # Note that a recent version of OpenOCD with a slightly patched code is required - # for flashing this board. Refer to the following PR for more info: - # https://github.com/RIOT-OS/RIOT/pull/12144#issuecomment-527090161 - select HAS_RIOTBOOT - source "$(RIOTBOARD)/common/nucleo32/Kconfig" diff --git a/boards/nucleo-l432kc/Kconfig b/boards/nucleo-l432kc/Kconfig index 807cb11b5711..1d2e9b18e0cc 100644 --- a/boards/nucleo-l432kc/Kconfig +++ b/boards/nucleo-l432kc/Kconfig @@ -14,20 +14,4 @@ config BOARD_NUCLEO_L432KC select BOARD_COMMON_NUCLEO32 select CPU_MODEL_STM32L432KC - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - # Put other features for this board (in alphabetical order) - # Note that a recent version of OpenOCD is required for flashing an image on - # the second slot of the flash memory. This version has to be built from source - # and at least contains the following commit - # https://github.com/ntfreak/openocd/commit/a4d50544de07f13e3f9644d2b48e41ebdc91a7a3 - select HAS_RIOTBOOT - source "$(RIOTBOARD)/common/nucleo32/Kconfig" diff --git a/boards/nucleo-l433rc/Kconfig b/boards/nucleo-l433rc/Kconfig index 24bfaae2c0d0..08c8b61b9491 100644 --- a/boards/nucleo-l433rc/Kconfig +++ b/boards/nucleo-l433rc/Kconfig @@ -14,23 +14,4 @@ config BOARD_NUCLEO_L433RC select BOARD_COMMON_NUCLEO64 select CPU_MODEL_STM32L433RC - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_I2C - select HAS_PERIPH_LPUART - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select MODULE_PERIPH_LPUART if MODULE_STDIO_UART && HAS_PERIPH_LPUART - - # Put other features for this board (in alphabetical order) - # Note that a recent version of OpenOCD is required for flashing an image on - # the second slot of the flash memory. This version has to be built from source - # and at least contains the following commit - # https://github.com/ntfreak/openocd/commit/a4d50544de07f13e3f9644d2b48e41ebdc91a7a3 - select HAS_RIOTBOOT - source "$(RIOTBOARD)/common/nucleo64/Kconfig" diff --git a/boards/nucleo-l452re/Kconfig b/boards/nucleo-l452re/Kconfig index d6b73dfa7e99..e14c43379da8 100644 --- a/boards/nucleo-l452re/Kconfig +++ b/boards/nucleo-l452re/Kconfig @@ -14,16 +14,4 @@ config BOARD_NUCLEO_L452RE select BOARD_COMMON_NUCLEO64 select CPU_MODEL_STM32L452RE - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - # Put other features for this board (in alphabetical order) - select HAS_RIOTBOOT - source "$(RIOTBOARD)/common/nucleo64/Kconfig" diff --git a/boards/nucleo-l476rg/Kconfig b/boards/nucleo-l476rg/Kconfig index 9d9c4234bcf0..f4f64bf98afe 100644 --- a/boards/nucleo-l476rg/Kconfig +++ b/boards/nucleo-l476rg/Kconfig @@ -14,19 +14,4 @@ config BOARD_NUCLEO_L476RG select BOARD_COMMON_NUCLEO64 select CPU_MODEL_STM32L476RG - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_CAN - select HAS_PERIPH_DMA - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - # Put other features for this board (in alphabetical order) - select HAS_RIOTBOOT - source "$(RIOTBOARD)/common/nucleo64/Kconfig" diff --git a/boards/nucleo-l496zg/Kconfig b/boards/nucleo-l496zg/Kconfig index 7f11eea9ab38..9c0e2a1569cc 100644 --- a/boards/nucleo-l496zg/Kconfig +++ b/boards/nucleo-l496zg/Kconfig @@ -14,22 +14,4 @@ config BOARD_NUCLEO_L496ZG select BOARD_COMMON_NUCLEO144 select CPU_MODEL_STM32L496ZG - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_LPUART - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - - select MODULE_PERIPH_LPUART if MODULE_STDIO_UART && HAS_PERIPH_LPUART - - # Put other features for this board (in alphabetical order) - select HAS_RIOTBOOT - select HAS_TINYUSB_DEVICE - source "$(RIOTBOARD)/common/nucleo144/Kconfig" diff --git a/boards/nucleo-l4r5zi/Kconfig b/boards/nucleo-l4r5zi/Kconfig index 5db0afd3a696..d8f7ac655672 100644 --- a/boards/nucleo-l4r5zi/Kconfig +++ b/boards/nucleo-l4r5zi/Kconfig @@ -14,22 +14,4 @@ config BOARD_NUCLEO_L4R5ZI select BOARD_COMMON_NUCLEO144 select CPU_MODEL_STM32L4R5ZI - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_LPUART - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - - select MODULE_PERIPH_LPUART if MODULE_STDIO_UART && HAS_PERIPH_LPUART - - # Put other features for this board (in alphabetical order) - select HAS_RIOTBOOT - select HAS_TINYUSB_DEVICE - source "$(RIOTBOARD)/common/nucleo144/Kconfig" diff --git a/boards/nucleo-l552ze-q/Kconfig b/boards/nucleo-l552ze-q/Kconfig index 09359e0705b2..050c277103b2 100644 --- a/boards/nucleo-l552ze-q/Kconfig +++ b/boards/nucleo-l552ze-q/Kconfig @@ -14,17 +14,4 @@ config BOARD_NUCLEO_L552ZE_Q select BOARD_COMMON_NUCLEO144 select CPU_MODEL_STM32L552ZE - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_I2C - select HAS_PERIPH_LPUART - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select MODULE_PERIPH_LPUART if MODULE_STDIO_UART && HAS_PERIPH_LPUART - - # Put other features for this board (in alphabetical order) - select HAS_RIOTBOOT - source "$(RIOTBOARD)/common/nucleo144/Kconfig" diff --git a/boards/nucleo-wl55jc/Kconfig b/boards/nucleo-wl55jc/Kconfig index 03845b209451..9a209153ff4a 100644 --- a/boards/nucleo-wl55jc/Kconfig +++ b/boards/nucleo-wl55jc/Kconfig @@ -14,26 +14,6 @@ config BOARD_NUCLEO_WL55JC select BOARD_COMMON_NUCLEO64 select CPU_MODEL_STM32WL55JC - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_I2C - select HAS_PERIPH_LPUART - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - # Put other features for this board (in alphabetical order) - select HAS_ARDUINO_PINS - select HAS_PERIPH_GPIO_IRQ - select HAS_RIOTBOOT - select HAVE_SX126X_STM32WL - - # This board must use the MODULE_SX126X_RF_SWITCH module if the on-board - # lora module is being used. - imply MODULE_SX126X_RF_SWITCH if MODULE_SX126X_STM32WL - - select MODULE_PERIPH_LPUART if MODULE_STDIO_UART && HAS_PERIPH_LPUART - config CLOCK_HSE default 32000000 diff --git a/boards/nz32-sc151/Kconfig b/boards/nz32-sc151/Kconfig index 485a7f078ac1..b7516e08cfcb 100644 --- a/boards/nz32-sc151/Kconfig +++ b/boards/nz32-sc151/Kconfig @@ -13,17 +13,4 @@ config BOARD_NZ32_SC151 default y select CPU_MODEL_STM32L151RC - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_DAC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI - select HAS_PERIPH_SPI_GPIO_MODE - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select HAVE_SAUL_GPIO - source "$(RIOTBOARD)/common/stm32/Kconfig" diff --git a/boards/olimex-msp430-h1611/Kconfig b/boards/olimex-msp430-h1611/Kconfig index c969ff5d238b..126747cfcd1f 100644 --- a/boards/olimex-msp430-h1611/Kconfig +++ b/boards/olimex-msp430-h1611/Kconfig @@ -11,8 +11,3 @@ config BOARD_OLIMEX_MSP430_H1611 bool default y select CPU_MODEL_MSP430F1611 - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART diff --git a/boards/olimex-msp430-h2618/Kconfig b/boards/olimex-msp430-h2618/Kconfig index 20b4e0b6d2f5..831a5fb672b8 100644 --- a/boards/olimex-msp430-h2618/Kconfig +++ b/boards/olimex-msp430-h2618/Kconfig @@ -11,8 +11,3 @@ config BOARD_OLIMEX_MSP430_H2618 bool default y select CPU_MODEL_MSP430F2618 - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART diff --git a/boards/olimex-msp430-h2618/include/periph_conf.h b/boards/olimex-msp430-h2618/include/periph_conf.h index 109c4708445b..23d223a40b56 100644 --- a/boards/olimex-msp430-h2618/include/periph_conf.h +++ b/boards/olimex-msp430-h2618/include/periph_conf.h @@ -47,36 +47,31 @@ static const msp430_clock_params_t clock_params = { * @name UART configuration * @{ */ -#define UART_NUMOF (1U) +static const uart_conf_t uart_config[] = { + { + .uart = &usci_a1_as_uart, + }, +}; + +#define UART0_RX_ISR USCIAB1RX_VECTOR /**< RX IRQ vector of UART 0 */ -#define UART_BASE (&USCI_A1) -#define UART_IE (UC1IE) -#define UART_IF (UC1IFG) -#define UART_IE_RX_BIT (1 << 0) -#define UART_IE_TX_BIT (1 << 1) -#define UART_RX_PORT (&PORT_3) -#define UART_RX_PIN (1 << 7) -#define UART_TX_PORT (&PORT_3) -#define UART_TX_PIN (1 << 6) -#define UART_RX_ISR (USCIAB1RX_VECTOR) -#define UART_TX_ISR (USCIAB1TX_VECTOR) +#define UART_NUMOF ARRAY_SIZE(uart_config) /** @} */ /** * @name SPI configuration * @{ */ -#define SPI_NUMOF (1U) +static const spi_conf_t spi_config[] = { + { + .spi = &usci_b0_as_spi, + }, + { + .spi = &usci_b1_as_spi, + }, +}; -/* SPI configuration */ -#define SPI_BASE (&USCI_B0) -#define SPI_IE (IE2) -#define SPI_IF (IFG2) -#define SPI_IE_RX_BIT (1 << 2) -#define SPI_IE_TX_BIT (1 << 3) -#define SPI_PIN_MISO GPIO_PIN(P3, 2) -#define SPI_PIN_MOSI GPIO_PIN(P3, 1) -#define SPI_PIN_CLK GPIO_PIN(P3, 3) +#define SPI_NUMOF ARRAY_SIZE(spi_config) /** @} */ #ifdef __cplusplus diff --git a/boards/olimexino-stm32/Kconfig b/boards/olimexino-stm32/Kconfig index 998d9373b7c3..e9412598c600 100644 --- a/boards/olimexino-stm32/Kconfig +++ b/boards/olimexino-stm32/Kconfig @@ -13,21 +13,8 @@ config BOARD_OLIMEXINO_STM32 default y select CPU_MODEL_STM32F103RB - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_CAN - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - # Clock configuration select BOARD_HAS_HSE select BOARD_HAS_LSE - select HAVE_SAUL_GPIO - source "$(RIOTBOARD)/common/stm32/Kconfig" diff --git a/boards/omote/Kconfig b/boards/omote/Kconfig index be1f5021aed4..f4c999c84716 100644 --- a/boards/omote/Kconfig +++ b/boards/omote/Kconfig @@ -11,15 +11,3 @@ config BOARD_OMOTE bool default y select CPU_MODEL_CC2538SF53 - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_RIOTBOOT - - select HAVE_ADXL345 - select HAVE_BMP180 - select HAVE_CC2538_RF - select HAVE_SAUL_GPIO diff --git a/boards/opencm904/Kconfig b/boards/opencm904/Kconfig index 099694f84d36..cef0d35c487e 100644 --- a/boards/opencm904/Kconfig +++ b/boards/opencm904/Kconfig @@ -13,10 +13,6 @@ config BOARD_OPENCM904 default y select CPU_MODEL_STM32F103CB - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - # Clock configuration select BOARD_HAS_HSE diff --git a/boards/openlabs-kw41z-mini-256kib/Kconfig b/boards/openlabs-kw41z-mini-256kib/Kconfig index 86e4283f16aa..4113215ad285 100644 --- a/boards/openlabs-kw41z-mini-256kib/Kconfig +++ b/boards/openlabs-kw41z-mini-256kib/Kconfig @@ -11,16 +11,3 @@ config BOARD_OPENLABS_KW41Z_MINI_256KIB bool default y select CPU_MODEL_MKW41Z256VHT4 - select HAS_PERIPH_ADC - select HAS_PERIPH_DAC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_RIOTBOOT - - select HAVE_KW41ZRF - select HAVE_SAUL_ADC - select HAVE_SAUL_GPIO diff --git a/boards/openlabs-kw41z-mini/Kconfig b/boards/openlabs-kw41z-mini/Kconfig index 9ef44aa1386d..6924c92df210 100644 --- a/boards/openlabs-kw41z-mini/Kconfig +++ b/boards/openlabs-kw41z-mini/Kconfig @@ -11,16 +11,3 @@ config BOARD_OPENLABS_KW41Z_MINI bool default y select CPU_MODEL_MKW41Z512VHT4 - select HAS_PERIPH_ADC - select HAS_PERIPH_DAC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_RIOTBOOT - - select HAVE_KW41ZRF - select HAVE_SAUL_ADC - select HAVE_SAUL_GPIO diff --git a/boards/openmote-b/Kconfig b/boards/openmote-b/Kconfig index 26837e9b9d08..633883bac816 100644 --- a/boards/openmote-b/Kconfig +++ b/boards/openmote-b/Kconfig @@ -11,15 +11,3 @@ config BOARD_OPENMOTE_B bool default y select CPU_MODEL_CC2538SF53 - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_RIOTBOOT - - select HAVE_AT86RF215 - # select HAVE_CC2538_RF # TODO: the AT86 radio should be enabled with netdev_default - select HAVE_SAUL_GPIO - select HAVE_SI7006 diff --git a/boards/openmote-cc2538/Kconfig b/boards/openmote-cc2538/Kconfig index 97f5848122fb..a20fe1873a69 100644 --- a/boards/openmote-cc2538/Kconfig +++ b/boards/openmote-cc2538/Kconfig @@ -11,11 +11,3 @@ config BOARD_OPENMOTE_CC2538 bool default y select CPU_MODEL_CC2538SF53 - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_RIOTBOOT - - select HAVE_CC2538_RF diff --git a/boards/p-l496g-cell02/Kconfig b/boards/p-l496g-cell02/Kconfig index eb770200a270..3c61bf6d39e1 100644 --- a/boards/p-l496g-cell02/Kconfig +++ b/boards/p-l496g-cell02/Kconfig @@ -13,23 +13,7 @@ config BOARD_P_L496G_CELL02 default y select CPU_MODEL_STM32L496AG - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_I2C - select HAS_PERIPH_LPUART - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - - # Put other features for this board (in alphabetical order) - select HAS_RIOTBOOT - select HAS_TINYUSB_DEVICE - # Clock configuration select BOARD_HAS_LSE - select HAVE_SAUL_GPIO - source "$(RIOTBOARD)/common/stm32/Kconfig" diff --git a/boards/p-nucleo-wb55/Kconfig b/boards/p-nucleo-wb55/Kconfig index b200d2fc70e5..a47bd0193c94 100644 --- a/boards/p-nucleo-wb55/Kconfig +++ b/boards/p-nucleo-wb55/Kconfig @@ -13,28 +13,6 @@ config BOARD_P_NUCLEO_WB55 default y select CPU_MODEL_STM32WB55RG - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_I2C - select HAS_PERIPH_LPUART - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select MODULE_PERIPH_LPUART if MODULE_STDIO_UART && HAS_PERIPH_LPUART - - # Put other features for this board (in alphabetical order) - select HAS_ARDUINO_ANALOG - select HAS_ARDUINO_I2C - select HAS_ARDUINO_PINS - select HAS_ARDUINO_SHIELD_UNO - select HAS_ARDUINO_SPI - select HAS_ARDUINO_UART - select HAS_RIOTBOOT - select HAS_TINYUSB_DEVICE - # Clock configuration select BOARD_HAS_HSE select BOARD_HAS_LSE diff --git a/boards/particle-argon/Kconfig b/boards/particle-argon/Kconfig index 3420c70f8daa..57d33658621d 100644 --- a/boards/particle-argon/Kconfig +++ b/boards/particle-argon/Kconfig @@ -11,6 +11,5 @@ config BOARD_PARTICLE_ARGON bool default y select BOARD_COMMON_PARTICLE_MESH - select MODULE_PERIPH_UART_HW_FC if HAS_PERIPH_UART_HW_FC && MODULE_PERIPH_UART source "$(RIOTBOARD)/common/particle-mesh/Kconfig" diff --git a/boards/particle-boron/Kconfig b/boards/particle-boron/Kconfig index cdd324939f8c..5c11eb1a2d23 100644 --- a/boards/particle-boron/Kconfig +++ b/boards/particle-boron/Kconfig @@ -11,6 +11,5 @@ config BOARD_PARTICLE_BORON bool default y select BOARD_COMMON_PARTICLE_MESH - select MODULE_PERIPH_UART_HW_FC if HAS_PERIPH_UART_HW_FC && MODULE_PERIPH_UART source "$(RIOTBOARD)/common/particle-mesh/Kconfig" diff --git a/boards/pba-d-01-kw2x/Kconfig b/boards/pba-d-01-kw2x/Kconfig index 8068c000ca02..48aec7e38e30 100644 --- a/boards/pba-d-01-kw2x/Kconfig +++ b/boards/pba-d-01-kw2x/Kconfig @@ -11,20 +11,3 @@ config BOARD_PBA_D_01_KW2X bool default y select CPU_MODEL_MKW21D256VHA5 - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_RIOTBOOT - - select HAVE_SAUL_GPIO - select HAVE_HDC1000 - select HAVE_KW2XRF - select HAVE_MAG3110 - select HAVE_MMA8X5X - select HAVE_MPL3115A2 - select HAVE_TCS37727 - select HAVE_TMP006 diff --git a/boards/phynode-kw41z/Kconfig b/boards/phynode-kw41z/Kconfig index a19ee94ecbeb..a35bb2d4c3af 100644 --- a/boards/phynode-kw41z/Kconfig +++ b/boards/phynode-kw41z/Kconfig @@ -11,11 +11,5 @@ config BOARD_PHYNODE_KW41Z bool default y select BOARD_COMMON_KW41Z - select HAS_PERIPH_I2C - select HAS_PERIPH_SPI - - select HAVE_CCS811 - select HAVE_MMA8X5X - select HAVE_TCS37727 source "$(RIOTBOARD)/common/kw41z/Kconfig" diff --git a/boards/pinetime/Kconfig b/boards/pinetime/Kconfig index 2212fb478835..f0076ea22db7 100644 --- a/boards/pinetime/Kconfig +++ b/boards/pinetime/Kconfig @@ -12,12 +12,5 @@ config BOARD_PINETIME default y select BOARD_COMMON_NRF52 select CPU_MODEL_NRF52832XXAA - select HAS_PERIPH_I2C - select HAS_PERIPH_SPI - select HAS_VDD_LC_FILTER_REG1 - - select HAVE_CST816S - select HAVE_ILI9341 - select HAVE_MTD_SPI_NOR source "$(RIOTBOARD)/common/nrf52/Kconfig" diff --git a/boards/pinetime/pinetime.config b/boards/pinetime/pinetime.config deleted file mode 100644 index 9136c90eb64a..000000000000 --- a/boards/pinetime/pinetime.config +++ /dev/null @@ -1 +0,0 @@ -CONFIG_MODULE_STDIO_RTT=y diff --git a/boards/pyboard/Kconfig b/boards/pyboard/Kconfig index c189d3488200..a4dfcaf927f7 100644 --- a/boards/pyboard/Kconfig +++ b/boards/pyboard/Kconfig @@ -13,24 +13,10 @@ config BOARD_PYBOARD default y select CPU_MODEL_STM32F405RG - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_DMA - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - - # Put other features for this board (in alphabetical order) - select HAS_TINYUSB_DEVICE - # Clock configuration select BOARD_HAS_HSE select BOARD_HAS_LSE - select HAVE_SAUL_GPIO - config CLOCK_HSE default 12000000 @@ -38,7 +24,7 @@ config CLOCK_PLL_M default 12 config CLOCK_PLL_N - default 336 if MODULE_PERIPH_USBDEV_CLK && TEST_KCONFIG + default 336 if USEMODULE_PERIPH_USBDEV_CLK default 360 diff --git a/boards/qn9080dk/Kconfig b/boards/qn9080dk/Kconfig index 957f2307fc01..2d175d08ad20 100644 --- a/boards/qn9080dk/Kconfig +++ b/boards/qn9080dk/Kconfig @@ -17,15 +17,5 @@ config BOARD_QN9080DK # Put defined MCU peripherals here (in alphabetical order) select BOARD_HAS_XTAL32K select BOARD_HAS_XTAL_32M - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_UART_MODECFG - - select HAVE_SAUL_GPIO - select HAVE_MMA8X5X - select HAVE_MTD_SPI_NOR source "$(RIOTBOARD)/common/qn908x/Kconfig" diff --git a/boards/reel/Kconfig b/boards/reel/Kconfig index ca7b3033965f..0273c7e1b2bf 100644 --- a/boards/reel/Kconfig +++ b/boards/reel/Kconfig @@ -12,14 +12,5 @@ config BOARD_REEL default y select BOARD_COMMON_NRF52 select CPU_MODEL_NRF52840XXAA - select HAS_PERIPH_I2C - select HAS_PERIPH_SPI - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAS_TINYUSB_DEVICE - select HAS_VDD_LC_FILTER_REG1 - - select HAVE_MMA8X5X - select HAVE_SAUL_GPIO source "$(RIOTBOARD)/common/nrf52/Kconfig" diff --git a/boards/remote-pa/Kconfig b/boards/remote-pa/Kconfig index 0ddce3b7dc12..ab17b4e9d081 100644 --- a/boards/remote-pa/Kconfig +++ b/boards/remote-pa/Kconfig @@ -11,7 +11,5 @@ config BOARD_REMOTE_PA bool default y select BOARD_COMMON_REMOTE - select HAVE_SAUL_GPIO - select HAVE_SAUL_ADC source "$(RIOTBOARD)/common/remote/Kconfig" diff --git a/boards/remote-reva/Kconfig b/boards/remote-reva/Kconfig index 279821d9c404..36ef4802ed2a 100644 --- a/boards/remote-reva/Kconfig +++ b/boards/remote-reva/Kconfig @@ -11,7 +11,5 @@ config BOARD_REMOTE_REVA bool default y select BOARD_COMMON_REMOTE - select HAVE_SAUL_ADC - select HAVE_SAUL_GPIO source "$(RIOTBOARD)/common/remote/Kconfig" diff --git a/boards/remote-revb/Kconfig b/boards/remote-revb/Kconfig index dfba9af3f7c4..a865ddba1828 100644 --- a/boards/remote-revb/Kconfig +++ b/boards/remote-revb/Kconfig @@ -11,12 +11,5 @@ config BOARD_REMOTE_REVB bool default y select BOARD_COMMON_REMOTE - select HAS_ARDUINO_ANALOG - select HAS_ARDUINO_PINS - select HAVE_SAUL_ADC - select HAVE_SAUL_GPIO - - select HAVE_MTD_SDCARD_DEFAULT - select MODULE_FATFS_VFS if MODULE_VFS_DEFAULT source "$(RIOTBOARD)/common/remote/Kconfig" diff --git a/boards/rpi-pico-w/Kconfig b/boards/rpi-pico-w/Kconfig index 6563c55c6f19..44590aa4d113 100644 --- a/boards/rpi-pico-w/Kconfig +++ b/boards/rpi-pico-w/Kconfig @@ -13,6 +13,5 @@ config BOARD_RPI_PICO_W bool default y select CPU_MODEL_RP2040 - select HAS_PERIPH_UART source "$(RIOTBOARD)/rpi-pico/Kconfig" diff --git a/boards/rpi-pico/Kconfig b/boards/rpi-pico/Kconfig index 1b8b19d751ff..f8e78859f833 100644 --- a/boards/rpi-pico/Kconfig +++ b/boards/rpi-pico/Kconfig @@ -12,10 +12,3 @@ config BOARD_RPI_PICO bool default y select CPU_MODEL_RP2040 - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_UART - select HAS_PERIPH_SPI - - select HAVE_SAUL_GPIO diff --git a/boards/ruuvitag/Kconfig b/boards/ruuvitag/Kconfig index afa6f452c74f..b17fccf72447 100644 --- a/boards/ruuvitag/Kconfig +++ b/boards/ruuvitag/Kconfig @@ -12,14 +12,5 @@ config BOARD_RUUVITAG default y select BOARD_COMMON_NRF52 select CPU_MODEL_NRF52832XXAA - select HAS_PERIPH_SPI - select HAS_PERIPH_UART - select HAS_VDD_LC_FILTER_REG1 - - select HAVE_SAUL_GPIO - select HAVE_BME280_SPI - select HAVE_LIS2DH12_SPI - - select MODULE_BOARDS_COMMON_NRF52XXXDK if TEST_KCONFIG source "$(RIOTBOARD)/common/nrf52xxxdk/Kconfig" diff --git a/boards/ruuvitag/ruuvitag.config b/boards/ruuvitag/ruuvitag.config deleted file mode 100644 index 9136c90eb64a..000000000000 --- a/boards/ruuvitag/ruuvitag.config +++ /dev/null @@ -1 +0,0 @@ -CONFIG_MODULE_STDIO_RTT=y diff --git a/boards/samd10-xmini/Kconfig b/boards/samd10-xmini/Kconfig index 86e056c5c8a2..f7f07040b6ca 100644 --- a/boards/samd10-xmini/Kconfig +++ b/boards/samd10-xmini/Kconfig @@ -11,18 +11,3 @@ config BOARD_SAMD10_XMINI bool default y select CPU_MODEL_SAMD10D14AU - select HAS_PERIPH_ADC - select HAS_PERIPH_DAC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAVE_SAUL_GPIO - -choice LIBC_IMPLEMENTATION - # Use Picolibc to reduce ROM usage - default MODULE_PICOLIBC -endchoice diff --git a/boards/samd20-xpro/Kconfig b/boards/samd20-xpro/Kconfig index 3188ccca97d2..476fbbf9c2c9 100644 --- a/boards/samd20-xpro/Kconfig +++ b/boards/samd20-xpro/Kconfig @@ -11,14 +11,3 @@ config BOARD_SAMD20_XPRO bool default y select CPU_MODEL_SAMD20J18 - select HAS_PERIPH_ADC - select HAS_PERIPH_DAC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select HAVE_SAUL_GPIO diff --git a/boards/samd21-xpro/Kconfig b/boards/samd21-xpro/Kconfig index d8e6a6504c5d..4ba0d8b6a283 100644 --- a/boards/samd21-xpro/Kconfig +++ b/boards/samd21-xpro/Kconfig @@ -11,16 +11,3 @@ config BOARD_SAMD21_XPRO bool default y select CPU_MODEL_SAMD21J18A - select HAS_PERIPH_ADC - select HAS_PERIPH_DAC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAS_TINYUSB_DEVICE - - select HAVE_SAUL_GPIO diff --git a/boards/same54-xpro/Kconfig b/boards/same54-xpro/Kconfig index 4386463754b2..97e9a9be037a 100644 --- a/boards/same54-xpro/Kconfig +++ b/boards/same54-xpro/Kconfig @@ -11,30 +11,3 @@ config BOARD_SAME54_XPRO bool default y select CPU_MODEL_SAME54P20A - select HAS_PERIPH_DAC - select HAS_PERIPH_ADC - select HAS_PERIPH_ETH - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_PWM - select HAS_PERIPH_FREQM - select HAS_PERIPH_SDMMC - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_UART_HW_FC - select HAS_PERIPH_USBDEV - select HAS_RIOTBOOT - select HAS_TINYUSB_DEVICE - - select HAVE_SAUL_GPIO - select HAVE_MTD_SPI_NOR - select HAVE_AT24MAC - select HAVE_SAM0_ETH - select HAVE_SAM0_SDHC - select HAVE_MTD_AT24CXXX - select HAVE_MTD_SDMMC_DEFAULT - - # This specific board requires SPI_ON_QSPI for the MTD_SPI_NOR - select MODULE_PERIPH_SPI_ON_QSPI if MODULE_MTD_SPI_NOR diff --git a/boards/saml21-xpro/Kconfig b/boards/saml21-xpro/Kconfig index ccffaee92dd0..7520b5e559ad 100644 --- a/boards/saml21-xpro/Kconfig +++ b/boards/saml21-xpro/Kconfig @@ -11,17 +11,3 @@ config BOARD_SAML21_XPRO bool default y select CPU_MODEL_SAML21J18A - select HAS_PERIPH_ADC - select HAS_PERIPH_DAC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAS_RIOTBOOT - select HAS_TINYUSB_DEVICE - - select HAVE_SAUL_GPIO diff --git a/boards/samr21-xpro/Kconfig b/boards/samr21-xpro/Kconfig index 32d478ca4228..a1d6d03b9468 100644 --- a/boards/samr21-xpro/Kconfig +++ b/boards/samr21-xpro/Kconfig @@ -11,19 +11,3 @@ config BOARD_SAMR21_XPRO bool default y select CPU_MODEL_SAMR21G18A - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_UART_HW_FC - select HAS_PERIPH_USBDEV - select HAS_RIOTBOOT - select HAS_TINYUSB_DEVICE - - select HAVE_EDBG_EUI - select HAVE_SAUL_GPIO - select HAVE_AT86RF233 diff --git a/boards/samr30-xpro/Kconfig b/boards/samr30-xpro/Kconfig index 008a93c08019..fca3266e3388 100644 --- a/boards/samr30-xpro/Kconfig +++ b/boards/samr30-xpro/Kconfig @@ -11,16 +11,3 @@ config BOARD_SAMR30_XPRO bool default y select CPU_MODEL_SAMR30G18A - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAS_RIOTBOOT - select HAS_TINYUSB_DEVICE - - select HAVE_AT86RF212B - select HAVE_SAUL_GPIO diff --git a/boards/samr34-xpro/Kconfig b/boards/samr34-xpro/Kconfig index 63af0ef92f0d..beb72d9d46fa 100644 --- a/boards/samr34-xpro/Kconfig +++ b/boards/samr34-xpro/Kconfig @@ -11,17 +11,3 @@ config BOARD_SAMR34_XPRO bool default y select CPU_MODEL_SAMR34J18B - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAS_RIOTBOOT - select HAS_TINYUSB_DEVICE - - select HAVE_SX1276 - select HAVE_SAUL_GPIO - select HAVE_MTD_SPI_NOR diff --git a/boards/seeedstudio-gd32/Kconfig b/boards/seeedstudio-gd32/Kconfig index dd1da6338df7..07ed7ef29577 100644 --- a/boards/seeedstudio-gd32/Kconfig +++ b/boards/seeedstudio-gd32/Kconfig @@ -14,25 +14,5 @@ config BOARD_SEEEDSTUDIO_GD32 select CPU_MODEL_GD32VF103VBT6 select BOARD_HAS_HXTAL select BOARD_HAS_LXTAL - select HAS_HIGHLEVEL_STDIO - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAS_RIOTBOOT - select HAS_TINYUSB_DEVICE - select HAVE_SAUL_GPIO - - select HAVE_MTD_SDCARD_DEFAULT - select MODULE_FATFS_VFS if MODULE_VFS_DEFAULT - - select MODULE_USB_BOARD_RESET if KCONFIG_USB && TEST_KCONFIG - - -config FORCE_USB_STDIO - default y source "$(RIOTBOARD)/common/gd32v/Kconfig" diff --git a/boards/seeeduino_arch-pro/Kconfig b/boards/seeeduino_arch-pro/Kconfig index 1e2dcb2c6b71..570fae085667 100644 --- a/boards/seeeduino_arch-pro/Kconfig +++ b/boards/seeeduino_arch-pro/Kconfig @@ -11,9 +11,3 @@ config BOARD_SEEEDUINO_ARCH_PRO bool default y select CPU_MODEL_LPC1768 - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select HAVE_SAUL_GPIO diff --git a/boards/seeeduino_xiao/Kconfig b/boards/seeeduino_xiao/Kconfig index 1cd76e60dbd9..02a81804d75a 100644 --- a/boards/seeeduino_xiao/Kconfig +++ b/boards/seeeduino_xiao/Kconfig @@ -11,16 +11,3 @@ config BOARD_SEEEDUINO_XIAO bool default y select CPU_MODEL_SAMD21G18A - select HAS_HIGHLEVEL_STDIO - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - - select HAVE_SAUL_GPIO - -source "$(RIOTBOARD)/common/samdx1-arduino-bootloader/Kconfig" diff --git a/boards/sensebox_samd21/Kconfig b/boards/sensebox_samd21/Kconfig index 3ef03391dbe6..07d1677ad068 100644 --- a/boards/sensebox_samd21/Kconfig +++ b/boards/sensebox_samd21/Kconfig @@ -11,19 +11,3 @@ config BOARD_SENSEBOX_SAMD21 bool default y select CPU_MODEL_SAMD21G18A - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAS_HIGHLEVEL_STDIO - - select HAVE_SAUL_GPIO - - select HAVE_MTD_SDCARD_DEFAULT - select MODULE_FATFS_VFS if MODULE_VFS_DEFAULT - -source "$(RIOTBOARD)/common/samdx1-arduino-bootloader/Kconfig" diff --git a/boards/serpente/Kconfig b/boards/serpente/Kconfig index feed6f10f1e5..8589e078bba9 100644 --- a/boards/serpente/Kconfig +++ b/boards/serpente/Kconfig @@ -11,18 +11,3 @@ config BOARD_SERPENTE bool default y select CPU_MODEL_SAMD21E18A - select HAS_HIGHLEVEL_STDIO - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - - select HAVE_MTD_SPI_NOR - select HAVE_SAUL_PWM - -source "$(RIOTBOARD)/common/samdx1-arduino-bootloader/Kconfig" diff --git a/boards/sipeed-longan-nano-tft/Kconfig b/boards/sipeed-longan-nano-tft/Kconfig index 6595dbb6d50d..aaa25c727ab5 100644 --- a/boards/sipeed-longan-nano-tft/Kconfig +++ b/boards/sipeed-longan-nano-tft/Kconfig @@ -14,26 +14,5 @@ config BOARD_SIPEED_LONGAN_NANO_TFT select CPU_MODEL_GD32VF103CBT6 select BOARD_HAS_HXTAL select BOARD_HAS_LXTAL - select HAS_HIGHLEVEL_STDIO - select HAS_PERIPH_ADC - select HAS_PERIPH_DAC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAS_RIOTBOOT - select HAS_TINYUSB_DEVICE - - select HAVE_MTD_SDCARD_DEFAULT - select HAVE_SAUL_GPIO - select HAVE_ST7735 - - select MODULE_FATFS_VFS if MODULE_VFS_DEFAULT - select MODULE_USB_BOARD_RESET if KCONFIG_USB && TEST_KCONFIG - -config FORCE_USB_STDIO - default y source "$(RIOTBOARD)/common/gd32v/Kconfig" diff --git a/boards/sipeed-longan-nano/Kconfig b/boards/sipeed-longan-nano/Kconfig index dc50ef4b70a7..74f18ed1db40 100644 --- a/boards/sipeed-longan-nano/Kconfig +++ b/boards/sipeed-longan-nano/Kconfig @@ -14,25 +14,5 @@ config BOARD_SIPEED_LONGAN_NANO select CPU_MODEL_GD32VF103CBT6 select BOARD_HAS_HXTAL select BOARD_HAS_LXTAL - select HAS_HIGHLEVEL_STDIO - select HAS_PERIPH_ADC - select HAS_PERIPH_DAC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAS_RIOTBOOT - select HAS_TINYUSB_DEVICE - - select HAVE_MTD_SDCARD_DEFAULT - select HAVE_SAUL_GPIO - - select MODULE_FATFS_VFS if MODULE_VFS_DEFAULT - select MODULE_USB_BOARD_RESET if KCONFIG_USB && TEST_KCONFIG - -config FORCE_USB_STDIO - default y source "$(RIOTBOARD)/common/gd32v/Kconfig" diff --git a/boards/slstk3400a/Kconfig b/boards/slstk3400a/Kconfig index 3ea470def09a..7c0a72b08a30 100644 --- a/boards/slstk3400a/Kconfig +++ b/boards/slstk3400a/Kconfig @@ -12,17 +12,5 @@ config BOARD_SLSTK3400A default y select BOARD_COMMON_SILABS select CPU_MODEL_EFM32HG322F64 - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select MODULE_SILABS_BC if TEST_KCONFIG - # additional hardware present in the board - select HAVE_SAUL_GPIO - select HAVE_SI7021 source "$(RIOTBOARD)/common/silabs/Kconfig" diff --git a/boards/slstk3401a/Kconfig b/boards/slstk3401a/Kconfig index ca88dd3cbc65..fc59f9969ee4 100644 --- a/boards/slstk3401a/Kconfig +++ b/boards/slstk3401a/Kconfig @@ -12,18 +12,5 @@ config BOARD_SLSTK3401A default y select BOARD_COMMON_SILABS select CPU_MODEL_EFM32PG1B200F256GM48 - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select MODULE_SILABS_AEM if TEST_KCONFIG - select MODULE_SILABS_BC if TEST_KCONFIG - # additional hardware present in the board - select HAVE_SAUL_GPIO - select HAVE_SI7021 source "$(RIOTBOARD)/common/silabs/Kconfig" diff --git a/boards/slstk3402a/Kconfig b/boards/slstk3402a/Kconfig index 6a16102038b6..d471eea328ef 100644 --- a/boards/slstk3402a/Kconfig +++ b/boards/slstk3402a/Kconfig @@ -12,18 +12,5 @@ config BOARD_SLSTK3402A default y select BOARD_COMMON_SILABS select CPU_MODEL_EFM32PG12B500F1024GL125 - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select MODULE_SILABS_AEM if TEST_KCONFIG - select MODULE_SILABS_BC if TEST_KCONFIG - # additional hardware present in the board - select HAVE_SAUL_GPIO - select HAVE_SI7021 source "$(RIOTBOARD)/common/silabs/Kconfig" diff --git a/boards/slstk3701a/Kconfig b/boards/slstk3701a/Kconfig index dcbd19a447c0..b2352164e607 100644 --- a/boards/slstk3701a/Kconfig +++ b/boards/slstk3701a/Kconfig @@ -12,21 +12,5 @@ config BOARD_SLSTK3701A default y select BOARD_COMMON_SILABS select CPU_MODEL_EFM32GG11B820F2048GL192 - select HAS_PERIPH_ADC - select HAS_PERIPH_DAC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_UART_MODECFG - select HAS_PERIPH_USBDEV - - select HAVE_SAUL_GPIO - select HAVE_SI7021 - - select MODULE_SILABS_AEM if TEST_KCONFIG - select MODULE_SILABS_BC if TEST_KCONFIG source "$(RIOTBOARD)/common/silabs/Kconfig" diff --git a/boards/sltb001a/Kconfig b/boards/sltb001a/Kconfig index 27ebf242699b..c0e6b76b046b 100644 --- a/boards/sltb001a/Kconfig +++ b/boards/sltb001a/Kconfig @@ -12,19 +12,5 @@ config BOARD_SLTB001A default y select BOARD_COMMON_SILABS select CPU_MODEL_EFR32MG1P132F256GM48 - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select MODULE_SILABS_PIC if TEST_KCONFIG - - # additional hardware present in the board - select HAVE_SAUL_GPIO - select HAVE_BMP280_I2C - select HAVE_CCS811 - select HAVE_SI7021 source "$(RIOTBOARD)/common/silabs/Kconfig" diff --git a/boards/sltb009a/Kconfig b/boards/sltb009a/Kconfig index bc1ffad854d3..22050ce1289f 100644 --- a/boards/sltb009a/Kconfig +++ b/boards/sltb009a/Kconfig @@ -12,15 +12,5 @@ config BOARD_SLTB009A default y select BOARD_COMMON_SILABS select CPU_MODEL_EFM32GG12B810F1024GM64 - select HAS_PERIPH_ADC - select HAS_PERIPH_DAC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAVE_SAUL_GPIO source "$(RIOTBOARD)/common/silabs/Kconfig" diff --git a/boards/slwstk6000b-slwrb4150a/Kconfig b/boards/slwstk6000b-slwrb4150a/Kconfig index ee8aa8b8a945..9ddec7d128d9 100644 --- a/boards/slwstk6000b-slwrb4150a/Kconfig +++ b/boards/slwstk6000b-slwrb4150a/Kconfig @@ -12,6 +12,5 @@ config BOARD_SLWSTK6000B_SLWRB4150A default y select CPU_MODEL_EFR32MG1P233F256GM48 select BOARD_COMMON_SLWSTK6000B - select MODULE_BOARD_COMMON_SLWSTK6000B if TEST_KCONFIG source "$(RIOTBOARD)/common/slwstk6000b/Kconfig" diff --git a/boards/slwstk6000b-slwrb4162a/Kconfig b/boards/slwstk6000b-slwrb4162a/Kconfig index b26f79b6bd9b..bf4059e9fcd7 100644 --- a/boards/slwstk6000b-slwrb4162a/Kconfig +++ b/boards/slwstk6000b-slwrb4162a/Kconfig @@ -12,6 +12,5 @@ config BOARD_SLWSTK6000B_SLWRB4162A default y select CPU_MODEL_EFR32MG12P332F1024GL125 select BOARD_COMMON_SLWSTK6000B - select MODULE_BOARD_COMMON_SLWSTK6000B if TEST_KCONFIG source "$(RIOTBOARD)/common/slwstk6000b/Kconfig" diff --git a/boards/slwstk6220a/Kconfig b/boards/slwstk6220a/Kconfig index 7e97a47825e1..434eb8b8a040 100644 --- a/boards/slwstk6220a/Kconfig +++ b/boards/slwstk6220a/Kconfig @@ -12,20 +12,5 @@ config BOARD_SLWSTK6220A default y select BOARD_COMMON_SILABS select CPU_MODEL_EZR32WG330F256R60 - select HAS_PERIPH_ADC - select HAS_PERIPH_DAC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select MODULE_SILABS_AEM if TEST_KCONFIG - select MODULE_SILABS_BC if TEST_KCONFIG - # additional hardware present in the board - select HAVE_SAUL_GPIO - select HAVE_SI7021 source "$(RIOTBOARD)/common/silabs/Kconfig" diff --git a/boards/sodaq-autonomo/Kconfig b/boards/sodaq-autonomo/Kconfig index dde48350c294..5bc5ada9e60d 100644 --- a/boards/sodaq-autonomo/Kconfig +++ b/boards/sodaq-autonomo/Kconfig @@ -12,8 +12,5 @@ config BOARD_SODAQ_AUTONOMO default y select BOARD_COMMON_SODAQ select CPU_MODEL_SAMD21J18A - select HAS_PERIPH_PWM - select HAS_ARDUINO_PWM - select MODULE_BOARDS_COMMON_SODAQ if TEST_KCONFIG source "$(RIOTBOARD)/common/sodaq/Kconfig" diff --git a/boards/sodaq-explorer/Kconfig b/boards/sodaq-explorer/Kconfig index 1beb5546ed1b..c84861b62d5c 100644 --- a/boards/sodaq-explorer/Kconfig +++ b/boards/sodaq-explorer/Kconfig @@ -12,6 +12,5 @@ config BOARD_SODAQ_EXPLORER default y select BOARD_COMMON_SODAQ select CPU_MODEL_SAMD21J18A - select MODULE_BOARDS_COMMON_SODAQ if TEST_KCONFIG source "$(RIOTBOARD)/common/sodaq/Kconfig" diff --git a/boards/sodaq-sara-aff/Kconfig b/boards/sodaq-sara-aff/Kconfig index d2687832dcf8..e78b3552e754 100644 --- a/boards/sodaq-sara-aff/Kconfig +++ b/boards/sodaq-sara-aff/Kconfig @@ -13,7 +13,4 @@ config BOARD_SODAQ_SARA_AFF select BOARD_COMMON_SODAQ select CPU_MODEL_SAMD21J18A -config MODULE_PERIPH_INIT_LED0 - default n if MODULE_PERIPH_SPI - source "$(RIOTBOARD)/common/sodaq/Kconfig" diff --git a/boards/spark-core/Kconfig b/boards/spark-core/Kconfig index 3baef72242a4..0b7aa24f95f9 100644 --- a/boards/spark-core/Kconfig +++ b/boards/spark-core/Kconfig @@ -13,9 +13,4 @@ config BOARD_SPARK_CORE default y select CPU_MODEL_STM32F103CB - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_TIMER - select HAS_PERIPH_SPI - select HAS_PERIPH_UART - source "$(RIOTBOARD)/common/stm32/Kconfig" diff --git a/boards/stk3200/Kconfig b/boards/stk3200/Kconfig index e22781cbe1c7..d61a24fc991e 100644 --- a/boards/stk3200/Kconfig +++ b/boards/stk3200/Kconfig @@ -12,15 +12,5 @@ config BOARD_STK3200 default y select BOARD_COMMON_SILABS select CPU_MODEL_EFM32ZG222F32 - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select HAVE_SAUL_GPIO - select MODULE_SILABS_BC if TEST_KCONFIG source "$(RIOTBOARD)/common/silabs/Kconfig" diff --git a/boards/stk3600/Kconfig b/boards/stk3600/Kconfig index 5372eeb3d862..5527dbc98314 100644 --- a/boards/stk3600/Kconfig +++ b/boards/stk3600/Kconfig @@ -12,19 +12,5 @@ config BOARD_STK3600 default y select BOARD_COMMON_SILABS select CPU_MODEL_EFM32LG990F256 - select HAS_PERIPH_ADC - select HAS_PERIPH_DAC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - - select HAVE_SAUL_GPIO - select MODULE_SILABS_AEM if TEST_KCONFIG - select MODULE_SILABS_BC if TEST_KCONFIG source "$(RIOTBOARD)/common/silabs/Kconfig" diff --git a/boards/stk3700/Kconfig b/boards/stk3700/Kconfig index d8b6e685b83b..09324f195ee7 100644 --- a/boards/stk3700/Kconfig +++ b/boards/stk3700/Kconfig @@ -12,19 +12,5 @@ config BOARD_STK3700 default y select BOARD_COMMON_SILABS select CPU_MODEL_EFM32GG990F1024 - select HAS_PERIPH_ADC - select HAS_PERIPH_DAC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - - select HAVE_SAUL_GPIO - select MODULE_SILABS_AEM if TEST_KCONFIG - select MODULE_SILABS_BC if TEST_KCONFIG source "$(RIOTBOARD)/common/silabs/Kconfig" diff --git a/boards/stm32f030f4-demo/Kconfig b/boards/stm32f030f4-demo/Kconfig index f9e7cbf1d85b..43a8b84652a4 100644 --- a/boards/stm32f030f4-demo/Kconfig +++ b/boards/stm32f030f4-demo/Kconfig @@ -13,20 +13,7 @@ config BOARD_STM32F030F4_DEMO default y select CPU_MODEL_STM32F030F4 - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_PWM - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_SPI - select HAS_PERIPH_RTC - # Clock configuration select BOARD_HAS_HSE -choice LIBC_IMPLEMENTATION - # Use Picolibc to reduce ROM usage - default MODULE_PICOLIBC -endchoice - source "$(RIOTBOARD)/common/stm32/Kconfig" diff --git a/boards/stm32f0discovery/Kconfig b/boards/stm32f0discovery/Kconfig index e51dce2e76f4..b0d4c343602d 100644 --- a/boards/stm32f0discovery/Kconfig +++ b/boards/stm32f0discovery/Kconfig @@ -13,16 +13,7 @@ config BOARD_STM32F0DISCOVERY default y select CPU_MODEL_STM32F051R8 - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - # Clock configuration select BOARD_HAS_HSE - select HAVE_SAUL_GPIO - source "$(RIOTBOARD)/common/stm32/Kconfig" diff --git a/boards/stm32f3discovery/Kconfig b/boards/stm32f3discovery/Kconfig index aecb3f95f273..d130094b2529 100644 --- a/boards/stm32f3discovery/Kconfig +++ b/boards/stm32f3discovery/Kconfig @@ -13,24 +13,7 @@ config BOARD_STM32F3DISCOVERY default y select CPU_MODEL_STM32F303VC - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_DAC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - # Clock configuration select BOARD_HAS_HSE - select HAVE_SAUL_GPIO - select HAVE_LSM303DLHC - - # L3Gxxxx gyro - select HAVE_L3GXXXX_SPI - select HAVE_I3G4250D - select HAVE_L3GD20 - source "$(RIOTBOARD)/common/stm32/Kconfig" diff --git a/boards/stm32f429i-disc1/Kconfig b/boards/stm32f429i-disc1/Kconfig index ca1945d6f337..29c12eb07cd9 100644 --- a/boards/stm32f429i-disc1/Kconfig +++ b/boards/stm32f429i-disc1/Kconfig @@ -13,35 +13,8 @@ config BOARD_STM32F429I_DISC1 default y select CPU_MODEL_STM32F429ZI - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_DMA - select HAS_PERIPH_FMC - select HAS_PERIPH_FMC_SDRAM - select HAS_PERIPH_FMC_16BIT - select HAS_PERIPH_I2C - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAS_PERIPH_USBDEV_HS - - # Put other features for this board (in alphabetical order) - select HAS_RIOTBOOT - select HAS_TINYUSB_DEVICE if !BOARD_STM32F429I_DISCO - # Clock configuration select BOARD_HAS_HSE select BOARD_HAS_LSE - select HAVE_SAUL_GPIO - select HAVE_ILI9341 - select HAVE_STMPE811_I2C - - # L3Gxxxx gyro - select HAVE_L3GXXXX_SPI - select HAVE_I3G4250D - select HAVE_L3GD20 - - select MODULE_PERIPH_USBDEV_HS if MODULE_PERIPH_USBDEV - source "$(RIOTBOARD)/common/stm32/Kconfig" diff --git a/boards/stm32f429i-disco/Kconfig b/boards/stm32f429i-disco/Kconfig index a782370a8a8f..56181d246878 100644 --- a/boards/stm32f429i-disco/Kconfig +++ b/boards/stm32f429i-disco/Kconfig @@ -13,11 +13,5 @@ config BOARD_STM32F429I_DISCO default y select CPU_MODEL_STM32F429ZI - # Put other features for this board (in alphabetical order) - select HAS_HIGHLEVEL_STDIO - -config FORCE_USB_STDIO - default y - source "$(RIOTBOARD)/common/stm32/Kconfig" source "$(RIOTBOARD)/stm32f429i-disc1/Kconfig" diff --git a/boards/stm32f469i-disco/Kconfig b/boards/stm32f469i-disco/Kconfig index 9a43a35ed1e1..2687b55137dd 100644 --- a/boards/stm32f469i-disco/Kconfig +++ b/boards/stm32f469i-disco/Kconfig @@ -6,30 +6,10 @@ config BOARD_STM32F469I_DISCO default y select CPU_MODEL_STM32F469NI - # MCU peripherals (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_DAC - select HAS_PERIPH_DMA - select HAS_PERIPH_FMC - select HAS_PERIPH_FMC_SDRAM - select HAS_PERIPH_FMC_32BIT - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - - # Put other features for this board (in alphabetical order) - select HAS_TINYUSB_DEVICE - # Clock configuration select BOARD_HAS_HSE select BOARD_HAS_LSE - select HAVE_SAUL_GPIO - config CLOCK_HSE default 8000000 diff --git a/boards/stm32f4discovery/Kconfig b/boards/stm32f4discovery/Kconfig index 0f8f388f355c..73924b843fe5 100644 --- a/boards/stm32f4discovery/Kconfig +++ b/boards/stm32f4discovery/Kconfig @@ -13,34 +13,7 @@ config BOARD_STM32F4DISCOVERY default y select CPU_MODEL_STM32F407VG - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_DAC - select HAS_PERIPH_DMA - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - - # Various other features (if any) - select HAS_ARDUINO_ANALOG - select HAS_ARDUINO_PINS - select HAS_TINYUSB_DEVICE - select HAS_HIGHLEVEL_STDIO - # Clock configuration select BOARD_HAS_HSE - select HAVE_SAUL_GPIO - -config FORCE_USB_STDIO - default y - source "$(RIOTBOARD)/common/stm32/Kconfig" - -config ERROR_MODULES_CONFLICT - default "On stm32f4discovery boards there are the same pins for the DAC and/or SPI_0." if MODULE_PERIPH_SPI && MODULE_PERIPH_DAC - depends on BOARD_STM32F4DISCOVERY diff --git a/boards/stm32f723e-disco/Kconfig b/boards/stm32f723e-disco/Kconfig index 31a6910b163d..9cf87c1aa3fe 100644 --- a/boards/stm32f723e-disco/Kconfig +++ b/boards/stm32f723e-disco/Kconfig @@ -13,42 +13,11 @@ config BOARD_STM32F723E_DISCO default y select CPU_MODEL_STM32F723IE - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_FMC - select HAS_PERIPH_FMC_16BIT - select HAS_PERIPH_FMC_NOR_SRAM - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_UART_HW_FC - select HAS_PERIPH_USBDEV - select HAS_PERIPH_USBDEV_HS - select HAS_PERIPH_USBDEV_HS_UTMI - - # Put other features for this board (in alphabetical order) - select HAS_TINYUSB_DEVICE - # Clock configuration select BOARD_HAS_HSE select BOARD_HAS_LSE - select HAVE_SAUL_GPIO - select HAVE_FT5X06 - select HAVE_ST7789 - select HAVE_LCD_PARALLEL_16BIT if MODULE_ST7789 - select HAVE_LCD_PARALLEL_LL_MCU if MODULE_ST7789 - - select MODULE_PERIPH_UART_HW_FC if HAS_PERIPH_UART_HW_FC && MODULE_PERIPH_UART - # Workaround due to stdout only working with stdin enabled - select MODULE_STDIN if TEST_KCONFIG - config CLOCK_HSE default 25000000 -config MODULE_PERIPH_INIT_LED0 - default n if MODULE_PERIPH_SPI - source "$(RIOTBOARD)/common/stm32/Kconfig" diff --git a/boards/stm32f746g-disco/Kconfig b/boards/stm32f746g-disco/Kconfig index 31bc92645e05..33cd238b0994 100644 --- a/boards/stm32f746g-disco/Kconfig +++ b/boards/stm32f746g-disco/Kconfig @@ -12,34 +12,10 @@ config BOARD_STM32F746G_DISCO default y select CPU_MODEL_STM32F746NG - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_DMA - select HAS_PERIPH_ETH - select HAS_PERIPH_FMC - select HAS_PERIPH_FMC_SDRAM - select HAS_PERIPH_FMC_16BIT - select HAS_PERIPH_I2C - select HAS_PERIPH_LTDC - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_SDMMC - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAS_PERIPH_USBDEV_HS - select HAS_PERIPH_USBDEV_HS_ULPI - select HAS_TINYUSB_DEVICE - # Clock configuration select BOARD_HAS_HSE select BOARD_HAS_LSE - select HAVE_SAUL_GPIO - select HAVE_STM32_ETH - select HAVE_FT5X06 - select HAVE_MTD_SDMMC_DEFAULT - config CLOCK_HSE default 25000000 diff --git a/boards/stm32f7508-dk/Kconfig b/boards/stm32f7508-dk/Kconfig index 95f26a1abead..9063c51bf094 100644 --- a/boards/stm32f7508-dk/Kconfig +++ b/boards/stm32f7508-dk/Kconfig @@ -12,34 +12,10 @@ config BOARD_STM32F7508_DK default y select CPU_MODEL_STM32F750N8 - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_DMA - select HAS_PERIPH_ETH - select HAS_PERIPH_FMC - select HAS_PERIPH_FMC_SDRAM - select HAS_PERIPH_FMC_16BIT - select HAS_PERIPH_I2C - select HAS_PERIPH_LTDC - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SDMMC - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAS_PERIPH_USBDEV_HS - select HAS_PERIPH_USBDEV_HS_ULPI - select HAS_TINYUSB_DEVICE - # Clock configuration select BOARD_HAS_HSE select BOARD_HAS_LSE - select HAVE_FT5X06 - select HAVE_MTD_SDMMC_DEFAULT - select HAVE_SAUL_GPIO - select HAVE_STM32_ETH - config CLOCK_HSE default 25000000 diff --git a/boards/stm32f769i-disco/Kconfig b/boards/stm32f769i-disco/Kconfig index 80344783d4dc..0aa59f226c4d 100644 --- a/boards/stm32f769i-disco/Kconfig +++ b/boards/stm32f769i-disco/Kconfig @@ -13,25 +13,10 @@ config BOARD_STM32F769I_DISCO default y select CPU_MODEL_STM32F769NI - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_FMC - select HAS_PERIPH_FMC_SDRAM - select HAS_PERIPH_FMC_32BIT - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - - # Put other features for this board (in alphabetical order) - select HAS_TINYUSB_DEVICE - # Clock configuration select BOARD_HAS_HSE select BOARD_HAS_LSE - select HAVE_SAUL_GPIO - config CLOCK_HSE default 25000000 diff --git a/boards/stm32g0316-disco/Kconfig b/boards/stm32g0316-disco/Kconfig index c0939e9cfa4a..d8b79ac7bd0d 100644 --- a/boards/stm32g0316-disco/Kconfig +++ b/boards/stm32g0316-disco/Kconfig @@ -12,9 +12,3 @@ config BOARD_STM32G0316_DISCO bool default y select CPU_MODEL_STM32G031J6 - - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_GPIO - select HAS_PERIPH_RTT - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART diff --git a/boards/stm32l0538-disco/Kconfig b/boards/stm32l0538-disco/Kconfig index 3250d0f86026..c47c556339e1 100644 --- a/boards/stm32l0538-disco/Kconfig +++ b/boards/stm32l0538-disco/Kconfig @@ -13,12 +13,4 @@ config BOARD_STM32L0538_DISCO default y select CPU_MODEL_STM32L053C8 - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select HAVE_SAUL_GPIO - source "$(RIOTBOARD)/common/stm32/Kconfig" diff --git a/boards/stm32l476g-disco/Kconfig b/boards/stm32l476g-disco/Kconfig index f778cbf56137..acd55a20f13c 100644 --- a/boards/stm32l476g-disco/Kconfig +++ b/boards/stm32l476g-disco/Kconfig @@ -13,20 +13,7 @@ config BOARD_STM32L476G_DISCO default y select CPU_MODEL_STM32L476VG - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - - # Put other features for this board (in alphabetical order) - select HAS_RIOTBOOT - select HAS_TINYUSB_DEVICE - # Clock configuration select BOARD_HAS_LSE - select HAVE_SAUL_GPIO - source "$(RIOTBOARD)/common/stm32/Kconfig" diff --git a/boards/stm32l496g-disco/Kconfig b/boards/stm32l496g-disco/Kconfig index 118af8730b05..78441d8c957f 100644 --- a/boards/stm32l496g-disco/Kconfig +++ b/boards/stm32l496g-disco/Kconfig @@ -13,59 +13,7 @@ config BOARD_STM32L496G_DISCO default y select CPU_MODEL_STM32L496AG - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_DAC - select HAS_PERIPH_DMA - select HAS_PERIPH_FMC - select HAS_PERIPH_FMC_NOR_SRAM - select HAS_PERIPH_FMC_16BIT - select HAS_PERIPH_I2C - select HAS_PERIPH_LPUART - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_PWM - select HAS_PERIPH_SDMMC - select HAS_PERIPH_SPI - select HAS_PERIPH_SPI_STMOD - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_UART_HW_FC - select HAS_PERIPH_USBDEV - - # Put other features for this board (in alphabetical order) - select HAS_ARDUINO_ANALOG - select HAS_ARDUINO_PINS - select HAS_RIOTBOOT - select HAS_TINYUSB_DEVICE - # Clock configuration select BOARD_HAS_LSE - select HAVE_SAUL_GPIO - select HAVE_FT5X06 - select HAVE_MTD_SDMMC_DEFAULT - select HAVE_ST7789 - select HAVE_LCD_PARALLEL_16BIT if MODULE_ST7789 - select HAVE_LCD_PARALLEL_LL_MCU if MODULE_ST7789 - - select MODULE_PERIPH_LPUART if MODULE_PERIPH_UART - select MODULE_PERIPH_UART_HW_FC if MODULE_PERIPH_UART && !MODULE_PERIPH_SPI_STMOD && HAS_PERIPH_UART_HW_FC - source "$(RIOTBOARD)/common/stm32/Kconfig" - -config HAS_PERIPH_SPI_STMOD - bool - help - Indicates that SPI2 can be connected to STMod+/Pmod connector - -config MODULE_PERIPH_SPI_STMOD - bool "SPI2 connected to STMod+/Pmod connector" - depends on HAS_PERIPH_SPI_MOD - default n - help - By default, solder bridges SB6, SB7, SB8 are closed and USART1 is - connected to the Pmod/STMmod+ connector. If these solder bridges are - open and solder bridges SB4, SB5 and SB6 are closed instead, SPI2 is - connected to the STMmod+/Pmod connector. Say yes to use SPI2 with this - board configuration. diff --git a/boards/stm32mp157c-dk2/Kconfig b/boards/stm32mp157c-dk2/Kconfig index 11e0f3d98b23..14ae739bc5e4 100644 --- a/boards/stm32mp157c-dk2/Kconfig +++ b/boards/stm32mp157c-dk2/Kconfig @@ -12,10 +12,6 @@ config BOARD_STM32MP157C_DK2 default y select CPU_MODEL_STM32MP157CAC - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - # Clock configuration select BOARD_HAS_HSE select BOARD_HAS_LSE diff --git a/boards/stm32mp157c-dk2/stm32mp157c-dk2.config b/boards/stm32mp157c-dk2/stm32mp157c-dk2.config deleted file mode 100644 index 028e7039d393..000000000000 --- a/boards/stm32mp157c-dk2/stm32mp157c-dk2.config +++ /dev/null @@ -1 +0,0 @@ -CONFIG_MODULE_MPU_STACK_GUARD=y diff --git a/boards/teensy31/Kconfig b/boards/teensy31/Kconfig index f2c95499c05f..d7fc99d70508 100644 --- a/boards/teensy31/Kconfig +++ b/boards/teensy31/Kconfig @@ -11,8 +11,3 @@ config BOARD_TEENSY31 bool default y select CPU_MODEL_MK20DX256VLH7 - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART diff --git a/boards/telosb/Kconfig b/boards/telosb/Kconfig index 16aac0b846d6..28441bd4624f 100644 --- a/boards/telosb/Kconfig +++ b/boards/telosb/Kconfig @@ -11,10 +11,3 @@ config BOARD_TELOSB bool default y select CPU_MODEL_MSP430F1611 - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select HAVE_CC2420 diff --git a/boards/thingy52/Kconfig b/boards/thingy52/Kconfig index 47ffaa5e6452..ae2cccf452bb 100644 --- a/boards/thingy52/Kconfig +++ b/boards/thingy52/Kconfig @@ -12,12 +12,5 @@ config BOARD_THINGY52 default y select BOARD_COMMON_NRF52 select CPU_MODEL_NRF52832XXAA - select HAS_PERIPH_I2C - select HAS_PERIPH_UART - select HAS_VDD_LC_FILTER_REG1 - - select HAVE_LPS22HB - select HAVE_LIS2DH12_I2C - select HAVE_HTS221 source "$(RIOTBOARD)/common/nrf52/Kconfig" diff --git a/boards/thingy52/Makefile.features b/boards/thingy52/Makefile.features index 0ec83cf86112..3ac7472acb80 100644 --- a/boards/thingy52/Makefile.features +++ b/boards/thingy52/Makefile.features @@ -5,10 +5,4 @@ FEATURES_PROVIDED += periph_i2c FEATURES_PROVIDED += periph_uart FEATURES_PROVIDED += vdd_lc_filter_reg1 -# This configuration enables modules that are only available when using Kconfig -# module modelling -ifeq (1, $(TEST_KCONFIG)) - KCONFIG_BOARD_CONFIG += $(BOARDDIR)/thingy52.config -endif - include $(RIOTBOARD)/common/nrf52/Makefile.features diff --git a/boards/thingy52/thingy52.config b/boards/thingy52/thingy52.config deleted file mode 100644 index 9136c90eb64a..000000000000 --- a/boards/thingy52/thingy52.config +++ /dev/null @@ -1 +0,0 @@ -CONFIG_MODULE_STDIO_RTT=y diff --git a/boards/ublox-c030-u201/Kconfig b/boards/ublox-c030-u201/Kconfig index 2e1fd0ddd7e9..3c8225946634 100644 --- a/boards/ublox-c030-u201/Kconfig +++ b/boards/ublox-c030-u201/Kconfig @@ -13,23 +13,10 @@ config BOARD_UBLOX_C030_U201 default y select CPU_MODEL_STM32F437VG - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_DMA - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_UART_HW_FC - # Clock configuration select BOARD_HAS_HSE select BOARD_HAS_LSE - select HAVE_SAUL_GPIO - select MODULE_PERIPH_UART_HW_FC if HAS_PERIPH_UART_HW_FC && MODULE_PERIPH_UART - config CLOCK_HSE default 12000000 diff --git a/boards/usb-kw41z/Kconfig b/boards/usb-kw41z/Kconfig index 2a42370ff5cf..7acc6685095a 100644 --- a/boards/usb-kw41z/Kconfig +++ b/boards/usb-kw41z/Kconfig @@ -11,7 +11,5 @@ config BOARD_USB_KW41Z bool default y select BOARD_COMMON_KW41Z - select HAS_PERIPH_SPI - select MODULE_BOARDS_COMMON_KW41Z if TEST_KCONFIG source "$(RIOTBOARD)/common/kw41z/Kconfig" diff --git a/boards/waspmote-pro/Kconfig b/boards/waspmote-pro/Kconfig index 29607765243d..b4ebabd7ad4f 100644 --- a/boards/waspmote-pro/Kconfig +++ b/boards/waspmote-pro/Kconfig @@ -11,15 +11,5 @@ config BOARD_WASPMOTE_PRO bool default y select CPU_MODEL_ATMEGA1281 - select HAS_ARDUINO_ANALOG - select HAS_ARDUINO_PINS - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select HAVE_MTD_SDCARD_DEFAULT - select MODULE_FATFS_VFS if MODULE_VFS_DEFAULT source "$(RIOTKCONFIG)/Kconfig.ztimer_only" diff --git a/boards/waveshare-nrf52840-eval-kit/Kconfig b/boards/waveshare-nrf52840-eval-kit/Kconfig index a238d61c83ae..44418b40efb2 100644 --- a/boards/waveshare-nrf52840-eval-kit/Kconfig +++ b/boards/waveshare-nrf52840-eval-kit/Kconfig @@ -12,20 +12,5 @@ config BOARD_WAVESHARE_NRF52840_EVAL_KIT default y select BOARD_COMMON_NRF52 select CPU_MODEL_NRF52840XXAA - select HAS_ARDUINO_ANALOG - select HAS_ARDUINO_PINS - select HAS_ARDUINO_PWM - select HAS_ARDUINO_SHIELD_UNO - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAS_TINYUSB_DEVICE - - select HAVE_SAUL_GPIO - - select HAVE_MTD_SDCARD_DEFAULT - select MODULE_FATFS_VFS if MODULE_VFS_DEFAULT source "$(RIOTBOARD)/common/nrf52/Kconfig" diff --git a/boards/weact-f401cc/Kconfig b/boards/weact-f401cc/Kconfig index c7cd52c8b3bb..0190a953bddb 100644 --- a/boards/weact-f401cc/Kconfig +++ b/boards/weact-f401cc/Kconfig @@ -13,6 +13,5 @@ config BOARD_WEACT_F401CC default y select BOARD_COMMON_WEACT_F4X1CX select CPU_MODEL_STM32F401CC - select MODULE_BOARDS_COMMON_WEACT-F4X1CX if TEST_KCONFIG source "$(RIOTBOARD)/common/weact-f4x1cx/Kconfig" diff --git a/boards/weact-f401ce/Kconfig b/boards/weact-f401ce/Kconfig index 8fb8c6d94ce4..78fed3a79d1e 100644 --- a/boards/weact-f401ce/Kconfig +++ b/boards/weact-f401ce/Kconfig @@ -13,6 +13,5 @@ config BOARD_WEACT_F401CE default y select BOARD_COMMON_WEACT_F4X1CX select CPU_MODEL_STM32F401CE - select MODULE_BOARDS_COMMON_WEACT-F4X1CX if TEST_KCONFIG source "$(RIOTBOARD)/common/weact-f4x1cx/Kconfig" diff --git a/boards/weact-f411ce/Kconfig b/boards/weact-f411ce/Kconfig index e5fc0f72e616..10b7580feb7e 100644 --- a/boards/weact-f411ce/Kconfig +++ b/boards/weact-f411ce/Kconfig @@ -13,6 +13,5 @@ config BOARD_WEACT_F411CE default y select BOARD_COMMON_WEACT_F4X1CX select CPU_MODEL_STM32F411CE - select MODULE_BOARDS_COMMON_WEACT-F4X1CX if TEST_KCONFIG source "$(RIOTBOARD)/common/weact-f4x1cx/Kconfig" diff --git a/boards/wemos-zero/Kconfig b/boards/wemos-zero/Kconfig index fa9bf5fb6a97..de7164a5fab4 100644 --- a/boards/wemos-zero/Kconfig +++ b/boards/wemos-zero/Kconfig @@ -12,7 +12,5 @@ config BOARD_WEMOS_ZERO bool default y select BOARD_COMMON_ARDUINO_ZERO - select HAS_HIGHLEVEL_STDIO source "$(RIOTBOARD)/common/arduino-zero/Kconfig" -source "$(RIOTBOARD)/common/samdx1-arduino-bootloader/Kconfig" diff --git a/boards/xg23-pk6068a/Kconfig b/boards/xg23-pk6068a/Kconfig index 2a0d98a995a5..392af59e9611 100644 --- a/boards/xg23-pk6068a/Kconfig +++ b/boards/xg23-pk6068a/Kconfig @@ -11,14 +11,3 @@ config BOARD_XG23_PK6068A bool default y select CPU_MODEL_EFR32ZG23A020F512GM48 - - # Put defined MCU peripherals here (in alphabetical order) - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - # Put other features for this board (in alphabetical order) - select HAVE_SAUL_GPIO - select HAVE_ZTIMER_PERIPH_LPTIMER diff --git a/boards/yarm/Kconfig b/boards/yarm/Kconfig index 050a6f57ec8a..b34aed590506 100644 --- a/boards/yarm/Kconfig +++ b/boards/yarm/Kconfig @@ -11,16 +11,3 @@ config BOARD_YARM bool default y select CPU_MODEL_SAML21J18B - select HAS_HIGHLEVEL_STDIO - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAS_RIOTBOOT - -config FORCE_USB_STDIO - default y diff --git a/boards/yunjia-nrf51822/Kconfig b/boards/yunjia-nrf51822/Kconfig index 9ec9f5fe00b6..ceab6849ce21 100644 --- a/boards/yunjia-nrf51822/Kconfig +++ b/boards/yunjia-nrf51822/Kconfig @@ -12,10 +12,5 @@ config BOARD_YUNJIA_NRF51822 default y select BOARD_COMMON_NRF51 select CPU_MODEL_NRF51X22XXAA - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_SPI - select HAS_PERIPH_UART - select MODULE_BOARDS_COMMON_NRF51 if TEST_KCONFIG source "$(RIOTBOARD)/common/nrf51/Kconfig" diff --git a/boards/z1/Kconfig b/boards/z1/Kconfig index daf061caea42..a822ab8e01b6 100644 --- a/boards/z1/Kconfig +++ b/boards/z1/Kconfig @@ -11,10 +11,3 @@ config BOARD_Z1 bool default y select CPU_MODEL_MSP430F2617 - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select HAVE_CC2420 diff --git a/boards/z1/include/periph_conf.h b/boards/z1/include/periph_conf.h index 47230821604f..e10d0c9795fd 100644 --- a/boards/z1/include/periph_conf.h +++ b/boards/z1/include/periph_conf.h @@ -48,36 +48,28 @@ static const msp430_clock_params_t clock_params = { * @name UART configuration * @{ */ -#define UART_NUMOF (1U) +static const uart_conf_t uart_config[] = { + { + .uart = &usci_a0_as_uart, + }, +}; + +#define UART0_RX_ISR USCIAB0RX_VECTOR /**< RX IRQ vector of UART 0 */ -#define UART_BASE (&USCI_A0) -#define UART_IE (IE2) -#define UART_IF (IFG2) -#define UART_IE_RX_BIT (1 << 0) -#define UART_IE_TX_BIT (1 << 1) -#define UART_RX_PORT (&PORT_3) -#define UART_RX_PIN (1 << 5) -#define UART_TX_PORT (&PORT_3) -#define UART_TX_PIN (1 << 4) -#define UART_RX_ISR (USCIAB0RX_VECTOR) -#define UART_TX_ISR (USCIAB0TX_VECTOR) +#define UART_NUMOF ARRAY_SIZE(uart_config) /** @} */ /** * @name SPI configuration * @{ */ -#define SPI_NUMOF (1U) +static const spi_conf_t spi_config[] = { + { + .spi = &usci_b0_as_spi, + }, +}; -/* SPI configuration */ -#define SPI_BASE (&USCI_B0) -#define SPI_IE (IE2) -#define SPI_IF (IFG2) -#define SPI_IE_RX_BIT (1 << 2) -#define SPI_IE_TX_BIT (1 << 3) -#define SPI_PIN_MISO GPIO_PIN(P3, 2) -#define SPI_PIN_MOSI GPIO_PIN(P3, 1) -#define SPI_PIN_CLK GPIO_PIN(P3, 3) +#define SPI_NUMOF ARRAY_SIZE(spi_config) /** @} */ #ifdef __cplusplus diff --git a/boards/zigduino/Kconfig b/boards/zigduino/Kconfig index 3b4cae7986dc..e1bb9c70927b 100644 --- a/boards/zigduino/Kconfig +++ b/boards/zigduino/Kconfig @@ -12,16 +12,3 @@ config BOARD_ZIGDUINO bool default y select CPU_MODEL_ATMEGA128RFA1 - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - - select MODULE_BOARDS_COMMON_ATMEGA if TEST_KCONFIG - select HAVE_SAUL_ADC - select HAVE_SAUL_GPIO - -source "$(RIOTBOARD)/common/atmega/Kconfig" diff --git a/core/Kconfig b/core/Kconfig index f8682c2daaa8..754b037d02cf 100644 --- a/core/Kconfig +++ b/core/Kconfig @@ -5,75 +5,7 @@ # directory for more details. # -menuconfig MODULE_CORE - bool "RIOT Core" - default y - depends on TEST_KCONFIG - depends on MODULE_CORE_LIB - help - RIOT's core module. Only change this if you know what you are doing. If - unsure, say Y. - -if MODULE_CORE - -config MODULE_CORE_IDLE_THREAD - bool - prompt "Use Idle thread" if HAS_NO_IDLE_THREAD - default y if !HAS_NO_IDLE_THREAD - help - Select y to include the Idle thread. This is mandatory for some CPUs. - -config MODULE_CORE_INIT - bool "Kernel initialization module" - default y - -config MODULE_CORE_MBOX - bool "Kernel message box module" - -config MODULE_CORE_MSG - bool "Kernel messaging module" - default y - -config MODULE_CORE_MSG_BUS - bool "Messaging Bus module" - help - Messaging Bus API for inter process message broadcast. - -config MODULE_CORE_MUTEX_DEBUG - bool "Aid debugging deadlocks by printing on whom mutex_lock() is waiting" - -config MODULE_CORE_MUTEX_PRIORITY_INHERITANCE - bool "Use priority inheritance to mitigate priority inversion for mutexes" - -config MODULE_CORE_PANIC - bool "Kernel crash handling module" - default y - -config MODULE_CORE_THREAD - bool "Support for Threads" - default y - -config MODULE_CORE_THREAD_FLAGS - bool "Thread flags" - -config MODULE_SCHED_CB - bool "Callback support on the scheduler" - -endif # MODULE_CORE - -config MODULE_CORE_LIB - bool - default y - help - Select y to to include core libs - -menuconfig KCONFIG_USEMODULE_CORE - bool "Configure RIOT Core" - depends on USEMODULE_CORE - help - Configure RIOT Core using Kconfig. - -if KCONFIG_USEMODULE_CORE +menu "RIOT Core" config THREAD_NAMES bool "Store thread name strings" @@ -81,4 +13,4 @@ config THREAD_NAMES By default, thread names are not stored if DEVELHELP is not used. Use this parameter to store them for non-devel builds. -endif # KCONFIG_USEMODULE_CORE +endmenu # RIOT Core diff --git a/core/lib/init.c b/core/lib/init.c index e21f6bff8436..75abf23dd6b7 100644 --- a/core/lib/init.c +++ b/core/lib/init.c @@ -93,7 +93,9 @@ static void *idle_thread(void *arg) (void)arg; while (1) { - pm_set_lowest(); + if (IS_USED(MODULE_PERIPH_PM)) { + pm_set_lowest(); + } } return NULL; diff --git a/cpu/Kconfig b/cpu/Kconfig index 7e1f9aa56b7d..5fa950d20941 100644 --- a/cpu/Kconfig +++ b/cpu/Kconfig @@ -51,16 +51,3 @@ config CPU_ARCH string help Architecture of the currently selected CPU. - -config MODULE_CPU - bool - default y - depends on TEST_KCONFIG - help - Module which holds all CPU-specific files. - -config MODULE_PERIPH - bool - depends on TEST_KCONFIG - help - CPU peripheral implementations module. diff --git a/cpu/arm7_common/Kconfig b/cpu/arm7_common/Kconfig index e265679b5a0b..3b7bf79e2679 100644 --- a/cpu/arm7_common/Kconfig +++ b/cpu/arm7_common/Kconfig @@ -7,29 +7,10 @@ config CPU_ARCH_ARMV4T bool - select HAS_ARCH_32BIT - select HAS_ARCH_ARM - select HAS_CPP - select HAS_LIBSTDCPP - select MODULE_MALLOC_THREAD_SAFE if TEST_KCONFIG - select MODULE_PERIPH if TEST_KCONFIG - imply MODULE_NEWLIB_NANO config CPU_CORE_ARM7TDMI_S bool select CPU_ARCH_ARMV4T - select HAS_ARCH_ARM7 - select HAS_PERIPH_PM - select HAS_PUF_SRAM - select HAS_SSP - -## Declaration of specific features -config HAS_ARCH_ARM7 - bool - select HAS_NEWLIB - select HAS_PICOLIBC - help - Indicates that the core is part of the ARM7 group of cores. ## Common CPU symbols config CPU_ARCH @@ -37,19 +18,3 @@ config CPU_ARCH config CPU_CORE default "arm7tdmi_s" if CPU_CORE_ARM7TDMI_S - -config MODULE_ARM7_COMMON - bool - depends on TEST_KCONFIG - depends on MODULE_NEWLIB || MODULE_PICOLIBC - depends on HAS_ARCH_ARM7 - default y - help - Common arm7 code. - -rsource "periph/Kconfig" - -choice LIBC_IMPLEMENTATION - default MODULE_NEWLIB - default MODULE_PICOLIBC -endchoice diff --git a/cpu/arm7_common/periph/Kconfig b/cpu/arm7_common/periph/Kconfig deleted file mode 100644 index ccb181ff5604..000000000000 --- a/cpu/arm7_common/periph/Kconfig +++ /dev/null @@ -1,14 +0,0 @@ -# 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_ARM7_COMMON_PERIPH - bool - depends on TEST_KCONFIG - depends on HAS_ARCH_ARM7 - default y - help - Common arm7 peripheral code. diff --git a/cpu/atmega1281/Kconfig b/cpu/atmega1281/Kconfig index 0c35859439f3..a6d8f7f6871c 100644 --- a/cpu/atmega1281/Kconfig +++ b/cpu/atmega1281/Kconfig @@ -9,14 +9,6 @@ config CPU_MODEL_ATMEGA1281 bool select CPU_FAM_ATMEGA128 - select HAS_ATMEGA_PCINT1 - select HAS_CPU_ATMEGA1281 - -## Definition of specific features -config HAS_CPU_ATMEGA1281 - bool - help - Indicates that a 'atmega1281' cpu is being used. ## Common CPU symbols config CPU_MODEL diff --git a/cpu/atmega1284p/Kconfig b/cpu/atmega1284p/Kconfig index 657397c11fcd..c87724f5c67a 100644 --- a/cpu/atmega1284p/Kconfig +++ b/cpu/atmega1284p/Kconfig @@ -8,16 +8,6 @@ config CPU_MODEL_ATMEGA1284P bool select CPU_FAM_ATMEGA128 - select HAS_ATMEGA_PCINT1 - select HAS_ATMEGA_PCINT2 - select HAS_ATMEGA_PCINT3 - select HAS_CPU_ATMEGA1284P - -## Definition of specific features -config HAS_CPU_ATMEGA1284P - bool - help - Indicates that a 'atmega1284p' cpu is being used. ## Common CPU symbols config CPU_MODEL diff --git a/cpu/atmega128rfa1/Kconfig b/cpu/atmega128rfa1/Kconfig index ef5f54399ad8..695b4855ccce 100644 --- a/cpu/atmega128rfa1/Kconfig +++ b/cpu/atmega128rfa1/Kconfig @@ -9,15 +9,6 @@ config CPU_MODEL_ATMEGA128RFA1 bool select CPU_FAM_ATMEGA128 - select HAS_CPU_ATMEGA128RFA1 - select HAS_ATMEGA_PCINT1 - select HAVE_AT86RFA1 - -## Definition of specific features -config HAS_CPU_ATMEGA128RFA1 - bool - help - Indicates that a 'atmega128rfa1' cpu is being used. ## Common CPU symbols config CPU_MODEL diff --git a/cpu/atmega2560/Kconfig b/cpu/atmega2560/Kconfig index 0dd4983e068e..acb3182b09ba 100644 --- a/cpu/atmega2560/Kconfig +++ b/cpu/atmega2560/Kconfig @@ -12,15 +12,6 @@ config CPU_FAM_ATMEGA256 config CPU_MODEL_ATMEGA2560 bool select CPU_FAM_ATMEGA256 - select HAS_ATMEGA_PCINT1 - select HAS_ATMEGA_PCINT2 - select HAS_CPU_ATMEGA2560 - -## Definition of specific features -config HAS_CPU_ATMEGA2560 - bool - help - Indicates that a 'atmega2560' cpu is being used. ## Common CPU symbols config CPU_FAM diff --git a/cpu/atmega256rfr2/Kconfig b/cpu/atmega256rfr2/Kconfig index 2f1ebe61d116..73800165a048 100644 --- a/cpu/atmega256rfr2/Kconfig +++ b/cpu/atmega256rfr2/Kconfig @@ -13,15 +13,6 @@ config CPU_FAM_ATMEGA256RF config CPU_MODEL_ATMEGA256RFR2 bool select CPU_FAM_ATMEGA256RF - select HAS_ATMEGA_PCINT1 - select HAS_CPU_ATMEGA256RFR2 - select HAVE_AT86RFR2 - -## Definition of specific features -config HAS_CPU_ATMEGA256RFR2 - bool - help - Indicates that a 'atmega256rfr2' cpu is being used. ## Common CPU symbols config CPU_FAM diff --git a/cpu/atmega328p/Kconfig b/cpu/atmega328p/Kconfig index c8e4bdd31a3f..63928cdf24c4 100644 --- a/cpu/atmega328p/Kconfig +++ b/cpu/atmega328p/Kconfig @@ -8,20 +8,11 @@ config CPU_FAM_ATMEGA328 bool select CPU_COMMON_ATMEGA - select HAS_ATMEGA_PCINT1 - select HAS_ATMEGA_PCINT2 ## CPU Models config CPU_MODEL_ATMEGA328P bool select CPU_FAM_ATMEGA328 - select HAS_CPU_ATMEGA328P - -## Definition of specific features -config HAS_CPU_ATMEGA328P - bool - help - Indicates that a 'atmega328p' cpu is being used. ## Common CPU symbols config CPU_FAM diff --git a/cpu/atmega32u4/Kconfig b/cpu/atmega32u4/Kconfig index a516f760a7a2..48cbe91afe63 100644 --- a/cpu/atmega32u4/Kconfig +++ b/cpu/atmega32u4/Kconfig @@ -12,13 +12,6 @@ config CPU_FAM_ATMEGA32 config CPU_MODEL_ATMEGA32U4 bool select CPU_FAM_ATMEGA32 - select HAS_CPU_ATMEGA32U4 - -## Definition of specific features -config HAS_CPU_ATMEGA32U4 - bool - help - Indicates that a 'atmega32u4' cpu is being used. ## Common CPU symbols config CPU_FAM diff --git a/cpu/atmega8/Kconfig b/cpu/atmega8/Kconfig index 43027b27d30b..14d2640e273b 100644 --- a/cpu/atmega8/Kconfig +++ b/cpu/atmega8/Kconfig @@ -13,13 +13,6 @@ config CPU_FAM_ATMEGA8 config CPU_MODEL_ATMEGA8 bool select CPU_FAM_ATMEGA8 - select HAS_CPU_ATMEGA8 - -## Definition of specific features -config HAS_CPU_ATMEGA8 - bool - help - Indicates that an 'atmega8' cpu is being used. ## Common CPU symbols config CPU_FAM diff --git a/cpu/atmega_common/Kconfig b/cpu/atmega_common/Kconfig index efc2f9bebabe..85de1e8671d8 100644 --- a/cpu/atmega_common/Kconfig +++ b/cpu/atmega_common/Kconfig @@ -5,32 +5,8 @@ # directory for more details. # -config HAS_CPU_CORE_ATMEGA - bool - select CPU_ARCH_AVR8 - select HAS_CPP - config CPU_COMMON_ATMEGA bool - select HAS_CPU_CORE_ATMEGA - select HAS_ATMEGA_PCINT0 - select HAS_DBGPIN if !CPU_FAM_ATMEGA8 - select HAS_PERIPH_CPUID if !CPU_FAM_ATMEGA8 - select HAS_PERIPH_EEPROM - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_GPIO_LL - select HAS_PERIPH_GPIO_LL_IRQ - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_LOW - select HAS_PERIPH_GPIO_LL_IRQ_UNMASK - select HAS_PERIPH_PM - select HAS_PERIPH_RTC_MS - select HAS_PERIPH_RTT_OVERFLOW - select HAS_PERIPH_RTT_SET_COUNTER - select HAS_PERIPH_TIMER_PERIODIC - select HAS_PERIPH_TIMER_QUERY_FREQS - select HAS_PERIPH_WDT - select HAS_PUF_SRAM # Define ATMega128 family here as it is used by different CPUs config CPU_FAM_ATMEGA128 @@ -42,17 +18,4 @@ config CPU_FAM_ATMEGA128 config CPU_FAM default "atmega128" if CPU_FAM_ATMEGA128 -config ERROR_MODULES_CONFLICT - default "On ATmega, the RTC and RTT use to the same hardware timer." if MODULE_PERIPH_RTC && MODULE_PERIPH_RTT - depends on CPU_COMMON_ATMEGA - -config MODULE_ATMEGA_COMMON - bool - depends on CPU_COMMON_ATMEGA - depends on TEST_KCONFIG - default y - help - ATmega common code. - -rsource "periph/Kconfig" source "$(RIOTCPU)/avr8_common/Kconfig" diff --git a/cpu/atmega_common/periph/Kconfig b/cpu/atmega_common/periph/Kconfig deleted file mode 100644 index bc4a751f5cfa..000000000000 --- a/cpu/atmega_common/periph/Kconfig +++ /dev/null @@ -1,71 +0,0 @@ -# Copyright (c) 2021 HAW Hamburg -# -# This file is subject to the terms and conditions of the GNU Lesser -# General Public License v2.1. See the file LICENSE in the top level -# directory for more details. -# - -if TEST_KCONFIG && CPU_COMMON_ATMEGA - -config MODULE_ATMEGA_COMMON_PERIPH - bool - default y - help - Common ATmega peripheral drivers. - -config MODULE_ATMEGA_PCINT - bool - depends on HAS_ATMEGA_PCINT0 || HAS_ATMEGA_PCINT1 || HAS_ATMEGA_PCINT2 || HAS_ATMEGA_PCINT3 - help - Say y to enable all the present Pin Change Interrupt banks. - -config MODULE_ATMEGA_PCINT0 - bool - depends on HAS_ATMEGA_PCINT0 - default MODULE_ATMEGA_PCINT - help - Say y to enable PIC bank 0. - -config MODULE_ATMEGA_PCINT1 - bool - depends on HAS_ATMEGA_PCINT1 - default MODULE_ATMEGA_PCINT - help - Say y to enable PIC bank 1. - -config MODULE_ATMEGA_PCINT2 - bool - depends on HAS_ATMEGA_PCINT2 - default MODULE_ATMEGA_PCINT - help - Say y to enable PIC bank 2. - -config MODULE_ATMEGA_PCINT3 - bool - depends on HAS_ATMEGA_PCINT3 - default MODULE_ATMEGA_PCINT - help - Say y to enable PIC bank 3. - -endif # TEST_KCONFIG && CPU_COMMON_ATMEGA - -## Declaration of specific features -config HAS_ATMEGA_PCINT0 - bool - help - Indicates that the Pin Change Interrupt bank 0 is present. - -config HAS_ATMEGA_PCINT1 - bool - help - Indicates that the Pin Change Interrupt bank 1 is present. - -config HAS_ATMEGA_PCINT2 - bool - help - Indicates that the Pin Change Interrupt bank 2 is present. - -config HAS_ATMEGA_PCINT3 - bool - help - Indicates that the Pin Change Interrupt bank 3 is present. diff --git a/cpu/atxmega/Kconfig b/cpu/atxmega/Kconfig index 19495de1d05b..333b1bdaf33e 100644 --- a/cpu/atxmega/Kconfig +++ b/cpu/atxmega/Kconfig @@ -6,26 +6,12 @@ # directory for more details. # -config HAS_CPU_CORE_ATXMEGA - bool - select CPU_ARCH_AVR8 - select HAS_CPU_ATXMEGA - select HAS_CPP - config CPU_COMMON_ATXMEGA bool - select HAS_CPU_CORE_ATXMEGA - select HAS_PERIPH_CPUID - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_NVM - select HAS_PERIPH_TIMER - select HAS_PERIPH_TIMER_PERIODIC config CPU_CORE_ATXMEGA_A1 bool select CPU_COMMON_ATXMEGA - select HAS_ATXMEGA_EBI config CPU_CORE_ATXMEGA_A3 bool @@ -72,15 +58,4 @@ source "$(RIOTCPU)/atxmega/Kconfig.XMEGAC" source "$(RIOTCPU)/atxmega/Kconfig.XMEGAD" source "$(RIOTCPU)/atxmega/Kconfig.XMEGAE" -## Declaration of specific features -config HAS_CPU_ATXMEGA - bool - -config HAS_PERIPH_NVM - bool - help - Indicates that the Non Volatile Memory controller is present. - -rsource "ebi/Kconfig" -rsource "periph/Kconfig" source "$(RIOTCPU)/avr8_common/Kconfig" diff --git a/cpu/atxmega/ebi/Kconfig b/cpu/atxmega/ebi/Kconfig deleted file mode 100644 index db39d06cdab2..000000000000 --- a/cpu/atxmega/ebi/Kconfig +++ /dev/null @@ -1,20 +0,0 @@ -# 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_ATXMEGA_EBI - bool - depends on TEST_KCONFIG - depends on CPU_COMMON_ATXMEGA - depends on HAS_ATXMEGA_EBI - default y if CPU_CORE_ATXMEGA_A1 - help - Low-level EBI (External BUS Interface) driver. - -config HAS_ATXMEGA_EBI - bool - help - Indicates that the External Bus Interface is present. diff --git a/cpu/atxmega/periph/Kconfig b/cpu/atxmega/periph/Kconfig deleted file mode 100644 index 8b6a188e2d72..000000000000 --- a/cpu/atxmega/periph/Kconfig +++ /dev/null @@ -1,22 +0,0 @@ -# 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_ATXMEGA_PERIPH - bool - depends on TEST_KCONFIG - depends on CPU_COMMON_ATXMEGA - default y - help - Common ATXmega peripheral drivers. - -config MODULE_PERIPH_NVM - bool - depends on MODULE_ATXMEGA_PERIPH - depends on HAS_PERIPH_NVM - default y if MODULE_PERIPH_CPUID - help - Internal ATXmega Non Volatile Memory (NVM) driver. diff --git a/cpu/avr8_common/Kconfig b/cpu/avr8_common/Kconfig index 7bd1c5f4672e..6f4c3ce67985 100644 --- a/cpu/avr8_common/Kconfig +++ b/cpu/avr8_common/Kconfig @@ -8,18 +8,6 @@ config CPU_ARCH_AVR8 bool - select HAS_ARCH_8BIT - select HAS_ARCH_AVR8 - select HAS_PERIPH_PM - - select MODULE_AVR8_COMMON_PERIPH if TEST_KCONFIG - select MODULE_PM_LAYERED if TEST_KCONFIG - select MODULE_MALLOC_THREAD_SAFE if TEST_KCONFIG - select MODULE_TINY_STRERROR_AS_STRERROR if TEST_KCONFIG - # static C++ constructors need guards for thread safe initialization - select MODULE_CXX_CTOR_GUARDS if MODULE_CPP - # new and delete operators needed - select MODULE_CPP_NEW_DELETE if MODULE_CPP ## Common CPU symbols config CPU_ARCH @@ -27,34 +15,3 @@ config CPU_ARCH config CPU_CORE default "avr" if CPU_CORE_AVR - -## Declaration of specific features -config HAS_ARCH_AVR8 - bool - help - Indicates that the current architecture is Atmel AVR8. - -if CPU_ARCH_AVR8 - -config MODULE_AVR8_COMMON - bool - depends on TEST_KCONFIG - default y - help - AVR-8 common code. - - config MODULE_AVR8_COMMON_PERIPH - bool - depends on TEST_KCONFIG - default y - help - Common peripheral drivers used across different AVR-8 MCU families. - -# the atmel port uses stdio_uart by default -choice STDIO_IMPLEMENTATION - default MODULE_STDIO_UART -endchoice - -endif # CPU_ARCH_AVR8 - -rsource "avr_libc_extra/Kconfig" diff --git a/cpu/avr8_common/avr8_common.config b/cpu/avr8_common/avr8_common.config deleted file mode 100644 index 2bc22c6261f4..000000000000 --- a/cpu/avr8_common/avr8_common.config +++ /dev/null @@ -1,2 +0,0 @@ -# All AVR-8 based CPUs provide PM -CONFIG_MODULE_PM_LAYERED=y diff --git a/cpu/avr8_common/avr_libc_extra/Kconfig b/cpu/avr8_common/avr_libc_extra/Kconfig deleted file mode 100644 index 33c7ebe05ac7..000000000000 --- a/cpu/avr8_common/avr_libc_extra/Kconfig +++ /dev/null @@ -1,14 +0,0 @@ -# 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_AVR_LIBC_EXTRA - bool - depends on TEST_KCONFIG - depends on CPU_ARCH_AVR8 - default y - help - AVR libc RIOT-specific support code. diff --git a/cpu/avr8_common/periph/Kconfig b/cpu/avr8_common/periph/Kconfig deleted file mode 100644 index 17750d59e9b6..000000000000 --- a/cpu/avr8_common/periph/Kconfig +++ /dev/null @@ -1,7 +0,0 @@ -config MODULE_AVR8_COMMON_PERIPH - bool - depends on TEST_KCONFIG - depends on CPU_COMMON_ATXMEGA - default y - help - AVR8 common peripheral drivers. diff --git a/cpu/cc2538/Kconfig b/cpu/cc2538/Kconfig index 88972540ebdd..0ea1f1c72a15 100644 --- a/cpu/cc2538/Kconfig +++ b/cpu/cc2538/Kconfig @@ -8,21 +8,6 @@ config CPU_FAM_CC2538 bool select CPU_CORE_CORTEX_M3 - select HAS_CORTEXM_MPU - select HAS_CPU_CC2538 - select HAS_PERIPH_CPUID - select HAS_PERIPH_FLASHPAGE - select HAS_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE - select HAS_PERIPH_FLASHPAGE_PAGEWISE - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_HWRNG - select HAS_PERIPH_RTT_SET_COUNTER - select HAS_PERIPH_UART_MODECFG - select HAS_PERIPH_UART_NONBLOCKING - select HAS_PERIPH_RTT_OVERFLOW - select HAS_PERIPH_WDT - select HAVE_CC2538_RF ## CPU Models config CPU_MODEL_CC2538NF53 @@ -33,12 +18,6 @@ config CPU_MODEL_CC2538SF53 bool select CPU_FAM_CC2538 -## Definition of specific features -config HAS_CPU_CC2538 - bool - help - Indicates that a 'cc2538' cpu is being used. - ## Common CPU symbols config CPU_FAM default "cc2538" if CPU_FAM_CC2538 @@ -50,9 +29,4 @@ config CPU_MODEL config CPU default "cc2538" if CPU_FAM_CC2538 -config MODULE_PERIPH_UART_NONBLOCKING - bool - depends on HAS_PERIPH_UART_NONBLOCKING - select MODULE_TSRB - source "$(RIOTCPU)/cortexm_common/Kconfig" diff --git a/cpu/cc2538/Makefile.features b/cpu/cc2538/Makefile.features index e19f99cf6493..976e8c4e8a3e 100644 --- a/cpu/cc2538/Makefile.features +++ b/cpu/cc2538/Makefile.features @@ -16,9 +16,3 @@ FEATURES_PROVIDED += periph_wdt FEATURES_PROVIDED += cortexm_mpu include $(RIOTCPU)/cortexm_common/Makefile.features - -# This configuration enables modules that are only available when using Kconfig -# module modelling -ifeq (1, $(TEST_KCONFIG)) - KCONFIG_CPU_CONFIG += $(RIOTCPU)/cc2538/cc2538.config -endif diff --git a/cpu/cc2538/cc2538.config b/cpu/cc2538/cc2538.config deleted file mode 100644 index 811b1f37127b..000000000000 --- a/cpu/cc2538/cc2538.config +++ /dev/null @@ -1 +0,0 @@ -CONFIG_MODULE_PM_LAYERED=y diff --git a/cpu/cc2538/radio/Kconfig b/cpu/cc2538/radio/Kconfig deleted file mode 100644 index 98545bd23469..000000000000 --- a/cpu/cc2538/radio/Kconfig +++ /dev/null @@ -1,32 +0,0 @@ -# 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_CC2538_RF - bool - prompt "CC2538 IEEE 802.15.4 radio" if !(MODULE_NETDEV_DEFAULT && HAVE_CC2538_RF) - default (MODULE_NETDEV_DEFAULT && HAVE_CC2538_RF) - depends on TEST_KCONFIG - depends on CPU_FAM_CC2538 - select HAVE_IEEE802154_RADIO_HAL_INTERFACE - -if MODULE_CC2538_RF - -config MODULE_CC2538_RF_OBS_SIG - bool "Output observation signals" - help - Say y to output different observation signals from the RF Core - to GPIO pins. These signals can be useful for debugging of - low-level protocols or control of external PA, LNA, or switches. - - For more information check section 9.2.4 of the CC2538 User's Manual. - -endif # MODULE_CC2538_RF - -config HAVE_CC2538_RF - bool - help - Indicates that a cc2538 radio is present. diff --git a/cpu/cc26x0_cc13x0/Kconfig b/cpu/cc26x0_cc13x0/Kconfig index 94d3b33b605b..9e0c69f5f9e2 100644 --- a/cpu/cc26x0_cc13x0/Kconfig +++ b/cpu/cc26x0_cc13x0/Kconfig @@ -9,18 +9,11 @@ config CPU_FAM_CC26X0 bool select CPU_CORE_CORTEX_M3 select CPU_COMMON_CC26XX_CC13XX - select HAS_CPU_CC26X0_CC13X0 - - select MODULE_CC26XX_CC13XX if TEST_KCONFIG - select MODULE_CC26X0_DRIVERLIB if TEST_KCONFIG config CPU_FAM_CC13X0 bool select CPU_CORE_CORTEX_M3 select CPU_COMMON_CC26XX_CC13XX - select HAS_CPU_CC26X0_CC13X0 - - select MODULE_CC26XX_CC13XX if TEST_KCONFIG ## CPU Models config CPU_MODEL_CC26X0F128 @@ -31,12 +24,6 @@ config CPU_MODEL_CC13X0F128 bool select CPU_FAM_CC13X0 -## Definition of specific features -config HAS_CPU_CC26X0_CC13X0 - bool - help - Indicates that a 'cc26x0_cc13x0' cpu is being used. - ## Common CPU symbols config CPU_FAM default "cc26x0" if CPU_FAM_CC26X0 @@ -50,4 +37,3 @@ config CPU default "cc26x0_cc13x0" source "$(RIOTCPU)/cc26xx_cc13xx/Kconfig" -rsource "vendor/driverlib/Kconfig" diff --git a/cpu/cc26x0_cc13x0/vendor/driverlib/Kconfig b/cpu/cc26x0_cc13x0/vendor/driverlib/Kconfig deleted file mode 100644 index 200a4429024e..000000000000 --- a/cpu/cc26x0_cc13x0/vendor/driverlib/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# 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_CC26X0_DRIVERLIB - bool - depends on TEST_KCONFIG - depends on CPU_FAM_CC26X0 - help - Functions for SetupTrimDevice. diff --git a/cpu/cc26x2_cc13x2/Kconfig b/cpu/cc26x2_cc13x2/Kconfig index 3b25929c5df0..c478bb0a9bc2 100644 --- a/cpu/cc26x2_cc13x2/Kconfig +++ b/cpu/cc26x2_cc13x2/Kconfig @@ -10,10 +10,6 @@ config CPU_FAM_CC13X2 select CPU_COMMON_CC26XX_CC13XX select CPU_FAM_CC13XX select CPU_CORE_CORTEX_M4F - select HAS_CPU_CC26X2_CC13X2 - select HAS_CORTEXM_MPU - - select MODULE_CC26XX_CC13XX if TEST_KCONFIG ## CPU Models config CPU_MODEL_CC1312R1F3 @@ -28,12 +24,6 @@ config CPU_MODEL_CC1352P1 bool select CPU_FAM_CC13X2 -## Definition of specific features -config HAS_CPU_CC26X2_CC13X2 - bool - help - Indicates that a 'cc26x2_cc13x2' cpu is being used. - ## Common CPU symbols config CPU_FAM default "cc13x2" if CPU_FAM_CC13X2 diff --git a/cpu/cc26xx_cc13xx/Kconfig b/cpu/cc26xx_cc13xx/Kconfig index cbb6e5bb3c44..f42e8203d58c 100644 --- a/cpu/cc26xx_cc13xx/Kconfig +++ b/cpu/cc26xx_cc13xx/Kconfig @@ -7,10 +7,6 @@ config CPU_COMMON_CC26XX_CC13XX bool - select HAS_PERIPH_CPUID - select HAS_PERIPH_TIMER_QUERY_FREQS - select HAS_PERIPH_UART - select HAS_PERIPH_UART_MODECFG config CPU_FAM_CC13XX bool @@ -85,15 +81,3 @@ endif # CC26XX_CC13XX_ROM_BOOTLOADER endif # CC26XX_CC13XX_UPDATE_CCFG source "$(RIOTCPU)/cortexm_common/Kconfig" - -config MODULE_CC26XX_CC13XX - bool - depends on TEST_KCONFIG - depends on CPU_COMMON_CC26XX_CC13XX - select MODULE_PERIPH_COMMON - select MODULE_CC26XX_CC13XX_PERIPH - default y - help - Common code for TI cc26xx/cc13xx family. - -rsource "periph/Kconfig" diff --git a/cpu/cc26xx_cc13xx/periph/Kconfig b/cpu/cc26xx_cc13xx/periph/Kconfig deleted file mode 100644 index f945a5cb0962..000000000000 --- a/cpu/cc26xx_cc13xx/periph/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# 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_CC26XX_CC13XX_PERIPH - bool - depends on TEST_KCONFIG - depends on CPU_COMMON_CC26XX_CC13XX - help - Common peripheral drivers for TI cc26xx/cc13xx family. diff --git a/cpu/cortexm_common/Kconfig b/cpu/cortexm_common/Kconfig index a89e5e67fdcd..a815e3cdbd08 100644 --- a/cpu/cortexm_common/Kconfig +++ b/cpu/cortexm_common/Kconfig @@ -4,34 +4,14 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. -config MODULE_CORTEXM_COMMON - bool - default y if CPU_CORE_CORTEX_M - depends on TEST_KCONFIG - imply MODULE_NEWLIB_NANO - select MODULE_PERIPH - select MODULE_MALLOC_THREAD_SAFE if TEST_KCONFIG - select PACKAGE_CMSIS if TEST_KCONFIG - help - Common code for Cortex-M cores. - config CPU_ARCH_ARMV6M bool - select HAS_ARCH_ARM - select HAS_ARCH_32BIT - select HAS_NO_IDLE_THREAD config CPU_ARCH_ARMV7M bool - select HAS_ARCH_ARM - select HAS_ARCH_32BIT - select HAS_NO_IDLE_THREAD config CPU_ARCH_ARMV8M bool - select HAS_ARCH_ARM - select HAS_ARCH_32BIT - select HAS_NO_IDLE_THREAD config CPU_ARCH default "armv6m" if CPU_ARCH_ARMV6M @@ -40,17 +20,6 @@ config CPU_ARCH config CPU_CORE_CORTEX_M bool - select HAS_CPU_CORE_CORTEXM - select HAS_PERIPH_PM - select HAS_PUF_SRAM - select HAS_PICOLIBC - select HAS_CPP - select HAS_LIBSTDCPP - select HAS_CPU_CHECK_ADDRESS - select HAS_SSP - select HAS_CORTEXM_SVC - select HAS_NEWLIB - select HAS_DBGPIN ## Common CPU symbols config CPU_CORE @@ -67,92 +36,38 @@ config CPU_CORE_CORTEX_M0 bool select CPU_ARCH_ARMV6M select CPU_CORE_CORTEX_M - select HAS_RUST_TARGET config CPU_CORE_CORTEX_M0PLUS bool select CPU_ARCH_ARMV6M select CPU_CORE_CORTEX_M - select HAS_RUST_TARGET config CPU_CORE_CORTEX_M23 bool select CPU_ARCH_ARMV8M select CPU_CORE_CORTEX_M - #select HAS_RUST_TARGET config CPU_CORE_CORTEX_M3 bool select CPU_ARCH_ARMV7M select CPU_CORE_CORTEX_M - select HAS_RUST_TARGET config CPU_CORE_CORTEX_M33 bool select CPU_ARCH_ARMV8M select CPU_CORE_CORTEX_M - select HAS_CORTEXM_FPU - #select HAS_RUST_TARGET config CPU_CORE_CORTEX_M4 bool select CPU_ARCH_ARMV7M select CPU_CORE_CORTEX_M - select HAS_RUST_TARGET config CPU_CORE_CORTEX_M4F bool select CPU_ARCH_ARMV7M select CPU_CORE_CORTEX_M - select HAS_CORTEXM_FPU - select HAS_RUST_TARGET config CPU_CORE_CORTEX_M7 bool select CPU_ARCH_ARMV7M select CPU_CORE_CORTEX_M - select HAS_CORTEXM_FPU - -## Definition of specific features -config HAS_CPU_CORE_CORTEXM - bool - help - Indicates that the current CPU has an ARM Cortex-M core. - -config HAS_CORTEXM_FPU - bool - help - Indicates that a ARM Cortex-M FPU is present. - -config HAS_CORTEXM_MPU - bool - help - Indicates that a ARM Cortex-M MPU is present. - -config HAS_CORTEXM_SVC - bool - help - Indicates that ARM Cortex-M Supervisor Calls are available. - -menu "Cortex-M" - depends on TEST_KCONFIG - depends on CPU_CORE_CORTEX_M - -config MODULE_CORTEXM_FPU - bool "Cortex-M Floating Point Unit (FPU) support" - default y - depends on HAS_CORTEXM_FPU - -config MODULE_MPU_STACK_GUARD - bool "Memory Protection Unit (MPU) stack guard" - default y if DEVELHELP - depends on HAS_CORTEXM_MPU - -endmenu # Cortex-M - -rsource "periph/Kconfig" - -choice LIBC_IMPLEMENTATION - default MODULE_NEWLIB - default MODULE_PICOLIBC -endchoice diff --git a/cpu/cortexm_common/periph/Kconfig b/cpu/cortexm_common/periph/Kconfig deleted file mode 100644 index f8df685a0daf..000000000000 --- a/cpu/cortexm_common/periph/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# 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_CORTEXM_COMMON_PERIPH - bool - default y if CPU_CORE_CORTEX_M - depends on TEST_KCONFIG - help - Common code for Cortex-M core peripherals. diff --git a/cpu/efm32/Kconfig b/cpu/efm32/Kconfig index a96a546a5526..d90d6d30fa4c 100644 --- a/cpu/efm32/Kconfig +++ b/cpu/efm32/Kconfig @@ -6,59 +6,19 @@ config CPU_COMMON_EFM32 bool - select HAS_ARCH_EFM32 - select HAS_CPU_EFM32 - select HAS_PERIPH_CPUID - select HAS_PERIPH_FLASHPAGE - select HAS_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE - select HAS_PERIPH_FLASHPAGE_PAGEWISE - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_GPIO_LL - select HAS_PERIPH_RTT_SET_COUNTER - select HAS_PERIPH_RTT_OVERFLOW - select HAS_PERIPH_UART_MODECFG - select HAS_PERIPH_WDT - select HAVE_SHARED_PERIPH_RTT_PERIPH_RTC - - select PACKAGE_GECKO_SDK if TEST_KCONFIG - select MODULE_CMSIS-DSP if CPU_CORE_CORTEX_M0PLUS && TEST_KCONFIG config CPU_EFM32_SERIES0 bool config CPU_EFM32_SERIES1 bool - select HAS_PERIPH_WDT_CB config CPU_EFM32_SERIES2 bool - select HAS_PERIPH_WDT_CB - -## Definition of specific features -config HAS_ARCH_EFM32 - bool - help - Indicates that the 'efm32' architecture is being used. - -config HAS_CPU_EFM32 - bool - help - Indicates that the CPU being used is an EFM32. ## Common CPU symbols config CPU default "efm32" if CPU_COMMON_EFM32 -config ERROR_MODULES_CONFLICT - default "On the EFM32, the RTC and RTT map to the same hardware peripheral." if MODULE_PERIPH_RTC && MODULE_PERIPH_RTT - depends on CPU_COMMON_EFM32 - -menu "EFM32 drivers" -rsource "drivers/coretemp/Kconfig" -endmenu - -rsource "periph/Kconfig" - orsource "families/*/Kconfig" source "$(RIOTCPU)/cortexm_common/Kconfig" diff --git a/cpu/efm32/Makefile.features b/cpu/efm32/Makefile.features index 536dd070c92c..316d46457f0f 100644 --- a/cpu/efm32/Makefile.features +++ b/cpu/efm32/Makefile.features @@ -49,10 +49,3 @@ ifeq (1,$(EFM32_LEUART_ENABLED)) endif include $(RIOTCPU)/cortexm_common/Makefile.features - -# Add efm32 configurations after including cortexm_common so efm32 takes precendence -# This configuration enables modules that are only available when using Kconfig -# module modelling -ifeq (1,$(TEST_KCONFIG)) - KCONFIG_CPU_CONFIG += $(RIOTCPU)/efm32/efm32.config -endif diff --git a/cpu/efm32/drivers/coretemp/Kconfig b/cpu/efm32/drivers/coretemp/Kconfig deleted file mode 100644 index e1c62faea3c5..000000000000 --- a/cpu/efm32/drivers/coretemp/Kconfig +++ /dev/null @@ -1,19 +0,0 @@ -# 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_EFM32_CORETEMP - bool "EFM32 internal temperature sensor driver" - depends on TEST_KCONFIG - depends on HAS_EFM32_CORETEMP - depends on HAS_PERIPH_ADC - select MODULE_PERIPH_ADC - -config HAS_EFM32_CORETEMP - bool - select MODULE_EFM32_CORETEMP if MODULE_SAUL_DEFAULT && HAS_PERIPH_ADC - help - Indicates that the EFM32 coretemp driver is being used. diff --git a/cpu/efm32/efm32.config b/cpu/efm32/efm32.config deleted file mode 100644 index 811b1f37127b..000000000000 --- a/cpu/efm32/efm32.config +++ /dev/null @@ -1 +0,0 @@ -CONFIG_MODULE_PM_LAYERED=y diff --git a/cpu/efm32/families/efm32gg/Kconfig b/cpu/efm32/families/efm32gg/Kconfig index aedf09d01ac5..9a76b0829358 100644 --- a/cpu/efm32/families/efm32gg/Kconfig +++ b/cpu/efm32/families/efm32gg/Kconfig @@ -9,15 +9,6 @@ config CPU_FAM_EFM32GG select CPU_CORE_CORTEX_M3 select CPU_COMMON_EFM32 select CPU_EFM32_SERIES0 - select HAS_CORTEXM_MPU - -config MODULE_CPU_EFM32GG - bool - depends on CPU_FAM_EFM32GG - depends on TEST_KCONFIG - default y - help - EFM32GG family-specific code. ## CPU Models config CPU_MODEL_EFM32GG330F512 diff --git a/cpu/efm32/families/efm32gg11b/Kconfig b/cpu/efm32/families/efm32gg11b/Kconfig index 77ac6a1aaef1..7a1a41689c38 100644 --- a/cpu/efm32/families/efm32gg11b/Kconfig +++ b/cpu/efm32/families/efm32gg11b/Kconfig @@ -9,16 +9,6 @@ config CPU_FAM_EFM32GG11B select CPU_CORE_CORTEX_M4F select CPU_COMMON_EFM32 select CPU_EFM32_SERIES1 - select HAS_PERIPH_HWRNG - select HAS_CORTEXM_MPU - -config MODULE_CPU_EFM32GG11B - bool - depends on CPU_FAM_EFM32GG11B - depends on TEST_KCONFIG - default y - help - EFM32GG11B family-specific code. ## CPU Models config CPU_MODEL_EFM32GG11B510F2048IL120 diff --git a/cpu/efm32/families/efm32gg12b/Kconfig b/cpu/efm32/families/efm32gg12b/Kconfig index 7aaee07d6493..734bc4eeed0f 100644 --- a/cpu/efm32/families/efm32gg12b/Kconfig +++ b/cpu/efm32/families/efm32gg12b/Kconfig @@ -9,16 +9,6 @@ config CPU_FAM_EFM32GG12B select CPU_CORE_CORTEX_M4F select CPU_COMMON_EFM32 select CPU_EFM32_SERIES1 - select HAS_PERIPH_HWRNG - select HAS_CORTEXM_MPU - -config MODULE_CPU_EFM32GG12B - bool - depends on CPU_FAM_EFM32GG12B - depends on TEST_KCONFIG - default y - help - EFM32GG12B family-specific code. ## CPU Models config CPU_MODEL_EFM32GG12B810F1024GL112 diff --git a/cpu/efm32/families/efm32hg/Kconfig b/cpu/efm32/families/efm32hg/Kconfig index afd74eb2bf6c..3581caecf841 100644 --- a/cpu/efm32/families/efm32hg/Kconfig +++ b/cpu/efm32/families/efm32hg/Kconfig @@ -10,14 +10,6 @@ config CPU_FAM_EFM32HG select CPU_COMMON_EFM32 select CPU_EFM32_SERIES0 -config MODULE_CPU_EFM32HG - bool - depends on CPU_FAM_EFM32HG - depends on TEST_KCONFIG - default y - help - EFM32HG family-specific code. - ## CPU Models config CPU_MODEL_EFM32HG210F32 bool diff --git a/cpu/efm32/families/efm32lg/Kconfig b/cpu/efm32/families/efm32lg/Kconfig index 59a1aba84972..c48ff746daff 100644 --- a/cpu/efm32/families/efm32lg/Kconfig +++ b/cpu/efm32/families/efm32lg/Kconfig @@ -9,15 +9,6 @@ config CPU_FAM_EFM32LG select CPU_CORE_CORTEX_M3 select CPU_COMMON_EFM32 select CPU_EFM32_SERIES0 - select HAS_CORTEXM_MPU - -config MODULE_CPU_EFM32LG - bool - depends on CPU_FAM_EFM32LG - depends on TEST_KCONFIG - default y - help - EFM32LG family-specific code. ## CPU Models config CPU_MODEL_EFM32LG990F256 diff --git a/cpu/efm32/families/efm32pg12b/Kconfig b/cpu/efm32/families/efm32pg12b/Kconfig index ba9b78e071c8..8a21c3d1ed15 100644 --- a/cpu/efm32/families/efm32pg12b/Kconfig +++ b/cpu/efm32/families/efm32pg12b/Kconfig @@ -9,16 +9,6 @@ config CPU_FAM_EFM32PG12B select CPU_CORE_CORTEX_M4F select CPU_COMMON_EFM32 select CPU_EFM32_SERIES1 - select HAS_PERIPH_HWRNG - select HAS_CORTEXM_MPU - -config MODULE_CPU_EFM32PG12B - bool - depends on CPU_FAM_EFM32PG12B - depends on TEST_KCONFIG - default y - help - EFM32PG12B family-specific code. ## CPU Models config CPU_MODEL_EFM32PG12B500F1024IM48 diff --git a/cpu/efm32/families/efm32pg1b/Kconfig b/cpu/efm32/families/efm32pg1b/Kconfig index 6abd1f0a86e3..bbf0468a872d 100644 --- a/cpu/efm32/families/efm32pg1b/Kconfig +++ b/cpu/efm32/families/efm32pg1b/Kconfig @@ -9,15 +9,6 @@ config CPU_FAM_EFM32PG1B select CPU_CORE_CORTEX_M4F select CPU_COMMON_EFM32 select CPU_EFM32_SERIES1 - select HAS_CORTEXM_MPU - -config MODULE_CPU_EFM32PG1B - bool - depends on CPU_FAM_EFM32PG1B - depends on TEST_KCONFIG - default y - help - EFM32PG1B family-specific code. ## CPU Models config CPU_MODEL_EFM32PG1B200F256GM48 diff --git a/cpu/efm32/families/efm32zg/Kconfig b/cpu/efm32/families/efm32zg/Kconfig index 64a0b696b8e8..d7fb2993707b 100644 --- a/cpu/efm32/families/efm32zg/Kconfig +++ b/cpu/efm32/families/efm32zg/Kconfig @@ -10,14 +10,6 @@ config CPU_FAM_EFM32ZG select CPU_COMMON_EFM32 select CPU_EFM32_SERIES0 -config MODULE_CPU_EFM32ZG - bool - depends on CPU_FAM_EFM32ZG - depends on TEST_KCONFIG - default y - help - EFM32ZG family-specific code. - ## CPU Models config CPU_MODEL_EFM32ZG222F16 bool diff --git a/cpu/efm32/families/efr32mg12p/Kconfig b/cpu/efm32/families/efr32mg12p/Kconfig index e3d385e85b23..8ef00976f199 100644 --- a/cpu/efm32/families/efr32mg12p/Kconfig +++ b/cpu/efm32/families/efr32mg12p/Kconfig @@ -9,17 +9,6 @@ config CPU_FAM_EFR32MG12P select CPU_CORE_CORTEX_M4F select CPU_COMMON_EFM32 select CPU_EFM32_SERIES1 - select HAS_PERIPH_HWRNG - select HAS_CORTEXM_MPU - select HAS_GECKO_SDK_LIBRAIL_NONFPU - -config MODULE_CPU_EFR32MG12P - bool - depends on CPU_FAM_EFR32MG12P - depends on TEST_KCONFIG - default y - help - EFR32MG12P family-specific code. ## CPU Models config CPU_MODEL_EFR32MG12P432F1024GM68 diff --git a/cpu/efm32/families/efr32mg1b/Kconfig b/cpu/efm32/families/efr32mg1b/Kconfig index 487e13ac3a19..f9239295c97b 100644 --- a/cpu/efm32/families/efr32mg1b/Kconfig +++ b/cpu/efm32/families/efr32mg1b/Kconfig @@ -9,16 +9,6 @@ config CPU_FAM_EFR32MG1B select CPU_CORE_CORTEX_M4F select CPU_COMMON_EFM32 select CPU_EFM32_SERIES1 - select HAS_CORTEXM_MPU - select HAS_GECKO_SDK_LIBRAIL_NONFPU - -config MODULE_CPU_EFR32MG1B - bool - depends on CPU_FAM_EFR32MG1B - depends on TEST_KCONFIG - default y - help - EFR32MG1B family-specific code. ## CPU Models config CPU_MODEL_EFR32MG1B232F256GM48 diff --git a/cpu/efm32/families/efr32mg1p/Kconfig b/cpu/efm32/families/efr32mg1p/Kconfig index ba15ebb333b3..1a721e896e44 100644 --- a/cpu/efm32/families/efr32mg1p/Kconfig +++ b/cpu/efm32/families/efr32mg1p/Kconfig @@ -9,16 +9,6 @@ config CPU_FAM_EFR32MG1P select CPU_CORE_CORTEX_M4F select CPU_COMMON_EFM32 select CPU_EFM32_SERIES1 - select HAS_CORTEXM_MPU - select HAS_GECKO_SDK_LIBRAIL_NONFPU - -config MODULE_CPU_EFR32MG1P - bool - depends on CPU_FAM_EFR32MG1P - depends on TEST_KCONFIG - default y - help - EFR32MG1P family-specific code. ## CPU Models config CPU_MODEL_EFR32MG1P632F256GM32 diff --git a/cpu/efm32/families/efr32zg23/Kconfig b/cpu/efm32/families/efr32zg23/Kconfig index 26939e1cff32..25af8d2e26d3 100644 --- a/cpu/efm32/families/efr32zg23/Kconfig +++ b/cpu/efm32/families/efr32zg23/Kconfig @@ -9,16 +9,6 @@ config CPU_FAM_EFR32ZG23 select CPU_CORE_CORTEX_M33 select CPU_COMMON_EFM32 select CPU_EFM32_SERIES2 - select HAS_PERIPH_HWRNG - select HAS_CORTEXM_MPU - -config MODULE_CPU_EFR32ZG23 - bool - depends on CPU_FAM_EFR32ZG23 - depends on TEST_KCONFIG - default y - help - EFR32ZG23 family-specific code. ## CPU Models config CPU_MODEL_EFR32ZG23B020F512IM40 diff --git a/cpu/efm32/families/ezr32wg/Kconfig b/cpu/efm32/families/ezr32wg/Kconfig index c0d7c783761d..a495edf32814 100644 --- a/cpu/efm32/families/ezr32wg/Kconfig +++ b/cpu/efm32/families/ezr32wg/Kconfig @@ -9,15 +9,6 @@ config CPU_FAM_EZR32WG select CPU_CORE_CORTEX_M4F select CPU_COMMON_EFM32 select CPU_EFM32_SERIES0 - select HAS_CORTEXM_MPU - -config MODULE_CPU_EZR32WG - bool - depends on CPU_FAM_EZR32WG - depends on TEST_KCONFIG - default y - help - EZR32WG family-specific code. ## CPU Models config CPU_MODEL_EZR32WG230F128R68 diff --git a/cpu/efm32/periph/Kconfig b/cpu/efm32/periph/Kconfig deleted file mode 100644 index a1c272e2faa7..000000000000 --- a/cpu/efm32/periph/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# 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_PERIPH - bool - default y - select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV diff --git a/cpu/esp32/Kconfig b/cpu/esp32/Kconfig index 97cbf9da06ff..6afb62a58ba4 100644 --- a/cpu/esp32/Kconfig +++ b/cpu/esp32/Kconfig @@ -5,64 +5,6 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. -## Definition of specific features -config HAS_ARCH_ESP32 - bool - help - Indicates that the current architecture is any ESP32x SoC architecture. - -config HAS_CPU_ESP32 - bool - help - Indicates that the current CPU belongs to the ESP32x SoC series. - -config HAS_ESP_BLE - bool - help - Indicates that the used ESP32x SoC supports Bluetooth LE. - -config HAS_ESP_BLE_ESP32 - bool - help - Indicates that the ESP32x SoC uses the SDK Bluetooth LE library - for the ESP32 variant. - -config HAS_ESP_BLE_ESP32C3 - bool - help - Indicates that the ESP32x SoC uses the SDK Bluetooth LE library - for the ESP32-C3 or ESP32-S3 variant. - -config HAS_ESP_HW_COUNTER - bool - help - Indicates that the used ESP32x SoC supports HW counters that can be - used as timers. - -config HAS_ESP_RMT - bool - help - Indicates that the ESP32x SoC has a RMT peripheral. - -config HAS_ESP_RTC_TIMER_32K - bool - help - Indicates that an external 32.768 kHz crystal is connected to the - ESP32x Soc on the board. - -config HAS_ESP_SPI_RAM - bool - help - Indicates that an external RAM is connected via the SPI interface to - the ESP32x SoC on the board. - -config HAS_ESP_SPI_OCT - bool - help - Indicates that Octal SPI mode is used for Flash and SPI RAM. In this - case additional GPIOs are used for the SPI interface and cannot be - used for other purposes. - config CPU default "esp32" if HAS_CPU_ESP32 @@ -94,6 +36,5 @@ rsource "Kconfig.esp32" rsource "Kconfig.esp32c3" rsource "Kconfig.esp32s3" rsource "Kconfig.esp32s2" -rsource "stdio_usb_serial_jtag/Kconfig" source "$(RIOTCPU)/esp_common/Kconfig" diff --git a/cpu/esp32/Kconfig.common b/cpu/esp32/Kconfig.common index 9551dc5f4dce..db0e159f5546 100644 --- a/cpu/esp32/Kconfig.common +++ b/cpu/esp32/Kconfig.common @@ -5,36 +5,10 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. -if TEST_KCONFIG && HAS_ARCH_ESP32 +if HAS_ARCH_ESP32 # define configuration menu entries that common for all ESP32x SoC variants -config MODULE_ESP_BLE - bool "Enable Bluetooth LE interface" - depends on HAS_ESP_BLE - select MODULE_ESP_IDF_BLE - select PACKAGE_ESP32_SDK_LIB_PHY - select PACKAGE_ESP32_SDK_LIB_BT_ESP32 if HAS_ESP_BLE_ESP32 - select PACKAGE_ESP32_SDK_LIB_BT_ESP32C3 if HAS_ESP_BLE_ESP32C3 - -config MODULE_ESP_JTAG - bool "Enable JTAG debugging interface" - depends on HAS_ESP_JTAG - -config MODULE_ESP_SPI_RAM - bool "Enable SPI RAM support" - depends on HAS_ESP_SPI_RAM - select MODULE_ESP_IDF_GPIO - select MODULE_ESP_IDF_HEAP - select MODULE_ESP_IDF_SPI_FLASH - select MODULE_ESP_IDF_SPI_RAM - help - Say y to use external SPI RAM connected through the SPI interface. - -rsource "bootloader/Kconfig" -rsource "esp-ble-nimble/Kconfig" -rsource "esp-idf/Kconfig" -rsource "esp-idf-api/Kconfig" rsource "esp-lcd/Kconfig" rsource "periph/Kconfig" diff --git a/cpu/esp32/Kconfig.esp32 b/cpu/esp32/Kconfig.esp32 index c5da0ee870e6..9be5e3b88211 100644 --- a/cpu/esp32/Kconfig.esp32 +++ b/cpu/esp32/Kconfig.esp32 @@ -9,14 +9,6 @@ config CPU_FAM_ESP32 bool select CPU_COMMON_ESP32X select CPU_CORE_XTENSA_LX6 - select HAS_BLE_NIMBLE - select HAS_BLE_NIMBLE_NETIF - select HAS_ESP_BLE - select HAS_ESP_BLE_ESP32 - select HAS_PUF_SRAM - select HAS_PERIPH_SDMMC_AUTO_CLK - select HAS_PERIPH_SDMMC_AUTO_CMD12 - select HAS_PERIPH_SDMMC_MMC config CPU_FAM default "esp32" if CPU_FAM_ESP32 @@ -29,17 +21,14 @@ config CPU_MODEL_ESP32_WROOM_32 config CPU_MODEL_ESP32_WROVER bool select CPU_FAM_ESP32 - select HAS_ESP_SPI_RAM config CPU_MODEL_ESP32_WROVER_B bool select CPU_FAM_ESP32 - select HAS_ESP_SPI_RAM config CPU_MODEL_ESP32_WROVER_E bool select CPU_FAM_ESP32 - select HAS_ESP_SPI_RAM config CPU_MODEL_ESP32_D0WD bool @@ -56,7 +45,6 @@ config CPU_MODEL if CPU_FAM_ESP32 menu "ESP32 specific configurations" - depends on TEST_KCONFIG depends on HAS_ARCH_ESP32 # define configuration menu entries for ESP32 variant (family) diff --git a/cpu/esp32/Kconfig.esp32c3 b/cpu/esp32/Kconfig.esp32c3 index a25b129157ed..a41a7eadc299 100644 --- a/cpu/esp32/Kconfig.esp32c3 +++ b/cpu/esp32/Kconfig.esp32c3 @@ -9,12 +9,6 @@ config CPU_FAM_ESP32C3 bool select CPU_COMMON_ESP32X select CPU_CORE_RV32IMC - select HAS_BLE_ADV_EXT - select HAS_BLE_NIMBLE - select HAS_BLE_NIMBLE_NETIF - select HAS_BLE_PHY_2MBIT - select HAS_ESP_BLE - select HAS_ESP_BLE_ESP32C3 config CPU_FAM default "esp32c3" if CPU_FAM_ESP32C3 @@ -51,7 +45,6 @@ config CPU_MODEL if CPU_FAM_ESP32C3 menu "ESP32-C3 specific configurations" - depends on TEST_KCONFIG depends on HAS_ARCH_ESP32 # define configuration menu entries for ESP32-C3 variant (family) diff --git a/cpu/esp32/Kconfig.esp32s2 b/cpu/esp32/Kconfig.esp32s2 index ac70dae1d94e..a91ef7bb3965 100644 --- a/cpu/esp32/Kconfig.esp32s2 +++ b/cpu/esp32/Kconfig.esp32s2 @@ -9,8 +9,6 @@ config CPU_FAM_ESP32S2 bool select CPU_COMMON_ESP32X select CPU_CORE_XTENSA_LX7 - select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV - select MODULE_USB_BOARD_RESET if MODULE_USBUS_CDC_ACM || MODULE_TINYUSB_CLASS_CDC config CPU_FAM default "esp32s2" if CPU_FAM_ESP32S2 @@ -37,7 +35,6 @@ config CPU_MODEL_ESP32S2_FH4 config CPU_MODEL_ESP32S2_FN4R2 bool select CPU_FAM_ESP32S2 - select HAS_ESP_SPI_RAM help Indicates that CPU version ESP32-S2FN4R2 with 4 MB embedded Flash and 2 MB embedded SPI RAM is used. @@ -45,7 +42,6 @@ config CPU_MODEL_ESP32S2_FN4R2 config CPU_MODEL_ESP32S2_R2 bool select CPU_FAM_ESP32S2 - select HAS_ESP_SPI_RAM help Indicates that CPU version ESP32-S2R2 with 2 MB embedded SPI RAM is used. @@ -66,7 +62,6 @@ config CPU_MODEL_ESP32S2_MINI_1X_N4 config CPU_MODEL_ESP32S2_MINI_1X_N4R2 bool select CPU_FAM_ESP32S2 - select HAS_ESP_SPI_RAM help Indicates that ESP32-S2-MINI-1-N4R2 or ESP32-S2-MINI-1U-N4R2 module with 4 MB Flash and 2 MB SPI RAM is used. @@ -88,7 +83,6 @@ config CPU_MODEL_ESP32S2_MINI_2X_N4 config CPU_MODEL_ESP32S2_MINI_2X_N4R2 bool select CPU_FAM_ESP32S2 - select HAS_ESP_SPI_RAM help Indicates that ESP32-S2-MINI-2-N4R2 or ESP32-S2-MINI-2U-N4R2 module with 4 MB Flash and 2 MB SPI RAM is used. @@ -124,7 +118,6 @@ config CPU_MODEL_ESP32S2_SOLO_N16 config CPU_MODEL_ESP32S2_SOLO_N4R2 bool select CPU_FAM_ESP32S2 - select HAS_ESP_SPI_RAM help Indicates that ESP32-S2-SOLO-N4R2 or ESP32-S2-SOLO-U-N4R2 module with 4 MB Flash and 2 MB SPI RAM is used. @@ -146,7 +139,6 @@ config CPU_MODEL_ESP32S2_SOLO_2X_N4 config CPU_MODEL_ESP32S2_SOLO_2X_N4R2 bool select CPU_FAM_ESP32S2 - select HAS_ESP_SPI_RAM help Indicates that ESP32-S2-SOLO-2-N4R2 or ESP32-S2-SOLO-2U-N4R2 module with 4 MB Flash and 2 MB SPI RAM is used. @@ -161,7 +153,6 @@ config CPU_MODEL_ESP32S2_WROOM config CPU_MODEL_ESP32S2_WROVER_N4R2 bool select CPU_FAM_ESP32S2 - select HAS_ESP_SPI_RAM help Indicates that ESP32-S2-WROVER-N4R2 or ESP32-S2-WROVER-I-N4R2 module with 4 MB Flash and 2 MB SPI RAM is used. @@ -169,7 +160,6 @@ config CPU_MODEL_ESP32S2_WROVER_N4R2 config CPU_MODEL_ESP32S2_WROVER_N8R2 bool select CPU_FAM_ESP32S2 - select HAS_ESP_SPI_RAM help Indicates that ESP32-S2-WROVER-N8R2 or ESP32-S2-WROVER-I-N8R2 module with 8 MB Flash and 2 MB SPI RAM is used. @@ -177,7 +167,6 @@ config CPU_MODEL_ESP32S2_WROVER_N8R2 config CPU_MODEL_ESP32S2_WROVER_N16R2 bool select CPU_FAM_ESP32S2 - select HAS_ESP_SPI_RAM help Indicates that ESP32-S2-WROVER-N16R2 or ESP32-S2-WROVER-I-N16R2 module with 16 MB Flash and 2 MB SPI RAM is used. @@ -211,7 +200,6 @@ config CPU_MODEL if CPU_FAM_ESP32S2 menu "ESP32-S2 specific configurations" - depends on TEST_KCONFIG depends on HAS_ARCH_ESP32 # define configuration menu entries for ESP32-S3 variant (family) diff --git a/cpu/esp32/Kconfig.esp32s3 b/cpu/esp32/Kconfig.esp32s3 index 0af20b4e9616..149953c7fd3d 100644 --- a/cpu/esp32/Kconfig.esp32s3 +++ b/cpu/esp32/Kconfig.esp32s3 @@ -9,18 +9,6 @@ config CPU_FAM_ESP32S3 bool select CPU_COMMON_ESP32X select CPU_CORE_XTENSA_LX7 - select HAS_BLE_ADV_EXT - select HAS_BLE_NIMBLE - select HAS_BLE_NIMBLE_NETIF - select HAS_BLE_PHY_2MBIT - select HAS_ESP_BLE - select HAS_ESP_BLE_ESP32C3 - select HAS_PERIPH_SDMMC_AUTO_CLK - select HAS_PERIPH_SDMMC_AUTO_CMD12 - select HAS_PERIPH_SDMMC_HS - select HAS_PERIPH_SDMMC_MMC - select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV - select MODULE_USB_BOARD_RESET if MODULE_USBUS_CDC_ACM || MODULE_TINYUSB_CLASS_CDC config CPU_FAM default "esp32s3" if CPU_FAM_ESP32S3 @@ -41,15 +29,12 @@ config CPU_MODEL_ESP32S3_FN8 config CPU_MODEL_ESP32S3_R2 bool select CPU_FAM_ESP32S3 - select HAS_ESP_SPI_RAM help Indicates that CPU version ESP32-S3R2 with 2 MB embedded SPI RAM is used. config CPU_MODEL_ESP32S3_R8 bool select CPU_FAM_ESP32S3 - select HAS_ESP_SPI_RAM - select HAS_ESP_SPI_OCT help Indicates that CPU version ESP32-S3R8 with 8 MB embedded SPI RAM and SPI voltage 3.3 V is used. @@ -57,8 +42,6 @@ config CPU_MODEL_ESP32S3_R8 config CPU_MODEL_ESP32S3_R8V bool select CPU_FAM_ESP32S3 - select HAS_ESP_SPI_RAM - select HAS_ESP_SPI_OCT help Indicates that CPU version ESP32-S3R8V with 8 MB embedded SPI RAM and SPI voltage 1.8 V is used. @@ -66,7 +49,6 @@ config CPU_MODEL_ESP32S3_R8V config CPU_MODEL_ESP32S3_FH4R2 bool select CPU_FAM_ESP32S3 - select HAS_ESP_SPI_RAM help Indicates that CPU version ESP32-S3FH4R2 with 4 MB embedded Flash and 2 MB embedded SPI RAM is used. @@ -102,7 +84,6 @@ config CPU_MODEL_ESP32S3_WROOM_1X_H4 config CPU_MODEL_ESP32S3_WROOM_1X_N4R2 bool select CPU_FAM_ESP32S3 - select HAS_ESP_SPI_RAM help Indicates that ESP32-S3-WROOM-1-N4R2 or ESP32-S3-WROOM-1U-N4R2 module with 4 MB Flash and 2 MB SPI RAM is used. @@ -110,7 +91,6 @@ config CPU_MODEL_ESP32S3_WROOM_1X_N4R2 config CPU_MODEL_ESP32S3_WROOM_1X_N8R2 bool select CPU_FAM_ESP32S3 - select HAS_ESP_SPI_RAM help Indicates that ESP32-S3-WROOM-1-N8R2 or ESP32-S3-WROOM-1U-N8R2 module with 8 MB Flash and 2 MB SPI RAM is used. @@ -118,7 +98,6 @@ config CPU_MODEL_ESP32S3_WROOM_1X_N8R2 config CPU_MODEL_ESP32S3_WROOM_1X_N16R2 bool select CPU_FAM_ESP32S3 - select HAS_ESP_SPI_RAM help Indicates that ESP32-S3-WROOM-1-N16R2 or ESP32-S3-WROOM-1U-N16R2 module with 16 MB Flash and 2 MB SPI RAM is used. @@ -126,8 +105,6 @@ config CPU_MODEL_ESP32S3_WROOM_1X_N16R2 config CPU_MODEL_ESP32S3_WROOM_1X_N4R8 bool select CPU_FAM_ESP32S3 - select HAS_ESP_SPI_RAM - select HAS_ESP_SPI_OCT help Indicates that ESP32-S3-WROOM-1-N4R8 or ESP32-S3-WROOM-1U-N4R8 module with 4 MB Flash and 8 MB SPI RAM (Octal SPI mode) is used. @@ -135,8 +112,6 @@ config CPU_MODEL_ESP32S3_WROOM_1X_N4R8 config CPU_MODEL_ESP32S3_WROOM_1X_N8R8 bool select CPU_FAM_ESP32S3 - select HAS_ESP_SPI_RAM - select HAS_ESP_SPI_OCT help Indicates that ESP32-S3-WROOM-1-N8R8 or ESP32-S3-WROOM-1U-N8R8 module with 8 MB Flash and 8 MB SPI RAM (Octal SPI mode) is used. @@ -144,8 +119,6 @@ config CPU_MODEL_ESP32S3_WROOM_1X_N8R8 config CPU_MODEL_ESP32S3_WROOM_1X_N16R8 bool select CPU_FAM_ESP32S3 - select HAS_ESP_SPI_RAM - select HAS_ESP_SPI_OCT help Indicates that ESP32-S3-WROOM-1-N16R8 or ESP32-S3-WROOM-1U-N16R8 module with 16 MB Flash and 8 MB SPI RAM (Octal SPI mode) is used. @@ -153,8 +126,6 @@ config CPU_MODEL_ESP32S3_WROOM_1X_N16R8 config CPU_MODEL_ESP32S3_WROOM_2_N16R8V bool select CPU_FAM_ESP32S3 - select HAS_ESP_SPI_RAM - select HAS_ESP_SPI_OCT help Indicates that ESP32-S3-WROOM-2-N16R8V module with 16 MB Flash and 8 MB SPI RAM (Octal SPI mode) and 1.8 V SPI voltage is used. @@ -162,8 +133,6 @@ config CPU_MODEL_ESP32S3_WROOM_2_N16R8V config CPU_MODEL_ESP32S3_WROOM_2_N32R8V bool select CPU_FAM_ESP32S3 - select HAS_ESP_SPI_RAM - select HAS_ESP_SPI_OCT help Indicates that ESP32-S3-WROOM-2-N16R8V module with 32 MB Flash and 8 MB SPI RAM (Octal SPI mode) and 1.8 V SPI voltage is used. @@ -178,7 +147,6 @@ config CPU_MODEL_ESP32S3_MINI_1X_N8 config CPU_MODEL_ESP32S3_MINI_1X_N4R2 bool select CPU_FAM_ESP32S3 - select HAS_ESP_SPI_RAM help Indicates that ESP32-S3-MINI-1-N4R2 or ESP32-S3-MINI-1U-N4R2 module with 4 MB Flash and 2 MB SPI RAM is used. @@ -186,7 +154,6 @@ config CPU_MODEL_ESP32S3_MINI_1X_N4R2 config CPU_MODEL_ESP32S3_MINI_1X_H4R2 bool select CPU_FAM_ESP32S3 - select HAS_ESP_SPI_RAM help Indicates that ESP32-S3-MINI-1-H4R2 or ESP32-S3-MINI-1U-H4R2 module with 4 MB Flash and 2 MB SPI RAM is used. @@ -217,15 +184,7 @@ config CPU_MODEL if CPU_FAM_ESP32S3 -config MODULE_ESP_SPI_OCT - bool - default y if MODULE_ESP_SPI_RAM - depends on HAS_ESP_SPI_OCT - help - Octal SPI is used for SPI RAM. - menu "ESP32-S3 specific configurations" - depends on TEST_KCONFIG depends on HAS_ARCH_ESP32 # define configuration menu entries for ESP32-S3 variant (family) diff --git a/cpu/esp32/Kconfig.esp32x b/cpu/esp32/Kconfig.esp32x index bbee9fd493e1..f336d9c5467c 100644 --- a/cpu/esp32/Kconfig.esp32x +++ b/cpu/esp32/Kconfig.esp32x @@ -9,30 +9,6 @@ config CPU_COMMON_ESP32X bool select CPU_COMMON_ESP - select HAS_ARCH_ESP32 - select HAS_CPU_ESP32 - select HAS_ESP_HW_COUNTER if CPU_ARCH_XTENSA - select HAS_ESP_RMT - select HAS_ESP_WIFI_ENTERPRISE - select HAS_PERIPH_FLASHPAGE - select HAS_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE - select HAS_PERIPH_FLASHPAGE_PAGEWISE - select HAS_PERIPH_GPIO_LL - select HAS_PERIPH_GPIO_LL_IRQ - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_HIGH - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_LOW - select HAS_PERIPH_SPI_RECONFIGURE - select HAS_PUF_SRAM - - select PACKAGE_ESP32_SDK if TEST_KCONFIG - - select MODULE_PERIPH_GPIO_IRQ if MODULE_PERIPH_SDMMC - select MODULE_PERIPH_RTT if HAS_PERIPH_RTT && MODULE_PM_LAYERED - select MODULE_PS if MODULE_SHELL - select MODULE_PTHREAD if MODULE_CPP - select MODULE_RTT_RTC if HAS_PERIPH_RTT && MODULE_PERIPH_RTC - - imply MODULE_NEWLIB_NANO help Selects all features, modules and packages that are common for diff --git a/cpu/esp32/Makefile.features b/cpu/esp32/Makefile.features index dfd91e25b0cc..68ee7f15d038 100644 --- a/cpu/esp32/Makefile.features +++ b/cpu/esp32/Makefile.features @@ -66,9 +66,3 @@ ifneq (,$(filter esp32-wrover% esp32s2%r2 esp32s3%r2 esp32s3%r8 esp32s3%r8v,$(CP FEATURES_PROVIDED += esp_spi_oct endif endif - -# This configuration enables modules that are only available when using Kconfig -# module modelling -ifeq (1, $(TEST_KCONFIG)) - KCONFIG_ADD_CONFIG += $(RIOTCPU)/esp32/esp32.config -endif diff --git a/cpu/esp32/bootloader/Kconfig b/cpu/esp32/bootloader/Kconfig deleted file mode 100644 index 4ad7c1dc4030..000000000000 --- a/cpu/esp32/bootloader/Kconfig +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2022 Gunar Schorcht -# -# 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_ESP_BOOTLOADER - bool - depends on TEST_KCONFIG - depends on HAS_ARCH_ESP32 - default y - help - Bootloader compiled from ESP-IDF code. diff --git a/cpu/esp32/esp-ble-nimble/Kconfig b/cpu/esp32/esp-ble-nimble/Kconfig deleted file mode 100644 index 3bbdc3b778bb..000000000000 --- a/cpu/esp32/esp-ble-nimble/Kconfig +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright (c) 2022 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_ESP_BLE_NIMBLE - bool "ESP32 Bluetooth LE HCI for NimBLE host" - depends on TEST_KCONFIG - depends on CPU_FAM_ESP32 - depends on HAS_ESP_BLE - default y if TEST_KCONFIG && MODULE_NIMBLE - select MODULE_ESP_BLE - select MODULE_NIMBLE_HOST - select MODULE_NIMBLE_TRANSPORT_HCI_H4 - select MODULE_ZTIMER_MSEC - -config HAS_ESP_BLE - bool - help - Indicates that a ESP32 Buetooth LE controller. diff --git a/cpu/esp32/esp-eth/Kconfig b/cpu/esp32/esp-eth/Kconfig deleted file mode 100644 index 824ca7c56197..000000000000 --- a/cpu/esp32/esp-eth/Kconfig +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright (c) 2022 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_ESP_ETH - bool "ESP32 Ethernet device" - depends on TEST_KCONFIG - depends on CPU_FAM_ESP32 - depends on HAS_ESP_ETH - select MODULE_ESP_IDF_ETH - select MODULE_ESP_IDF_EVENT - select MODULE_ESP_IDF_SPI_FLASH - select MODULE_NETDEV_ETH - select MODULE_NETOPT - select MODULE_ZTIMER - select MODULE_ZTIMER_MSEC - -config HAS_ESP_ETH - bool - select MODULE_ESP_ETH if MODULE_NETDEV_DEFAULT - help - Indicates that a ESP32 ethernet device is present. diff --git a/cpu/esp32/esp-idf-api/Kconfig b/cpu/esp32/esp-idf-api/Kconfig deleted file mode 100644 index 82f1f6cac058..000000000000 --- a/cpu/esp32/esp-idf-api/Kconfig +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2022 Gunar Schorcht -# -# 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_ESP_IDF_API - bool - depends on TEST_KCONFIG - depends on HAS_ARCH_ESP32 - default y - help - ESP-IDF interface API diff --git a/cpu/esp32/esp-idf/Kconfig b/cpu/esp32/esp-idf/Kconfig deleted file mode 100644 index d76951ae574f..000000000000 --- a/cpu/esp32/esp-idf/Kconfig +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright (c) 2021 HAW Hamburg -# 2022 Gunar Schorcht -# -# 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_ESP_IDF - bool - depends on TEST_KCONFIG - depends on HAS_ARCH_ESP32 - default y - select MODULE_ESP_IDF_COMMON - select MODULE_ESP_IDF_EFUSE - select MODULE_ESP_IDF_SPI_FLASH if MODULE_MTD || MODULE_PERIPH_FLASHPAGE - select MODULE_ESP_IDF_USB if MODULE_TINYUSB_PORTABLE_ESPRESSIF - help - Espressif IoT Development Framework. - -rsource "adc/Kconfig" -rsource "ble/Kconfig" -rsource "common/Kconfig" -rsource "efuse/Kconfig" -rsource "eth/Kconfig" -rsource "event/Kconfig" -rsource "gpio/Kconfig" -rsource "heap/Kconfig" -rsource "lcd/Kconfig" -rsource "nvs_flash/Kconfig" -rsource "rmt/Kconfig" -rsource "sdmmc/Kconfig" -rsource "spi_flash/Kconfig" -rsource "spi_ram/Kconfig" -rsource "usb/Kconfig" -rsource "wifi/Kconfig" -rsource "wpa_supplicant/Kconfig" diff --git a/cpu/esp32/esp-idf/adc/Kconfig b/cpu/esp32/esp-idf/adc/Kconfig deleted file mode 100644 index c58ed528aeef..000000000000 --- a/cpu/esp32/esp-idf/adc/Kconfig +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright (c) 2022 Gunar Schorcht -# -# 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_ESP_IDF_ADC - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF - - default y if MODULE_PERIPH_ADC - - help - ESP-IDF code for ADC peripherals. diff --git a/cpu/esp32/esp-idf/ble/Kconfig b/cpu/esp32/esp-idf/ble/Kconfig deleted file mode 100644 index 1bca53ea6f18..000000000000 --- a/cpu/esp32/esp-idf/ble/Kconfig +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright (c) 2022 Gunar Schorcht -# -# 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_ESP_IDF_BLE - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF - - default y if MODULE_ESP_BLE - - help - ESP-IDF code for Bluetooth LE interface. diff --git a/cpu/esp32/esp-idf/common/Kconfig b/cpu/esp32/esp-idf/common/Kconfig deleted file mode 100644 index a8c0a73959bf..000000000000 --- a/cpu/esp32/esp-idf/common/Kconfig +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2022 Gunar Schorcht -# -# 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_ESP_IDF_COMMON - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF - help - Common ESP-IDF code required for the RIOT port regardless of - additional modules. diff --git a/cpu/esp32/esp-idf/efuse/Kconfig b/cpu/esp32/esp-idf/efuse/Kconfig deleted file mode 100644 index 0e36c16baaa2..000000000000 --- a/cpu/esp32/esp-idf/efuse/Kconfig +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright (c) 2022 Gunar Schorcht -# -# 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_ESP_IDF_EFUSE - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF - help - ESP-IDF code for accessing eFuse bits of ESP32 SoCs, as required for - accessing the MAC addresses of network devices or accessing the - external SPI RAM. diff --git a/cpu/esp32/esp-idf/eth/Kconfig b/cpu/esp32/esp-idf/eth/Kconfig deleted file mode 100644 index 90a571c963d0..000000000000 --- a/cpu/esp32/esp-idf/eth/Kconfig +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2021 HAW Hamburg -# 2022 Gunar Schorcht -# -# 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_ESP_IDF_ETH - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF - help - ESP-IDF code required for the Ethernet network device. diff --git a/cpu/esp32/esp-idf/event/Kconfig b/cpu/esp32/esp-idf/event/Kconfig deleted file mode 100644 index 8ff5523d7f68..000000000000 --- a/cpu/esp32/esp-idf/event/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright (c) 2022 Gunar Schorcht -# -# 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_ESP_IDF_EVENT - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF - help - ESP-IDF code for event handling as required for network devices. diff --git a/cpu/esp32/esp-idf/gpio/Kconfig b/cpu/esp32/esp-idf/gpio/Kconfig deleted file mode 100644 index 347f96b99043..000000000000 --- a/cpu/esp32/esp-idf/gpio/Kconfig +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright (c) 2022 Gunar Schorcht -# -# 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_ESP_IDF_GPIO - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF - - default y if MODULE_PERIPH_GPIO - - help - ESP-IDF code for peripheral GPIO. - -config MODULE_ESP_IDF_GPIO_HAL - bool "Use ESP-IDF GPIO Hardware Abstraction Layer" - depends on TEST_KCONFIG diff --git a/cpu/esp32/esp-idf/heap/Kconfig b/cpu/esp32/esp-idf/heap/Kconfig deleted file mode 100644 index f056d3eb17e8..000000000000 --- a/cpu/esp32/esp-idf/heap/Kconfig +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright (c) 2021 HAW Hamburg -# 2022 Gunar Schorcht -# -# 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_ESP_IDF_HEAP - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF - default y if MODULE_LCD_PARALLEL_LL_MCU - select PACKAGE_TLSF - help - ESP-IDF heap library. This library is required if external SPI RAM - or the WiFi interface is used. diff --git a/cpu/esp32/esp-idf/lcd/Kconfig b/cpu/esp32/esp-idf/lcd/Kconfig deleted file mode 100644 index 1dd3a89071d5..000000000000 --- a/cpu/esp32/esp-idf/lcd/Kconfig +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright (c) 2022 Gunar Schorcht -# -# 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_ESP_IDF_LCD - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF - - default y if MODULE_LCD_PARALLEL_LL_MCU - - help - ESP-IDF code for peripheral GPIO. diff --git a/cpu/esp32/esp-idf/nvs_flash/Kconfig b/cpu/esp32/esp-idf/nvs_flash/Kconfig deleted file mode 100644 index 33c6fad9700e..000000000000 --- a/cpu/esp32/esp-idf/nvs_flash/Kconfig +++ /dev/null @@ -1,17 +0,0 @@ -# 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_ESP_IDF_NVS_FLASH - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF - - select MODULE_MTD - - help - ESP-IDF non-volatile storage library. This library is required if - the WiFi interface is used. diff --git a/cpu/esp32/esp-idf/rmt/Kconfig b/cpu/esp32/esp-idf/rmt/Kconfig deleted file mode 100644 index 6cd90fe495e0..000000000000 --- a/cpu/esp32/esp-idf/rmt/Kconfig +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright (c) 2022 Gunar Schorcht -# -# 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_ESP_IDF_RMT - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF && HAS_ESP_RMT - - default y if MODULE_WS281X_ESP32 && MODULE_WS281X_ESP32_HW - - help - ESP-IDF code for peripheral GPIO. diff --git a/cpu/esp32/esp-idf/sdmmc/Kconfig b/cpu/esp32/esp-idf/sdmmc/Kconfig deleted file mode 100644 index d3bbea952bf8..000000000000 --- a/cpu/esp32/esp-idf/sdmmc/Kconfig +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright (c) 2021 HAW Hamburg -# 2022 Gunar Schorcht -# -# 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_ESP_IDF_SDMMC - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF - default y if MODULE_PERIPH_SDMMC - select PACKAGE_TLSF - help - ESP-IDF heap library. This library is required if external SPI RAM - or the WiFi interface is used. diff --git a/cpu/esp32/esp-idf/spi_flash/Kconfig b/cpu/esp32/esp-idf/spi_flash/Kconfig deleted file mode 100644 index a27e1876d343..000000000000 --- a/cpu/esp32/esp-idf/spi_flash/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright (c) 2022 Gunar Schorcht -# -# 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_ESP_IDF_SPI_FLASH - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF - help - ESP-IDF code for accessing external SPI Flash. diff --git a/cpu/esp32/esp-idf/spi_ram/Kconfig b/cpu/esp32/esp-idf/spi_ram/Kconfig deleted file mode 100644 index 3c0118e984d4..000000000000 --- a/cpu/esp32/esp-idf/spi_ram/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright (c) 2022 Gunar Schorcht -# -# 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_ESP_IDF_SPI_RAM - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF - help - ESP-IDF code for accessing external SPI RAM. diff --git a/cpu/esp32/esp-idf/usb/Kconfig b/cpu/esp32/esp-idf/usb/Kconfig deleted file mode 100644 index db41973f8ffc..000000000000 --- a/cpu/esp32/esp-idf/usb/Kconfig +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2022 Gunar Schorcht -# -# 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_ESP_IDF_USB - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF - default y if MODULE_PERIPH_USBDEV - help - ESP-IDF code for USB. diff --git a/cpu/esp32/esp-idf/wifi/Kconfig b/cpu/esp32/esp-idf/wifi/Kconfig deleted file mode 100644 index f971e02809dc..000000000000 --- a/cpu/esp32/esp-idf/wifi/Kconfig +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright (c) 2022 Gunar Schorcht -# -# 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_ESP_IDF_WIFI - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF - - select MODULE_ESP_IDF_ADC - - help - ESP-IDF code required for accessing the WiFi interface. diff --git a/cpu/esp32/esp-idf/wpa_supplicant/Kconfig b/cpu/esp32/esp-idf/wpa_supplicant/Kconfig index 7faa85116457..365ff86cecad 100644 --- a/cpu/esp32/esp-idf/wpa_supplicant/Kconfig +++ b/cpu/esp32/esp-idf/wpa_supplicant/Kconfig @@ -6,13 +6,6 @@ # directory for more details. # -config MODULE_ESP_IDF_WPA_SUPPLICANT - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF - help - ESP-IDF WPA supplicant. - rsource "esp_supplicant/Kconfig" rsource "port/Kconfig" rsource "src/ap/Kconfig" diff --git a/cpu/esp32/esp-idf/wpa_supplicant/esp_supplicant/Kconfig b/cpu/esp32/esp-idf/wpa_supplicant/esp_supplicant/Kconfig deleted file mode 100644 index cd3cb566201f..000000000000 --- a/cpu/esp32/esp-idf/wpa_supplicant/esp_supplicant/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# 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_ESP_IDF_WPA_SUPPLICANT_ESP_SUPPLICANT - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF - help - Additional ESP supplicant code for ESP-IDF WPA supplicant. diff --git a/cpu/esp32/esp-idf/wpa_supplicant/port/Kconfig b/cpu/esp32/esp-idf/wpa_supplicant/port/Kconfig deleted file mode 100644 index 2f0b7999b5ce..000000000000 --- a/cpu/esp32/esp-idf/wpa_supplicant/port/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# 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_ESP_IDF_WPA_SUPPLICANT_PORT - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF - help - ESP-IDF WPA supplicant port code. diff --git a/cpu/esp32/esp-idf/wpa_supplicant/src/ap/Kconfig b/cpu/esp32/esp-idf/wpa_supplicant/src/ap/Kconfig deleted file mode 100644 index 4607821bcec1..000000000000 --- a/cpu/esp32/esp-idf/wpa_supplicant/src/ap/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# 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_ESP_IDF_WPA_SUPPLICANT_AP - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF - help - AP code for ESP-IDF WPA supplicant. diff --git a/cpu/esp32/esp-idf/wpa_supplicant/src/common/Kconfig b/cpu/esp32/esp-idf/wpa_supplicant/src/common/Kconfig deleted file mode 100644 index 233121658065..000000000000 --- a/cpu/esp32/esp-idf/wpa_supplicant/src/common/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# 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_ESP_IDF_WPA_SUPPLICANT_COMMON - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF - help - Common code for ESP-IDF WPA supplicant. diff --git a/cpu/esp32/esp-idf/wpa_supplicant/src/crypto/Kconfig b/cpu/esp32/esp-idf/wpa_supplicant/src/crypto/Kconfig deleted file mode 100644 index 477149e3fc41..000000000000 --- a/cpu/esp32/esp-idf/wpa_supplicant/src/crypto/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# 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_ESP_IDF_WPA_SUPPLICANT_CRYPTO - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF - help - Crypto code for ESP-IDF WPA supplicant. diff --git a/cpu/esp32/esp-idf/wpa_supplicant/src/eap_peer/Kconfig b/cpu/esp32/esp-idf/wpa_supplicant/src/eap_peer/Kconfig deleted file mode 100644 index cd96b13d6244..000000000000 --- a/cpu/esp32/esp-idf/wpa_supplicant/src/eap_peer/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# 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_ESP_IDF_WPA_SUPPLICANT_RSN_SUPP - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF - help - RSN support code for ESP-IDF WPA supplicant. diff --git a/cpu/esp32/esp-idf/wpa_supplicant/src/rsn_supp/Kconfig b/cpu/esp32/esp-idf/wpa_supplicant/src/rsn_supp/Kconfig deleted file mode 100644 index 4607821bcec1..000000000000 --- a/cpu/esp32/esp-idf/wpa_supplicant/src/rsn_supp/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# 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_ESP_IDF_WPA_SUPPLICANT_AP - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF - help - AP code for ESP-IDF WPA supplicant. diff --git a/cpu/esp32/esp-idf/wpa_supplicant/src/tls/Kconfig b/cpu/esp32/esp-idf/wpa_supplicant/src/tls/Kconfig deleted file mode 100644 index b948f3574d70..000000000000 --- a/cpu/esp32/esp-idf/wpa_supplicant/src/tls/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# 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_ESP_IDF_WPA_SUPPLICANT_TLS - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF - help - TLS code for ESP-IDF WPA supplicant. diff --git a/cpu/esp32/esp-idf/wpa_supplicant/src/utils/Kconfig b/cpu/esp32/esp-idf/wpa_supplicant/src/utils/Kconfig deleted file mode 100644 index 70c8279df84a..000000000000 --- a/cpu/esp32/esp-idf/wpa_supplicant/src/utils/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# 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_ESP_IDF_WPA_SUPPLICANT_UTILS - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF - help - Utilities code for ESP-IDF WPA supplicant. diff --git a/cpu/esp32/esp-idf/wpa_supplicant/src/wps/Kconfig b/cpu/esp32/esp-idf/wpa_supplicant/src/wps/Kconfig deleted file mode 100644 index a8a58ac17338..000000000000 --- a/cpu/esp32/esp-idf/wpa_supplicant/src/wps/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# 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_ESP_IDF_WPA_SUPPLICANT_WPS - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF - help - WPS code for ESP-IDF WPA supplicant. diff --git a/cpu/esp32/esp-lcd/Kconfig b/cpu/esp32/esp-lcd/Kconfig index 0f534c6f1e5b..a767fcc66544 100644 --- a/cpu/esp32/esp-lcd/Kconfig +++ b/cpu/esp32/esp-lcd/Kconfig @@ -5,26 +5,7 @@ # directory for more details. # -menuconfig MODULE_ESP_LCD - bool "Enable LCD low-level parallel interface driver" - depends on MODULE_LCD - default y if HAVE_LCD_PARALLEL_LL_MCU - help - Enabe the MCU-driven low-level MCU 8080 8-/16-bit parallel interface - driver. - -if MODULE_ESP_LCD - -config MODULE_ESP_LCD_GPIO - bool "GPIO-driven low-level parallel interface driver" - depends on !CPU_FAM_ESP32 && !CPU_FAM_ESP32S2 && !CPU_FAM_ESP32S3 - default y - help - The ESP32x SoC variant used does not have a peripheral for the parallel - low-level interface. However, it can be emulated with special low-level - GPIO operations. It is faster than the GPIO-driven 8-/16-bit parallel - interface implemented in the LCD driver, but requires 4 kByte RAM for - 8-bit data bus width and 8 kByte RAM for 16-bit data bus width. +if USEMODULE_ESP_LCD config LCD_WRITE_CLOCK_MHZ int "LCD write clock rate in MHz" diff --git a/cpu/esp32/esp32.config b/cpu/esp32/esp32.config deleted file mode 100644 index 811b1f37127b..000000000000 --- a/cpu/esp32/esp32.config +++ /dev/null @@ -1 +0,0 @@ -CONFIG_MODULE_PM_LAYERED=y diff --git a/cpu/esp32/periph/Kconfig b/cpu/esp32/periph/Kconfig index ca1f70d91e83..778dca8bf568 100644 --- a/cpu/esp32/periph/Kconfig +++ b/cpu/esp32/periph/Kconfig @@ -5,36 +5,10 @@ # directory for more details. # -if TEST_KCONFIG - -config MODULE_ESP_RTC_TIMER_32K - bool - depends on HAS_ESP_RTC_TIMER_32K - default y if MODULE_PERIPH_RTT - help - Use RTC timer with external 32.768 kHz crystal as RTT. - -config MODULE_PERIPH_RTT_HW_SYS - bool - default y if MODULE_PERIPH_RTT - -config MODULE_PERIPH_RTT_HW_RTC - bool - default y if MODULE_PERIPH_RTT - -config MODULE_ESP_HW_COUNTER - bool "Use hardware counter as low-level timer peripheral" - depends on HAS_ESP_HW_COUNTER - depends on MODULE_PERIPH_TIMER - help - ESP SoCs with Xtensa cores typically have a set of CCOUNT and CCOMPARE - registers that can be used as low-level timer peripherals. Use this - option to enable these CCOUNT and CCOMPARE register as low-level timer. - choice ESP_FLASHPAGE_CAPACITY bool "Flashpage capacity" default ESP_FLASHPAGE_CAPACITY_512K - depends on MODULE_PERIPH_FLASHPAGE + depends on USEMODULE_PERIPH_FLASHPAGE config ESP_FLASHPAGE_CAPACITY_64K bool "64 kByte" config ESP_FLASHPAGE_CAPACITY_128K @@ -48,5 +22,3 @@ choice ESP_FLASHPAGE_CAPACITY config ESP_FLASHPAGE_CAPACITY_2M bool "2 MByte" endchoice - -endif # TEST_KCONFIG diff --git a/cpu/esp32/periph/Kconfig.i2c b/cpu/esp32/periph/Kconfig.i2c deleted file mode 100644 index fb4daba14b01..000000000000 --- a/cpu/esp32/periph/Kconfig.i2c +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright (c) 2021 HAW Hamburg -# -# This file is subject to the terms and conditions of the GNU Lesser -# General Public License v2.1. See the file LICENSE in the top level -# directory for more details. -# - -if TEST_KCONFIG - -choice ESP32_I2C_IMPLEMENTATION - bool "I2C implementation" - depends on MODULE_PERIPH_I2C - help - Due to the poor and faulty hardware I2C implementation the software one - is used by default for the moment. - -config MODULE_ESP_I2C_SW - bool "Software" - select MODULE_PERIPH_I2C_SW - -config MODULE_ESP_I2C_HW - bool "Hardware" - select MODULE_CORE_THREAD_FLAGS - select MODULE_ZTIMER - select MODULE_ZTIMER_MSEC - select MODULE_PERIPH_I2C_HW - -endchoice - -config MODULE_PERIPH_I2C_HW - bool - help - Hardware implementation of I2C. - -endif # TEST_KCONFIG diff --git a/cpu/esp32/stdio_usb_serial_jtag/Kconfig b/cpu/esp32/stdio_usb_serial_jtag/Kconfig deleted file mode 100644 index 8965c6aa5be4..000000000000 --- a/cpu/esp32/stdio_usb_serial_jtag/Kconfig +++ /dev/null @@ -1,9 +0,0 @@ -choice STDIO_IMPLEMENTATION - -config MODULE_STDIO_USB_SERIAL_JTAG - bool "STDIO via ESP32 Debug USB Serial/JTAG interface" - depends on TEST_KCONFIG - depends on CPU_FAM_ESP32C3 || CPU_FAM_ESP32S3 - select MODULE_TSRB - -endchoice diff --git a/cpu/esp8266/Kconfig b/cpu/esp8266/Kconfig index f5fe13b4cdff..15954de294a2 100644 --- a/cpu/esp8266/Kconfig +++ b/cpu/esp8266/Kconfig @@ -12,20 +12,6 @@ config CPU_FAM_ESP8266 bool select CPU_COMMON_ESP select CPU_CORE_XTENSA_L106 - select HAS_ARCH_ESP8266 - select HAS_CPU_ESP8266 - - select PACKAGE_ESP8266_SDK if TEST_KCONFIG - select MODULE_ESP_SDK if TEST_KCONFIG - select MODULE_ESP_IDF_ESP8266 if TEST_KCONFIG - select MODULE_ESP_IDF_NVS_FLASH if TEST_KCONFIG - select MODULE_ESP_IDF_SPI_FLASH if TEST_KCONFIG - select MODULE_ESP_IDF_UTIL if TEST_KCONFIG - select MODULE_ESP_IDF_WPA_SUPPLICANT_CRYPTO if TEST_KCONFIG - select MODULE_ESP_SDK if TEST_KCONFIG - select MODULE_PERIPH_COMMON if TEST_KCONFIG - select MODULE_RTT_RTC if HAS_PERIPH_RTT && MODULE_PERIPH_RTC - select MODULE_ZTIMER_NO_PERIPH_RTT if MODULE_ESP_WIFI_ANY ## CPU Models config CPU_MODEL_ESP8266EX @@ -36,17 +22,6 @@ config CPU_MODEL_ESP8266_ESP_12X bool select CPU_FAM_ESP8266 -## Definition of specific features -config HAS_ARCH_ESP8266 - bool - help - Indicates that the current architecture is ESP8266. - -config HAS_CPU_ESP8266 - bool - help - Indicates that the current CPU is 'esp8266'. - ## Common CPU symbols config CPU_CORE default "xtensa-l106" if CPU_CORE_XTENSA_L106 @@ -62,7 +37,6 @@ config CPU default "esp8266" if CPU_FAM_ESP8266 menu "ESP8266 specific configurations" - depends on TEST_KCONFIG depends on HAS_ARCH_ESP8266 choice @@ -75,18 +49,6 @@ menu "ESP8266 specific configurations" bool "160 MHz" endchoice - config MODULE_ESP_SW_TIMER - bool "Use software timer as low-level timer peripheral" - depends on MODULE_PERIPH_TIMER - - rsource "sdk/Kconfig" - rsource "vendor/Kconfig" - endmenu source "$(RIOTCPU)/esp_common/Kconfig" - -config MODULE_ESP_I2C_SW - bool - default y if MODULE_PERIPH_I2C - select MODULE_PERIPH_I2C_SW diff --git a/cpu/esp8266/Makefile.features b/cpu/esp8266/Makefile.features index 75114727e72b..1007d04d0fed 100644 --- a/cpu/esp8266/Makefile.features +++ b/cpu/esp8266/Makefile.features @@ -7,9 +7,3 @@ CPU_CORE = xtensa-l106 include $(RIOTCPU)/esp_common/Makefile.features FEATURES_PROVIDED += arch_esp8266 - -# This configuration enables modules that are only available when using Kconfig -# module modelling -ifeq (1, $(TEST_KCONFIG)) - KCONFIG_ADD_CONFIG += $(RIOTCPU)/esp8266/esp8266.config -endif diff --git a/cpu/esp8266/esp8266.config b/cpu/esp8266/esp8266.config deleted file mode 100644 index 181ceff02378..000000000000 --- a/cpu/esp8266/esp8266.config +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_MODULE_MTD=y -CONFIG_MODULE_PS=y diff --git a/cpu/esp8266/include/periph_cpu.h b/cpu/esp8266/include/periph_cpu.h index cb84b376cf51..bdee5a5bed49 100644 --- a/cpu/esp8266/include/periph_cpu.h +++ b/cpu/esp8266/include/periph_cpu.h @@ -24,6 +24,7 @@ #include "eagle_soc.h" #include "cpu_conf.h" +#include "macros/units.h" #ifdef __cplusplus extern "C" { @@ -264,6 +265,19 @@ typedef enum { HSPI = 1, /**< HSPI interface controller */ } spi_ctrl_t; +/** + * @brief Override SPI clock speed values + * @{ + */ +#define HAVE_SPI_CLK_T +typedef enum { + SPI_CLK_100KHZ = KHZ(100), /**< drive the SPI bus with 100KHz */ + SPI_CLK_400KHZ = KHZ(400), /**< drive the SPI bus with 400KHz */ + SPI_CLK_1MHZ = MHZ(1), /**< drive the SPI bus with 1MHz */ + SPI_CLK_5MHZ = MHZ(5), /**< drive the SPI bus with 5MHz */ + SPI_CLK_10MHZ = MHZ(10), /**< drive the SPI bus with 10MHz */ +} spi_clk_t; + /** * @brief SPI configuration structure type */ diff --git a/cpu/esp8266/periph/spi.c b/cpu/esp8266/periph/spi.c index 4782593e9310..337778311151 100644 --- a/cpu/esp8266/periph/spi.c +++ b/cpu/esp8266/periph/spi.c @@ -262,28 +262,11 @@ void IRAM_ATTR spi_acquire(spi_t bus, spi_cs_t cs, spi_mode_t mode, spi_clk_t cl * https://www.espressif.com/sites/default/files/documentation/esp8266-technical_reference_en.pdf */ - uint32_t spi_clkdiv_pre; - uint32_t spi_clkcnt_N; - - switch (clk) { - case SPI_CLK_10MHZ: spi_clkdiv_pre = 2; /* predivides 80 MHz to 40 MHz */ - spi_clkcnt_N = 4; /* 4 cycles results into 10 MHz */ - break; - case SPI_CLK_5MHZ: spi_clkdiv_pre = 2; /* predivides 80 MHz to 40 MHz */ - spi_clkcnt_N = 8; /* 8 cycles results into 5 MHz */ - break; - case SPI_CLK_1MHZ: spi_clkdiv_pre = 2; /* predivides 80 MHz to 40 MHz */ - spi_clkcnt_N = 40; /* 40 cycles results into 1 MHz */ - break; - case SPI_CLK_400KHZ: spi_clkdiv_pre = 20; /* predivides 80 MHz to 4 MHz */ - spi_clkcnt_N = 10; /* 10 cycles results into 400 kHz */ - break; - case SPI_CLK_100KHZ: spi_clkdiv_pre = 20; /* predivides 80 MHz to 4 MHz */ - spi_clkcnt_N = 40; /* 20 cycles results into 100 kHz */ - break; - default: spi_clkdiv_pre = 20; /* predivides 80 MHz to 4 MHz */ - spi_clkcnt_N = 40; /* 20 cycles results into 100 kHz */ - } + uint32_t spi_clkdiv_pre; /* 13 bit */ + uint32_t spi_clkcnt_N; /* 6 bit */ + + spi_clkcnt_N = 2; + spi_clkdiv_pre = (MHZ(80)/spi_clkcnt_N) / clk; /* register values are set to deviders-1 */ spi_clkdiv_pre--; diff --git a/cpu/esp8266/sdk/Kconfig b/cpu/esp8266/sdk/Kconfig deleted file mode 100644 index 182509c31ca4..000000000000 --- a/cpu/esp8266/sdk/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# 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_ESP_SDK - bool - depends on TEST_KCONFIG - depends on HAS_ARCH_ESP8266 diff --git a/cpu/esp8266/vendor/Kconfig b/cpu/esp8266/vendor/Kconfig deleted file mode 100644 index 101a93369b90..000000000000 --- a/cpu/esp8266/vendor/Kconfig +++ /dev/null @@ -1,9 +0,0 @@ -# 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. -# - -rsource "esp-gdbstub/Kconfig" -rsource "esp-idf/Kconfig" diff --git a/cpu/esp8266/vendor/esp-gdbstub/Kconfig b/cpu/esp8266/vendor/esp-gdbstub/Kconfig deleted file mode 100644 index 7495b513f9eb..000000000000 --- a/cpu/esp8266/vendor/esp-gdbstub/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# 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_ESP_GDBSTUB - bool "gdbstub interface support" - depends on TEST_KCONFIG - depends on HAS_ARCH_ESP8266 diff --git a/cpu/esp8266/vendor/esp-idf/Kconfig b/cpu/esp8266/vendor/esp-idf/Kconfig index 9b9ac22180b3..7817ad0be378 100644 --- a/cpu/esp8266/vendor/esp-idf/Kconfig +++ b/cpu/esp8266/vendor/esp-idf/Kconfig @@ -5,12 +5,6 @@ # directory for more details. # -config MODULE_ESP_IDF - bool - depends on TEST_KCONFIG - depends on HAS_ARCH_ESP8266 - -rsource "esp8266/source/Kconfig" rsource "heap/src/Kconfig" rsource "nvs_flash/src/Kconfig" rsource "spi_flash/Kconfig" diff --git a/cpu/esp8266/vendor/esp-idf/esp8266/source/Kconfig b/cpu/esp8266/vendor/esp-idf/esp8266/source/Kconfig deleted file mode 100644 index cc9a67af364b..000000000000 --- a/cpu/esp8266/vendor/esp-idf/esp8266/source/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# 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_ESP_IDF_ESP8266 - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF diff --git a/cpu/esp8266/vendor/esp-idf/heap/src/Kconfig b/cpu/esp8266/vendor/esp-idf/heap/src/Kconfig deleted file mode 100644 index aa89bbed0a2a..000000000000 --- a/cpu/esp8266/vendor/esp-idf/heap/src/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# 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_ESP_IDF_HEAP - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF diff --git a/cpu/esp8266/vendor/esp-idf/nvs_flash/src/Kconfig b/cpu/esp8266/vendor/esp-idf/nvs_flash/src/Kconfig deleted file mode 100644 index 6cd15a43d173..000000000000 --- a/cpu/esp8266/vendor/esp-idf/nvs_flash/src/Kconfig +++ /dev/null @@ -1,14 +0,0 @@ -# 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_ESP_IDF_NVS_FLASH - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF - select MODULE_CPP - help - Non-volatile storage library. diff --git a/cpu/esp8266/vendor/esp-idf/spi_flash/Kconfig b/cpu/esp8266/vendor/esp-idf/spi_flash/Kconfig deleted file mode 100644 index 1adc89c982ef..000000000000 --- a/cpu/esp8266/vendor/esp-idf/spi_flash/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# 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_ESP_IDF_SPI_FLASH - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF diff --git a/cpu/esp8266/vendor/esp-idf/util/src/Kconfig b/cpu/esp8266/vendor/esp-idf/util/src/Kconfig deleted file mode 100644 index 4253af51a0af..000000000000 --- a/cpu/esp8266/vendor/esp-idf/util/src/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# 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_ESP_IDF_UTIL - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF diff --git a/cpu/esp8266/vendor/esp-idf/wpa_supplicant/port/Kconfig b/cpu/esp8266/vendor/esp-idf/wpa_supplicant/port/Kconfig deleted file mode 100644 index 7b07f05dbd86..000000000000 --- a/cpu/esp8266/vendor/esp-idf/wpa_supplicant/port/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# 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_ESP_IDF_WPA_SUPPLICANT_PORT - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF diff --git a/cpu/esp8266/vendor/esp-idf/wpa_supplicant/src/crypto/Kconfig b/cpu/esp8266/vendor/esp-idf/wpa_supplicant/src/crypto/Kconfig deleted file mode 100644 index 6799ff5c783e..000000000000 --- a/cpu/esp8266/vendor/esp-idf/wpa_supplicant/src/crypto/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# 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_ESP_IDF_WPA_SUPPLICANT_CRYPTO - bool - depends on TEST_KCONFIG - depends on MODULE_ESP_IDF diff --git a/cpu/esp_common/Kconfig b/cpu/esp_common/Kconfig index 8a201e299d2e..be9aa6e4c5e4 100644 --- a/cpu/esp_common/Kconfig +++ b/cpu/esp_common/Kconfig @@ -6,141 +6,18 @@ config CPU_ARCH_XTENSA bool - select HAS_ARCH_32BIT - select HAS_ARCH_ESP - select HAS_ARCH_ESP_XTENSA help Xtensa based architecture is used for the ESP8266 or the ESP32x SoC variant config CPU_ARCH_RISCV bool - select HAS_ARCH_32BIT - select HAS_ARCH_ESP - select HAS_ARCH_ESP_RISCV help RISC-V based architecture is used for the ESP32x SoC variant. config CPU_COMMON_ESP bool - select HAS_CPP - select HAS_ESP_NOW - select HAS_ESP_SPIFFS - select HAS_ESP_WIFI - select HAS_ESP_WIFI_AP - select HAS_LIBSTDCPP - select HAS_NEWLIB - select HAS_PERIPH_CPUID - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_HWRNG - select HAS_PERIPH_PM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_RTT_OVERFLOW - select HAS_PERIPH_RTT_SET_COUNTER - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART_MODECFG - select HAS_SSP - -## Declaration of specific features -config HAS_ESP_SPIFFS - bool - help - Indicates that a Serial Peripheral Interface Flash File System can be - used. - -config HAS_ESP_WIFI - bool - help - Indicates that an ESP WiFi radio is present. - -config HAS_ESP_WIFI_AP - bool - help - Indicates that ESP WiFi SoftAP support is present. - -config HAS_ESP_NOW - bool - help - Indicates that an ESP NOW-compatible radio is present. - -config HAS_ESP_JTAG - bool - help - Indicates that a JTAG interface is present. - -config HAS_ARCH_ESP - bool - help - Indicates that an 'ESP' architecture is being used. - -config HAS_ARCH_ESP_XTENSA - bool - help - Indicates that an Xtensa-based 'ESP' architecture is being used. - -config HAS_ARCH_ESP_RISCV - bool - help - Indicates that an RISC-V-based 'ESP' architecture is being used. - -config HAS_ESP_WIFI_ENTERPRISE - bool - help - Indicates that the platform supports WPA2 enterprise mode for the WiFi - interface. ## Common CPU symbols config CPU_ARCH default "xtensa" if CPU_ARCH_XTENSA default "rv32" if CPU_ARCH_RISCV - -config MODULE_ESP_COMMON - bool - depends on TEST_KCONFIG - depends on CPU_COMMON_ESP - default y - select MODULE_LOG # override default log implementation by default - select MODULE_PERIPH - select MODULE_ESP_IDF - select MODULE_CORE_THREAD_FLAGS if MODULE_ZTIMER_MSEC - help - Common code module for ESP SoCs. - -config MODULE_PERIPH_FLASH - bool - depends on TEST_KCONFIG - depends on CPU_COMMON_ESP - default y if MODULE_MTD - help - Low-level MTD flash driver implementation for ESP SoCs. - -if TEST_KCONFIG - -menu "ESP configurations" - -config MODULE_ESP_LOG_COLORED - bool - default y if MODULE_LOG_COLOR - -config MODULE_ESP_LOG_TAGGED - bool "Add additional information to the log output" - help - Adds the type of the message, the system time in ms and a tag (module - or function) to the output. - -config MODULE_ESP_LOG_STARTUP - bool "Add additional startup information to the log output" - -config MODULE_ESP_QEMU - bool "Simulate ESP with QEMU" - -rsource "esp-riscv/Kconfig" -rsource "esp-xtensa/Kconfig" -rsource "freertos/Kconfig" -rsource "periph/Kconfig" -rsource "vendor/xtensa/Kconfig" - -endmenu - -endif # TEST_KCONFIG diff --git a/cpu/esp_common/Makefile.features b/cpu/esp_common/Makefile.features index d36e47dcee12..c15babdec883 100644 --- a/cpu/esp_common/Makefile.features +++ b/cpu/esp_common/Makefile.features @@ -32,9 +32,3 @@ endif FEATURES_CONFLICT += esp_wifi_ap:esp_now FEATURES_CONFLICT_MSG += "ESP_NOW and ESP_WIFI_AP can not be used at the same time." - -# This configuration enables modules that are only available when using Kconfig -# module modelling -ifeq (1, $(TEST_KCONFIG)) - KCONFIG_ADD_CONFIG += $(RIOTCPU)/esp_common/esp_common.config -endif diff --git a/cpu/esp_common/esp-riscv/Kconfig b/cpu/esp_common/esp-riscv/Kconfig deleted file mode 100644 index 95ac4e951282..000000000000 --- a/cpu/esp_common/esp-riscv/Kconfig +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2022 Gunar Schorcht -# -# 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_ESP_RISCV - bool - depends on TEST_KCONFIG - depends on HAS_ARCH_ESP_RISCV - default y - help - Platform-dependent code for Xtensa-based ESP SoCs. diff --git a/cpu/esp_common/esp-xtensa/Kconfig b/cpu/esp_common/esp-xtensa/Kconfig deleted file mode 100644 index d697dfe05b20..000000000000 --- a/cpu/esp_common/esp-xtensa/Kconfig +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2022 Gunar Schorcht -# -# 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_ESP_XTENSA - bool - depends on TEST_KCONFIG - depends on HAS_ARCH_ESP_XTENSA - default y - help - Platform-dependent code for Xtensa-based ESP SoCs. diff --git a/cpu/esp_common/esp_common.config b/cpu/esp_common/esp_common.config deleted file mode 100644 index 52e78b7c00c5..000000000000 --- a/cpu/esp_common/esp_common.config +++ /dev/null @@ -1,4 +0,0 @@ -CONFIG_MODULE_RANDOM=y -CONFIG_MODULE_PERIPH_HWRNG=y -CONFIG_MODULE_PERIPH_UART=y -CONFIG_MODULE_NEWLIB=y diff --git a/cpu/esp_common/freertos/Kconfig b/cpu/esp_common/freertos/Kconfig deleted file mode 100644 index fabedae262ce..000000000000 --- a/cpu/esp_common/freertos/Kconfig +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright (c) 2021 HAW Hamburg -# -# This file is subject to the terms and conditions of the GNU Lesser -# General Public License v2.1. See the file LICENSE in the top level -# directory for more details. -# - -if TEST_KCONFIG && HAS_ARCH_ESP - -config MODULE_ESP_FREERTOS - bool - default y - help - FreeRTOS to RIOT-OS adaption module for ESP SoCs source code compatibility. - -config MODULE_ESP_FREERTOS_COMMON - bool - default MODULE_ESP_FREERTOS - -endif # TEST_KCONFIG && HAS_ARCH_ESP diff --git a/cpu/esp_common/periph/Kconfig b/cpu/esp_common/periph/Kconfig deleted file mode 100644 index 5b9cd63d11d7..000000000000 --- a/cpu/esp_common/periph/Kconfig +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright (c) 2021 HAW Hamburg -# -# This file is subject to the terms and conditions of the GNU Lesser -# General Public License v2.1. See the file LICENSE in the top level -# directory for more details. -# - -if TEST_KCONFIG - -config MODULE_ESP_COMMON_PERIPH - bool - depends on HAS_ARCH_ESP - default y - -config MODULE_PERIPH_I2C_SW - bool - help - Software implementation of I2C. - -endif # TEST_KCONFIG diff --git a/cpu/esp_common/vendor/xtensa/Kconfig b/cpu/esp_common/vendor/xtensa/Kconfig deleted file mode 100644 index 16a525cea43e..000000000000 --- a/cpu/esp_common/vendor/xtensa/Kconfig +++ /dev/null @@ -1,15 +0,0 @@ -# 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_XTENSA - bool - depends on TEST_KCONFIG - depends on HAS_ARCH_ESP_XTENSA - default y - help - Third-party software components used by the RIOT port for Xtensa-based - ESP SoCs. diff --git a/cpu/fe310/Kconfig b/cpu/fe310/Kconfig index c8e3a02f37c5..d8a8713dcf96 100644 --- a/cpu/fe310/Kconfig +++ b/cpu/fe310/Kconfig @@ -8,21 +8,6 @@ config CPU_FAM_FE310 bool select CPU_CORE_RV32IMAC - select HAS_CPU_FE310 - select HAS_PERIPH_CPUID - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_PM - select HAS_PERIPH_PMP - select HAS_PERIPH_PLIC - select HAS_PERIPH_RTT_OVERFLOW - select HAS_PERIPH_RTT_SET_COUNTER - select HAS_PERIPH_WDT - - select MODULE_PERIPH_PLIC if TEST_KCONFIG - select MODULE_PERIPH_CORETIMER if MODULE_PERIPH_TIMER && HAS_PERIPH_CORETIMER - select MODULE_PERIPH_RTT if MODULE_PERIPH_RTC && HAS_PERIPH_RTT - select MODULE_ZTIMER_NO_PERIPH_RTT if TEST_KCONFIG && MODULE_ZTIMER config CPU_MODEL_FE310_G000 bool @@ -32,12 +17,6 @@ config CPU_MODEL_FE310_G002 bool select CPU_FAM_FE310 -## Definition of specific features -config HAS_CPU_FE310 - bool - help - Indicates that a 'fe310' cpu is being used. - config CPU_FAM default "fe310" if CPU_FAM_FE310 @@ -52,7 +31,5 @@ config CPU_CORE default "rv32imac" if CPU_CORE_RV32IMAC rsource "Kconfig.clk" -rsource "periph/Kconfig" -rsource "vendor/Kconfig" source "$(RIOTCPU)/riscv_common/Kconfig" diff --git a/cpu/fe310/periph/Kconfig b/cpu/fe310/periph/Kconfig deleted file mode 100644 index 5851b1dcdf76..000000000000 --- a/cpu/fe310/periph/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# 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_PERIPH - bool - default y - help - fe310 common peripheral code. diff --git a/cpu/fe310/vendor/Kconfig b/cpu/fe310/vendor/Kconfig deleted file mode 100644 index 886c6dfb91ec..000000000000 --- a/cpu/fe310/vendor/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# 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_SIFIVE_DRIVERS_FE310 - bool - default y - depends on CPU_FAM_FE310 - help - sifive drivers for fe310. diff --git a/cpu/gd32v/Kconfig b/cpu/gd32v/Kconfig index 02e8c2a6d4f5..0cfad70cbb98 100644 --- a/cpu/gd32v/Kconfig +++ b/cpu/gd32v/Kconfig @@ -8,31 +8,6 @@ config CPU_FAM_GD32V bool select CPU_CORE_RV32IMAC - select HAS_ARCH_NUCLEI - select HAS_CPU_GD32V - select HAS_PERIPH_CLIC - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_GPIO_LL - select HAS_PERIPH_GPIO_LL_IRQ - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_HIGH - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_LOW - select HAS_PERIPH_FLASHPAGE - select HAS_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE - select HAS_PERIPH_FLASHPAGE_PAGEWISE - select HAS_PERIPH_PM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTC_MEM - select HAS_PERIPH_RTT - select HAS_PERIPH_TIMER - select HAS_PERIPH_TIMER_PERIODIC - select HAS_PERIPH_WDT - - select MODULE_PERIPH_CLIC if TEST_KCONFIG - select MODULE_PERIPH_WDT if MODULE_PERIPH_PM && HAS_PERIPH_WDT - select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV - select ZTIMER_USEC if MODULE_PERIPH_I2C - select PACKAGE_NMSIS_SDK menu "GD32V configuration" @@ -44,12 +19,6 @@ config CPU_MODEL_GD32VF103VBT6 bool select CPU_FAM_GD32V -## Definition of specific features -config HAS_CPU_GD32V - bool - help - Indicates that a 'gd32v' cpu is being used. - config CPU_FAM default "gd32v" if CPU_FAM_GD32V diff --git a/cpu/gd32v/Makefile.features b/cpu/gd32v/Makefile.features index 0d630145b37a..cf67a7b3b833 100644 --- a/cpu/gd32v/Makefile.features +++ b/cpu/gd32v/Makefile.features @@ -24,9 +24,3 @@ FEATURES_PROVIDED += periph_flashpage_in_address_space FEATURES_PROVIDED += periph_flashpage_pagewise include $(RIOTCPU)/riscv_common/Makefile.features - -# This configuration enables modules that are only available when using Kconfig -# module modelling -ifeq (1, $(TEST_KCONFIG)) - KCONFIG_ADD_CONFIG += $(RIOTCPU)/gd32v/gd32v.config -endif diff --git a/cpu/gd32v/gd32v.config b/cpu/gd32v/gd32v.config deleted file mode 100644 index 811b1f37127b..000000000000 --- a/cpu/gd32v/gd32v.config +++ /dev/null @@ -1 +0,0 @@ -CONFIG_MODULE_PM_LAYERED=y diff --git a/cpu/gd32v/periph/Kconfig b/cpu/gd32v/periph/Kconfig index f092af4a4e10..fb2451736a7d 100644 --- a/cpu/gd32v/periph/Kconfig +++ b/cpu/gd32v/periph/Kconfig @@ -5,12 +5,8 @@ # directory for more details. # -config MODULE_PERIPH - bool - default y - config PM_EWUP_USED bool "Use PA0/WKUP pin" - depends on MODULE_PM_LAYERED + depends on USEMODULE_PM_LAYERED help If enabled, the PA0/WKUP pin can be used to wake up the MCU from standby mode. diff --git a/cpu/kinetis/Kconfig b/cpu/kinetis/Kconfig index 557f506bf9d7..7d5ee8cebf80 100644 --- a/cpu/kinetis/Kconfig +++ b/cpu/kinetis/Kconfig @@ -6,47 +6,22 @@ config CPU_COMMON_KINETIS bool - select HAS_CPU_KINETIS - select HAS_PERIPH_CPUID - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_PM - select HAS_PERIPH_TIMER_QUERY_FREQS - - # enable kinetis periph drivers if available - imply MODULE_PERIPH_ICS - imply MODULE_PERIPH_MCG - imply MODULE_PERIPH_MCG_LITE - imply MODULE_PERIPH_WDOG - - select MODULE_CORE_THREAD_FLAGS if MODULE_PERIPH_I2C - select MODULE_PERIPH_TIMER if MODULE_PERIPH_RTT && HAS_PERIPH_TIMER config CPU_FAM_EA bool select CPU_COMMON_KINETIS - select HAS_PERIPH_ICS config CPU_FAM_K bool select CPU_COMMON_KINETIS - select HAS_PERIPH_FLASHPAGE - select HAS_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE - select HAS_PERIPH_FLASHPAGE_PAGEWISE - select HAS_PERIPH_MCG config CPU_FAM_L bool select CPU_COMMON_KINETIS - select HAS_PERIPH_MCG_LITE config CPU_FAM_W bool select CPU_COMMON_KINETIS - select HAS_PERIPH_FLASHPAGE - select HAS_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE - select HAS_PERIPH_FLASHPAGE_PAGEWISE - select HAS_PERIPH_MCG ## CPU Models config CPU_MODEL_MK20DX256VLH7 @@ -58,7 +33,6 @@ config CPU_MODEL_MK22FN512VLH12 bool select CPU_CORE_CORTEX_M4F select CPU_FAM_K - select HAS_PERIPH_HWRNG config CPU_MODEL_MKL43Z256VLH4 bool @@ -84,31 +58,26 @@ config CPU_MODEL_MK60DN512VLL10 bool select CPU_CORE_CORTEX_M4 select CPU_FAM_K - select HAS_PERIPH_HWRNG config CPU_MODEL_MK64FN1M0VLL12 bool select CPU_CORE_CORTEX_M4F select CPU_FAM_K - select HAS_PERIPH_HWRNG config CPU_MODEL_MKW21D256VHA5 bool select CPU_CORE_CORTEX_M4 select CPU_FAM_W - select HAS_PERIPH_HWRNG config CPU_MODEL_MKW21D512VHA5 bool select CPU_CORE_CORTEX_M4 select CPU_FAM_W - select HAS_PERIPH_HWRNG config CPU_MODEL_MKW22D512VHA5 bool select CPU_CORE_CORTEX_M4 select CPU_FAM_W - select HAS_PERIPH_HWRNG config CPU_MODEL_MKW41Z256VHT4 bool @@ -125,28 +94,6 @@ config CPU_MODEL_S9KEAZ128ACLH select CPU_CORE_CORTEX_M4 select CPU_FAM_EA -## Definition of specific features -config HAS_CPU_KINETIS - bool - help - Indicates that a 'kinetis' cpu is being used. - -config HAS_PERIPH_MCG - bool - help - Indicates that the cpu uses the Kinetis Multipurpose Clock Generator. - -config HAS_PERIPH_MCG_LITE - bool - help - Indicates that the cpu uses the lite version of the Kinetis Multipurpose Clock Generator. - -config HAS_PERIPH_ICS - bool - help - Indicates that the cpu uses the Kinetis Internal Clock Source - controller. - ## Common CPU symbols config CPU_FAM default "ea" if CPU_FAM_EA @@ -174,5 +121,3 @@ config CPU default "kinetis" if CPU_COMMON_KINETIS source "$(RIOTCPU)/cortexm_common/Kconfig" - -rsource "periph/Kconfig" diff --git a/cpu/kinetis/Makefile.features b/cpu/kinetis/Makefile.features index a3cb342f8959..e31a3836798d 100644 --- a/cpu/kinetis/Makefile.features +++ b/cpu/kinetis/Makefile.features @@ -35,9 +35,3 @@ else endif include $(RIOTCPU)/cortexm_common/Makefile.features - -# This configuration enables modules that are only available when using Kconfig -# module modelling -ifeq (1, $(TEST_KCONFIG)) - KCONFIG_CPU_CONFIG += $(RIOTCPU)/kinetis/kinetis.config -endif diff --git a/cpu/kinetis/kinetis.config b/cpu/kinetis/kinetis.config deleted file mode 100644 index 811b1f37127b..000000000000 --- a/cpu/kinetis/kinetis.config +++ /dev/null @@ -1 +0,0 @@ -CONFIG_MODULE_PM_LAYERED=y diff --git a/cpu/kinetis/periph/Kconfig b/cpu/kinetis/periph/Kconfig deleted file mode 100644 index cc80e1f9b1be..000000000000 --- a/cpu/kinetis/periph/Kconfig +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) 2021 HAW Hamburg -# -# This file is subject to the terms and conditions of the GNU Lesser -# General Public License v2.1. See the file LICENSE in the top level -# directory for more details. -# - -if TEST_KCONFIG - -config MODULE_PERIPH_WDOG - bool - help - Low-level WDOG driver. - -config MODULE_PERIPH_ICS - bool - depends on HAS_PERIPH_ICS - help - Kinetis internal clock source controller. - -config MODULE_PERIPH_MCG - bool - depends on HAS_PERIPH_MCG - help - Kinetis Multipurpose Clock Generator. - -config MODULE_PERIPH_MCG_LITE - bool - depends on HAS_PERIPH_MCG_LITE - help - Kinetis Multipurpose Clock Generator (Lite version). - -endif # TEST_KCONFIG diff --git a/cpu/lm4f120/Kconfig b/cpu/lm4f120/Kconfig index fac15060747a..82555e81a297 100644 --- a/cpu/lm4f120/Kconfig +++ b/cpu/lm4f120/Kconfig @@ -8,19 +8,11 @@ config CPU_FAM_LM4F120 bool select CPU_CORE_CORTEX_M4F - select HAS_CORTEXM_MPU - select HAS_CPU_LM4F120 config CPU_MODEL_LM4F120H5QR bool select CPU_FAM_LM4F120 -## Declaration of specific features -config HAS_CPU_LM4F120 - bool - help - Indicates that a 'lm4f120' cpu is being used. - ## Common CPU symbols config CPU_FAM default "lm4f120" if CPU_FAM_LM4F120 diff --git a/cpu/lpc1768/Kconfig b/cpu/lpc1768/Kconfig index 9bceab47eef3..492a754ae2db 100644 --- a/cpu/lpc1768/Kconfig +++ b/cpu/lpc1768/Kconfig @@ -8,21 +8,11 @@ config CPU_FAM_LPC176X bool select CPU_CORE_CORTEX_M3 - select HAS_CORTEXM_MPU - select HAS_PERIPH_CPUID - select HAS_PERIPH_PM ## CPU Models config CPU_MODEL_LPC1768 bool select CPU_FAM_LPC176X - select HAS_CPU_LPC1768 - -## Declaration of specific features -config HAS_CPU_LPC1768 - bool - help - Indicates that an 'lpc1768' cpu is being used. ## Common CPU symbols config CPU_FAM diff --git a/cpu/lpc1768/Makefile.features b/cpu/lpc1768/Makefile.features index 64de7f5367b8..6f3c2419e5bf 100644 --- a/cpu/lpc1768/Makefile.features +++ b/cpu/lpc1768/Makefile.features @@ -8,9 +8,3 @@ FEATURES_PROVIDED += periph_cpuid FEATURES_PROVIDED += periph_pm include $(RIOTCPU)/cortexm_common/Makefile.features - -# This configuration enables modules that are only available when using Kconfig -# module modelling -ifeq (1, $(TEST_KCONFIG)) - KCONFIG_CPU_CONFIG += $(RIOTCPU)/lpc1768/lpc1768.config -endif diff --git a/cpu/lpc1768/lpc1768.config b/cpu/lpc1768/lpc1768.config deleted file mode 100644 index 811b1f37127b..000000000000 --- a/cpu/lpc1768/lpc1768.config +++ /dev/null @@ -1 +0,0 @@ -CONFIG_MODULE_PM_LAYERED=y diff --git a/cpu/lpc23xx/Kconfig b/cpu/lpc23xx/Kconfig index 2f15b8d2aa1c..3bc89f27b7e6 100644 --- a/cpu/lpc23xx/Kconfig +++ b/cpu/lpc23xx/Kconfig @@ -8,16 +8,6 @@ config CPU_FAM_LPC23XX bool select CPU_CORE_ARM7TDMI_S - select HAS_BACKUP_RAM - select HAS_CPU_LPC23XX - select HAS_PERIPH_DAC - select HAS_PERIPH_FLASHPAGE - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_TIMER_PERIODIC - select HAS_PERIPH_RTC_MS - - select MODULE_BITFIELD if TEST_KCONFIG ## CPU Models config CPU_MODEL_LPC2387 @@ -28,12 +18,6 @@ config CPU_MODEL_LPC2388 bool select CPU_FAM_LPC23XX -## Declaration of specific features -config HAS_CPU_LPC23XX - bool - help - Indicates that an 'lpc23xx' cpu is being used. - ## Common CPU symbols config CPU_FAM default "lpc23xx" if CPU_FAM_LPC23XX @@ -45,5 +29,4 @@ config CPU_MODEL config CPU default "lpc23xx" if CPU_FAM_LPC23XX -rsource "mci/Kconfig" source "$(RIOTCPU)/arm7_common/Kconfig" diff --git a/cpu/lpc23xx/Makefile.features b/cpu/lpc23xx/Makefile.features index 4c60626e5177..850654fb2d47 100644 --- a/cpu/lpc23xx/Makefile.features +++ b/cpu/lpc23xx/Makefile.features @@ -7,9 +7,3 @@ FEATURES_PROVIDED += periph_timer_periodic FEATURES_PROVIDED += periph_rtc_ms include $(RIOTCPU)/arm7_common/Makefile.features - -# This configuration enables modules that are only available when using Kconfig -# module modelling -ifeq (1, $(TEST_KCONFIG)) - KCONFIG_CPU_CONFIG += $(RIOTCPU)/lpc23xx/lpc23xx.config -endif diff --git a/cpu/lpc23xx/lpc23xx.config b/cpu/lpc23xx/lpc23xx.config deleted file mode 100644 index 811b1f37127b..000000000000 --- a/cpu/lpc23xx/lpc23xx.config +++ /dev/null @@ -1 +0,0 @@ -CONFIG_MODULE_PM_LAYERED=y diff --git a/cpu/lpc23xx/mci/Kconfig b/cpu/lpc23xx/mci/Kconfig deleted file mode 100644 index 296283fdc22f..000000000000 --- a/cpu/lpc23xx/mci/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# 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_MCI - bool "LPC23XX Multimedia Card Interface (MCI) driver" - depends on CPU_FAM_LPC23XX - depends on TEST_KCONFIG - select ZTIMER_USEC diff --git a/cpu/msp430/Kconfig b/cpu/msp430/Kconfig index c807082d896c..9714dac367f8 100644 --- a/cpu/msp430/Kconfig +++ b/cpu/msp430/Kconfig @@ -8,32 +8,11 @@ config CPU_ARCH_MSP430 bool - imply MODULE_NEWLIB_NANO - select HAS_ARCH_16BIT - select HAS_ARCH_MSP430 - select HAS_CPU_MSP430 - select HAS_DBGPIN - select HAS_NEWLIB - select HAS_PERIPH_FLASHPAGE - select HAS_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE - select HAS_PERIPH_FLASHPAGE_PAGEWISE - select HAS_PERIPH_PM - select HAS_PERIPH_TIMER_QUERY_FREQS - select MODULE_MALLOC_THREAD_SAFE if TEST_KCONFIG - -config HAS_CPU_MSP430 - bool - help - Indicates that an 'MSP430' CPU is being used. config CPU_MSP430 bool select CPU_ARCH_MSP430 -choice LIBC_IMPLEMENTATION - default MODULE_NEWLIB -endchoice - ## Common CPU symbols config CPU_ARCH default "msp430" if CPU_MSP430 @@ -44,17 +23,10 @@ config CPU config CPU_CORE default "msp430" if CPU_MSP430 -## Definition of specific features -config HAS_ARCH_MSP430 - bool - help - Indicates that the current architecture is MSP430. - ## Specific default configuration values config GNRC_PKTBUF_SIZE default 2560 - depends on KCONFIG_USEMODULE_GNRC_PKTBUF_STATIC + depends on USEMODULE_GNRC_PKTBUF_STATIC -source "$(RIOTCPU)/msp430/periph/Kconfig" source "$(RIOTCPU)/msp430/kconfigs/x1xx/Kconfig" source "$(RIOTCPU)/msp430/kconfigs/f2xx_g2xx/Kconfig" diff --git a/cpu/msp430/Makefile.features b/cpu/msp430/Makefile.features index 6c6c3fe4b4e6..5ff6154290f1 100644 --- a/cpu/msp430/Makefile.features +++ b/cpu/msp430/Makefile.features @@ -3,6 +3,7 @@ CPU_CORE = msp430 ifneq (,$(filter msp430f2% msp430g2%,$(CPU_MODEL))) CPU_FAM := msp430_f2xx_g2xx + FEATURES_PROVIDED += periph_spi_reconfigure endif ifneq (,$(filter msp430f1%,$(CPU_MODEL))) diff --git a/cpu/msp430/include/f2xx_g2xx/msp430_regs.h b/cpu/msp430/include/f2xx_g2xx/msp430_regs.h index 50262c74ef5a..f51e368acd5e 100644 --- a/cpu/msp430/include/f2xx_g2xx/msp430_regs.h +++ b/cpu/msp430/include/f2xx_g2xx/msp430_regs.h @@ -32,6 +32,31 @@ extern "C" { #endif +/** + * @brief Offset of the USCI B registers in an USCI A peripheral + * + * USCI A peripheral contains the USCI B peripheral registers, but has a few + * USCI A specific register in front. Adding this offset to the USCI A base + * address results in the base address of the shared registers. + * + * @see MSP430_USCI_B_FROM_USCI_A + */ +#define MSP430_USCI_A_B_OFFSET 3U + +/** + * @brief "Convert" an USCI A to an USCI B + * + * This returns the pointer to the part of the USCI A registers that matches + * the USCI B register layout, so that an USCI A can be treated as if it is + * an USCI B. + * + * This can be used instead of @ref msp430_usci_b_from_usci_a when needing a + * constant initializer. Otherwise @ref msp430_usci_b_from_usci_a is + * preferred as it includes type checks this macro doesn't. + */ +#define MSP430_USCI_B_FROM_USCI_A(usci_a) \ + ((msp430_usci_b_t *)((uintptr_t)(usci_a) + MSP430_USCI_A_B_OFFSET)) + /** * @brief Universal Serial Control Interface Type A (USCI_A) Registers */ @@ -74,6 +99,12 @@ typedef struct { #define UCSSEL_UCLKI UCSSEL_0 /**< Clock USCI using CLKI (n/a in SPI mode) */ #define UCSSEL_ACLK UCSSEL_1 /**< Clock USCI using auxiliary clock */ #define UCSSEL_SMCLK UCSSEL_2 /**< Clock USCI using sub-system master clock */ + +#if (UCSSEL0 == 0x40) || DOXYGEN +# define UCSSEL_Pos 6 /**< Position of the UCSSEL field in the USCI CTL1 register */ +#else +# error "USSEL field in USCI CTL1 register is at unexpected position" +#endif /** @} */ /** @@ -87,12 +118,12 @@ typedef struct { #define UCBRS_MASK UCBRS_7 /**< Bitmask to retrieve the UCRBS field of the USCI modulation control register */ #if (UCBRS_7 == 0x0E) || defined(DOXYGEN) -#define UCBRS_POS 1 /**< Position of the UCRBS field in the +# define UCBRS_Pos 1 /**< Position of the UCRBS field in the UCAxMCTL register */ #else /* The datasheet for the whole MCU family states the field is in bits 3-1, * but let's better be safe than sorry here */ -#error "UCBRS field in the UCAxMCTL register at unexpected position." +# error "UCBRS field in the UCAxMCTL register at unexpected position." #endif /** @} */ @@ -138,13 +169,13 @@ extern msp430_usci_a_t USCI_A1; * * @details Provided by linker */ -extern msp430_usci_a_t USCI_B0; +extern msp430_usci_b_t USCI_B0; /** * @brief USCI_B1 register map * * @details Provided by linker */ -extern msp430_usci_a_t USCI_B1; +extern msp430_usci_b_t USCI_B1; /** @} */ #ifdef __cplusplus diff --git a/cpu/msp430/include/f2xx_g2xx/periph_cpu.h b/cpu/msp430/include/f2xx_g2xx/periph_cpu.h index 8153592284c6..9f88879a93e7 100644 --- a/cpu/msp430/include/f2xx_g2xx/periph_cpu.h +++ b/cpu/msp430/include/f2xx_g2xx/periph_cpu.h @@ -75,6 +75,185 @@ typedef enum { #define PERIPH_SPI_NEEDS_TRANSFER_REGS /**< use shared spi_transfer_regs() */ /** @} */ +/** + * @brief Identifiers for USCI instances + * + * This assigns the four USCI instances (A0, B0, A1, B1) numbers from 0 to 3. + */ +typedef enum { +#ifdef __MSP430_HAS_USCI_AB0__ + MSP430_USCI_ID_A0, /**< USCI A0 */ + MSP430_USCI_ID_B0, /**< USCI B0 */ +#endif +#ifdef __MSP430_HAS_USCI_AB1__ + MSP430_USCI_ID_A1, /**< USCI A1 */ + MSP430_USCI_ID_B1, /**< USCI B1 */ +#endif + MSP430_USCI_ID_NUMOF /**< Number of USCI IDs (also: number of USCI instances) */ +} msp430_usci_id_t; + +/** + * @brief MSP430 F2xx/G2xx USCI configuration + * + * @details This is intended to be stored in flash. + */ +typedef struct { + msp430_usci_b_t *dev; /**< The USCI device to use */ + + REG8 *interrupt_enable; /**< The interrupt enable register matching the USCI */ + REG8 *interrupt_flag; /**< The interrupt flag register matching the USCI */ + uint8_t tx_irq_mask; /**< The bitmask to enable the TX IRQ for this USCI*/ + uint8_t rx_irq_mask; /**< The bitmask to enable the TX IRQ for this USCI */ + msp430_usci_id_t id; /**< ID of the USCI */ +} msp430_usci_params_t; + +/** + * @brief MSP430 F2xx/G2xx USCI clock source + */ +typedef enum { + USCI_CLK_UCLKI = UCSSEL_UCLKI, /**< UCLKI clock source (not supported yet) */ + USCI_CLK_AUX = UCSSEL_ACLK, /**< auxiliary clock source */ + USCI_CLK_SUBMAIN = UCSSEL_SMCLK, /**< sub-system master clock source */ +} msp430_usci_clk_t; + +/** + * @brief MSP430 F2xx/G2xx USCI prescaler configuration + */ +typedef struct { + msp430_usci_clk_t clk_source; /**< Clock source to use */ + uint8_t br0; /**< What to write in the BR0 register */ + uint8_t br1; /**< What to write in the BR1 register */ + uint8_t mctl; /**< USCI modulation control register */ +} msp430_usci_prescaler_t; + +/** + * @brief MSP430 F2xx/G2xx USCI configuration registers + * + * @details Unlike @ref msp430_usci_params_t this contains configuration that + * may depends on runtime settings + */ +typedef struct { + msp430_usci_prescaler_t prescaler; /**< Prescaler configuration */ + uint8_t ctl0; /**< USCI control register 0 */ +} msp430_usci_conf_t; + +/** + * @brief MSP430 F2xx/G2xx UART configuration, CPU level + * + * The MSP430 F2xx/G2xx has two USCI peripherals which both can be operated in + * UART mode. Each is connected to a fixed GPIO for RXD and TXD, respectively. + * Hence, there is not much left for the board to configure anyway, so we just + * prepare UART configurations at CPU level for the board to refer to. The + * unused configuration(s) will be garbage collected by the linker. + */ +typedef struct { + msp430_usci_params_t usci_params; /**< The USCI params */ + gpio_t rxd; /**< RXD pin */ + gpio_t txd; /**< TXD pin */ +} msp430_usci_uart_params_t; + +/** + * @brief MSP430 F2xx/G2xx UART configuration, board level + */ +typedef struct { + const msp430_usci_uart_params_t *uart; /**< The UART configuration to use */ +} uart_conf_t; + +/** + * @brief MSP430 F2xx/G2xx SPI configuration, CPU level + * + * The MSP430 F2xx/G2xx has two USCI peripherals which both can be operated in + * SPI mode. Each is connected to a fixed GPIO for COPI (MOSI), CIPO (MISO), + * and SCK, respectively. Hence, there is not much left for the board to + * configure anyway, so we just prepare UART configurations at CPU level for + * the board to refer to. The unused configuration(s) will be garbage collected + * by the linker. + */ +typedef struct { + msp430_usci_params_t usci_params; /**< The USCI parameters */ + gpio_t miso; /**< CIPO (MISO) pin */ + gpio_t mosi; /**< COPI (MOSI) pin */ + gpio_t sck; /**< SCK pin */ +} msp430_usci_spi_params_t; + +/** + * @brief MSP430 F2xx/G2xx SPI configuration, board level + */ +typedef struct { + const msp430_usci_spi_params_t *spi; /**< The SPI configuration to use */ +} spi_conf_t; + +/** + * @brief Acquire and initialize USCI for use a SPI/UART peripheral + * + * @param params Parameter identifying the USCI to use + * @param conf Configuration to initialize the USCI with + * + * @note The USCI will be acquired and configured as specified in @p conf. + * However, it will still be held in software reset and all interrupts + * will be masked and all interrupt flags be cleared. + * @warning You cannot enable IRQs while the USCI is still held under reset. + * @details As currently only for UART USCI IRQs are actually needed, the + * ISR is implemented in the UART driver. If the SPI or I2C driver + * would start to make use of IRQs (other than polling for the IRQ + * flag to be set), the ISRs would need to be moved to the USCI + * driver and call into the UART/SPI/I2C driver, depending on what + * driver has currently acquired the USCI. + */ +void msp430_usci_acquire(const msp430_usci_params_t *params, + const msp430_usci_conf_t *conf); + +/** + * @brief Release an USCI, so that it can be used to provide other peripherals + * + * This will also put the USCI in low power mode. + */ +void msp430_usci_release(const msp430_usci_params_t *params); + +/** + * @brief Calculate prescaler settings for the given target frequency + * + * @param target_hz The clock frequency (in Hz) to generated with the + * prescaler + * + * @return The calculated prescaler settings + * + * @note This will select the auxiliary clock source for well known UART + * symbol rates up to 9600 Bd, if that is running at 32,768 Hz. + * Otherwise the submain clock source is selected. + */ +msp430_usci_prescaler_t msp430_usci_prescale(uint32_t target_hz); + +/** + * @brief MSP430 F2xx/G2xx USCI A0 in UART configuration + */ +extern const msp430_usci_uart_params_t usci_a0_as_uart; + +/** + * @brief MSP430 F2xx/G2xx USCI A1 in UART configuration + */ +extern const msp430_usci_uart_params_t usci_a1_as_uart; + +/** + * @brief MSP430 F2xx/G2xx USCI A0 in SPI configuration + */ +extern const msp430_usci_spi_params_t usci_a0_as_spi; + +/** + * @brief MSP430 F2xx/G2xx USCI A1 in SPI configuration + */ +extern const msp430_usci_spi_params_t usci_a1_as_spi; + +/** + * @brief MSP430 F2xx/G2xx USCI B0 in SPI configuration + */ +extern const msp430_usci_spi_params_t usci_b0_as_spi; + +/** + * @brief MSP430 F2xx/G2xx USCI B1 in SPI configuration + */ +extern const msp430_usci_spi_params_t usci_b1_as_spi; + #ifdef __cplusplus } #endif diff --git a/cpu/msp430/kconfigs/f2xx_g2xx/Kconfig b/cpu/msp430/kconfigs/f2xx_g2xx/Kconfig index 349d2cff9496..04f207413340 100644 --- a/cpu/msp430/kconfigs/f2xx_g2xx/Kconfig +++ b/cpu/msp430/kconfigs/f2xx_g2xx/Kconfig @@ -9,7 +9,6 @@ config CPU_FAM_MSP430_F2XX_G2XX bool select CPU_MSP430 - select HAS_CPU_MSP430_F2XX_G2XX ## CPU Models config CPU_MODEL_MSP430F2617 @@ -20,12 +19,6 @@ config CPU_MODEL_MSP430F2618 bool select CPU_FAM_MSP430_F2XX_G2XX -## Definition of specific features -config HAS_CPU_MSP430_F2XX_G2XX - bool - help - Indicates that an 'MSP430 F2xx/G2xx' CPU is being used. - ## Common CPU symbols config CPU_FAM default "msp430_f2xx_g2xx" if HAS_CPU_MSP430_F2XX_G2XX diff --git a/cpu/msp430/kconfigs/x1xx/Kconfig b/cpu/msp430/kconfigs/x1xx/Kconfig index 97cdc18a7b68..16ffd4155656 100644 --- a/cpu/msp430/kconfigs/x1xx/Kconfig +++ b/cpu/msp430/kconfigs/x1xx/Kconfig @@ -9,7 +9,6 @@ config CPU_FAM_MSP430_X1XX bool select CPU_MSP430 - select HAS_CPU_MSP430_X1XX ## CPU Models config CPU_MODEL_MSP430F1611 @@ -20,12 +19,6 @@ config CPU_MODEL_MSP430F1612 bool select CPU_FAM_MSP430_X1XX -## Definition of specific features -config HAS_CPU_MSP430_X1XX - bool - help - Indicates that an 'MSP430 x1xx' cpu is being used. - ## Common CPU symbols config CPU_FAM default "msp430_x1xx" if HAS_CPU_MSP430_X1XX diff --git a/cpu/msp430/periph/Kconfig b/cpu/msp430/periph/Kconfig deleted file mode 100644 index 19f0cda43a4f..000000000000 --- a/cpu/msp430/periph/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (c) 2023 Marian Buschsieweke -# -# 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_PERIPH - bool - default y - help - MSP430 peripheral drivers. diff --git a/cpu/msp430/periph/Makefile b/cpu/msp430/periph/Makefile index 9c0cfe1b202a..4e9a9ea20115 100644 --- a/cpu/msp430/periph/Makefile +++ b/cpu/msp430/periph/Makefile @@ -6,12 +6,13 @@ MODULE = periph # family it is the (incompatible) USCI. ifeq (msp430_x1xx,$(CPU_FAM)) SERIAL_IP_BLOCK := usart - SRC += $(SERIAL_IP_BLOCK).c endif ifeq (msp430_f2xx_g2xx,$(CPU_FAM)) SERIAL_IP_BLOCK := usci endif +SRC += $(SERIAL_IP_BLOCK).c + # select family specific peripheral drivers. ifneq (,$(filter periph_uart,$(USEMODULE))) SRC += uart_$(SERIAL_IP_BLOCK).c diff --git a/cpu/msp430/periph/spi_usci.c b/cpu/msp430/periph/spi_usci.c index fbbff950032f..8d7454a6c782 100644 --- a/cpu/msp430/periph/spi_usci.c +++ b/cpu/msp430/periph/spi_usci.c @@ -25,22 +25,27 @@ #include +#include "compiler_hints.h" #include "cpu.h" #include "mutex.h" #include "periph/spi.h" -/** - * @brief Mutex for locking the SPI device - */ -static mutex_t spi_lock = MUTEX_INIT; +/* caching most recently used SPI configuration */ +static msp430_usci_conf_t _confs[SPI_NUMOF]; +/* clock frequency for which the SPI configuration was cached */ +static uint32_t _conf_clks[SPI_NUMOF]; +/* the USCI is using a mutex already, but we need to guard the access to the + * configuration cache with a mutex as well */ +static mutex_t _locks[SPI_NUMOF]; void spi_init(spi_t bus) { - assert((unsigned)bus < SPI_NUMOF); + assume((unsigned)bus < SPI_NUMOF); + /* `spi_init()` should be done only once during boot-up */ + assert(_conf_clks[bus] == 0); - /* reset SPI device */ - SPI_BASE->CTL1 = UCSWRST; - SPI_BASE->CTL1 |= UCSSEL_SMCLK; + /* spi_init_pins() unlocks a mutex, so initializing it locked here */ + _locks[bus] = (mutex_t)MUTEX_INIT_LOCKED; /* trigger the pin configuration */ spi_init_pins(bus); @@ -48,56 +53,73 @@ void spi_init(spi_t bus) void spi_init_pins(spi_t bus) { - (void)bus; + assume((unsigned)bus < SPI_NUMOF); + const msp430_usci_spi_params_t *params = spi_config[bus].spi; + + gpio_init(params->miso, GPIO_IN); + gpio_periph_mode(params->miso, true); + gpio_init(params->mosi, GPIO_OUT); + gpio_periph_mode(params->mosi, true); + gpio_init(params->sck, GPIO_OUT); + gpio_periph_mode(params->sck, true); + + mutex_unlock(&_locks[bus]); +} + +void spi_deinit_pins(spi_t bus) +{ + assume((unsigned)bus < SPI_NUMOF); + const msp430_usci_spi_params_t *params = spi_config[bus].spi; + mutex_lock(&_locks[bus]); - gpio_periph_mode(SPI_PIN_MISO, true); - gpio_periph_mode(SPI_PIN_MOSI, true); - gpio_periph_mode(SPI_PIN_CLK, true); + gpio_periph_mode(params->miso, true); + gpio_periph_mode(params->mosi, true); + gpio_periph_mode(params->sck, true); } void spi_acquire(spi_t bus, spi_cs_t cs, spi_mode_t mode, spi_clk_t clk) { - (void)bus; + assume((unsigned)bus < SPI_NUMOF); (void)cs; - assert((unsigned)bus < SPI_NUMOF); - assert(clk != SPI_CLK_10MHZ); + const msp430_usci_params_t *usci = &spi_config[bus].spi->usci_params; - /* lock the bus */ - mutex_lock(&spi_lock); + mutex_lock(&_locks[bus]); - /* calculate baudrate */ - uint32_t br = msp430_submain_clock_freq() / clk; - /* make sure the is not smaller then 2 */ - if (br < 2) { - br = 2; + if (_conf_clks[bus] != clk) { + /* prescaler not cached, recomputing */ + _confs[bus].prescaler = msp430_usci_prescale(clk); + /* no modulation setting in SPI mode */ + _confs[bus].prescaler.mctl = 0; } - SPI_BASE->BR0 = (uint8_t)br; - SPI_BASE->BR1 = (uint8_t)(br >> 8); - - /* configure bus mode */ - /* configure mode */ - SPI_BASE->CTL0 = (UCSYNC | UCMST | UCMODE_0 | UCMSB | mode); - /* release from software reset */ - SPI_BASE->CTL1 &= ~(UCSWRST); + + /* Repopulate CTL0 register settings every time. This is rather cheap + * compared to the prescaler configuration and allows reusing the prescaler + * across SPI modes */ + _confs[bus].ctl0 = UCSYNC | UCMST | UCMODE_0 | UCMSB | mode; + + msp430_usci_acquire(usci, &_confs[bus]); + + /* finally, pull USCI out of reset */ + usci->dev->CTL1 &= ~UCSWRST; } void spi_release(spi_t bus) { - (void)bus; - /* put SPI device back in reset state */ - SPI_BASE->CTL1 |= UCSWRST; - - /* release the bus */ - mutex_unlock(&spi_lock); + assume((unsigned)bus < SPI_NUMOF); + /* unlock in reverse order */ + msp430_usci_release(&spi_config[bus].spi->usci_params); + mutex_unlock(&_locks[bus]); } void spi_transfer_bytes(spi_t bus, spi_cs_t cs, bool cont, const void *out, void *in, size_t len) { - (void)bus; + assume((unsigned)bus < SPI_NUMOF); const uint8_t *out_buf = out; uint8_t *in_buf = in; + const msp430_usci_spi_params_t *params = spi_config[bus].spi; + const msp430_usci_params_t *usci = ¶ms->usci_params; assert(out_buf || in_buf); @@ -108,26 +130,27 @@ void spi_transfer_bytes(spi_t bus, spi_cs_t cs, bool cont, /* if we only send out data, we do this the fast way... */ if (!in_buf) { for (size_t i = 0; i < len; i++) { - while (!(SPI_IF & SPI_IE_TX_BIT)) {} - SPI_BASE->TXBUF = out_buf[i]; + while (!(*usci->interrupt_flag & usci->tx_irq_mask)) { } + usci->dev->TXBUF = out_buf[i]; } + /* finally we need to wait, until all transfers are complete */ - while (SPI_BASE->STAT & UCBUSY) {} - SPI_BASE->RXBUF; + while (usci->dev->STAT & UCBUSY) {} + (void)usci->dev->RXBUF; } else if (!out_buf) { for (size_t i = 0; i < len; i++) { - SPI_BASE->TXBUF = 0; - while (!(SPI_IF & SPI_IE_RX_BIT)) {} - in_buf[i] = (char)SPI_BASE->RXBUF; + usci->dev->TXBUF = 0; + while (!(*usci->interrupt_flag & usci->rx_irq_mask)) { } + in_buf[i] = usci->dev->RXBUF; } } else { for (size_t i = 0; i < len; i++) { - while (!(SPI_IF & SPI_IE_TX_BIT)) {} - SPI_BASE->TXBUF = out_buf[i]; - while (!(SPI_IF & SPI_IE_RX_BIT)) {} - in_buf[i] = (char)SPI_BASE->RXBUF; + while (!(*usci->interrupt_flag & usci->tx_irq_mask)) { } + usci->dev->TXBUF = out_buf[i]; + while (!(*usci->interrupt_flag & usci->rx_irq_mask)) { } + in_buf[i] = usci->dev->RXBUF; } } diff --git a/cpu/msp430/periph/uart_usci.c b/cpu/msp430/periph/uart_usci.c index 36496a255851..5e7f25f0cccd 100644 --- a/cpu/msp430/periph/uart_usci.c +++ b/cpu/msp430/periph/uart_usci.c @@ -19,107 +19,181 @@ * @} */ +#include "compiler_hints.h" #include "cpu.h" -#include "periph_cpu.h" -#include "periph_conf.h" +#include "irq.h" +#include "periph/gpio.h" #include "periph/uart.h" +#include "periph_conf.h" +#include "periph_cpu.h" -/** - * @brief Keep track of the interrupt context - * @{ - */ -static uart_rx_cb_t ctx_rx_cb; -static void *ctx_isr_arg; -/** @} */ +#define ENABLE_DEBUG 0 +#include "debug.h" -static int init_base(uart_t uart, uint32_t baudrate); +static uart_isr_ctx_t _isr_ctx[UART_NUMOF]; +static msp430_usci_conf_t _confs[UART_NUMOF]; -int uart_init(uart_t uart, uint32_t baudrate, uart_rx_cb_t rx_cb, void *arg) +static void uart_rx_isr(uintptr_t uart); + +void uart_init_pins(uart_t uart) { - if (init_base(uart, baudrate) < 0) { - return -1; - } + assume((unsigned)uart < UART_NUMOF); - /* save interrupt context */ - ctx_rx_cb = rx_cb; - ctx_isr_arg = arg; - /* reset interrupt flags and enable RX interrupt */ - UART_IF &= ~(UART_IE_RX_BIT); - UART_IF |= (UART_IE_TX_BIT); - UART_IE |= (UART_IE_RX_BIT); - UART_IE &= ~(UART_IE_TX_BIT); - return 0; + const msp430_usci_uart_params_t *params = uart_config[uart].uart; + + gpio_set(params->txd); + gpio_init(params->txd, GPIO_OUT); + gpio_periph_mode(params->txd, true); + + gpio_init(params->rxd, GPIO_IN); + gpio_periph_mode(params->rxd, true); } -static int init_base(uart_t uart, uint32_t baudrate) +void uart_deinit_pins(uart_t uart) { - if (uart != 0) { - return -1; + assume((unsigned)uart < UART_NUMOF); + + const msp430_usci_uart_params_t *params = uart_config[uart].uart; + + gpio_init(params->txd, GPIO_IN); + gpio_periph_mode(params->txd, false); + + gpio_init(params->rxd, GPIO_IN); + gpio_periph_mode(params->rxd, false); +} + +static void _init(uart_t uart) +{ + const msp430_usci_uart_params_t *params = uart_config[uart].uart; + const msp430_usci_conf_t *conf = &_confs[uart]; + uint8_t enable_rx_irq = 0; + /* enable RX IRQ, if callback function is set */ + if (_isr_ctx[uart].rx_cb) { + enable_rx_irq = params->usci_params.rx_irq_mask; + } + /* acquire and configure USCI */ + msp430_usci_acquire(¶ms->usci_params, conf); + /* reset error stats */ + params->usci_params.dev->STAT = 0; + /* release USCI from reset and enable RX IRQ */ + params->usci_params.dev->CTL1 &= ~(UCSWRST); + /* interrupt enable register is shared between two USCI peripherals, hence + * the other may be concurrently be configured */ + unsigned irq_state = irq_disable(); + *params->usci_params.interrupt_enable |= enable_rx_irq; + irq_restore(irq_state); +} + +int uart_init(uart_t uart, uint32_t baudrate, uart_rx_cb_t rx_cb, void *arg) +{ + assume((unsigned)uart < UART_NUMOF); + + /* prepare configuration */ + _confs[uart] = (msp430_usci_conf_t){ + .prescaler = msp430_usci_prescale(baudrate), + .ctl0 = 0, + }; + + /* save interrupt context */ + _isr_ctx[uart] = (uart_isr_ctx_t){ + .rx_cb = rx_cb, + .arg = arg, + }; + + /* prepare pins */ + uart_init_pins(uart); + + /* only enable USCI if RX is used, otherwise we enable it on-demand to + * allow sharing the USCI and conserve power */ + + if (rx_cb) { + _init(uart); } - /* get the default UART for now -> TODO: enable for multiple devices */ - msp430_usci_a_t *dev = UART_BASE; - - /* put device in reset mode while configuration is going on */ - dev->CTL1 = UCSWRST; - /* configure to UART, using SMCLK in 8N1 mode */ - dev->CTL1 |= UCSSEL_SMCLK; - dev->CTL0 = 0; - dev->STAT = 0; - /* configure baudrate */ - uint32_t base = ((msp430_submain_clock_freq() << 7) / baudrate); - uint16_t br = (uint16_t)(base >> 7); - uint8_t brs = (((base & 0x3f) * 8) >> 7); - dev->BR0 = (uint8_t)br; - dev->BR1 = (uint8_t)(br >> 8); - dev->MCTL = (brs << UCBRS_POS); - /* pin configuration -> TODO: move to GPIO driver once implemented */ - UART_RX_PORT->SEL |= UART_RX_PIN; - UART_TX_PORT->SEL |= UART_TX_PIN; - UART_RX_PORT->base.DIR &= ~(UART_RX_PIN); - UART_TX_PORT->base.DIR |= UART_TX_PIN; - /* releasing the software reset bit starts the UART */ - dev->CTL1 &= ~(UCSWRST); return 0; } void uart_write(uart_t uart, const uint8_t *data, size_t len) { - (void)uart; + assume((unsigned)uart < UART_NUMOF); + + const msp430_usci_params_t *usci = &uart_config[uart].uart->usci_params; + bool tx_only = !_isr_ctx[uart].rx_cb; + + /* in TX-only mode, we enable the USCI on-demand */ + if (tx_only) { + _init(uart); + } - for (size_t i = 0; i < len; i++) { - while (!(UART_IF & UART_IE_TX_BIT)) {} - UART_BASE->TXBUF = data[i]; + while (len--) { + while (!(*usci->interrupt_flag & usci->tx_irq_mask)) { } + usci->dev->TXBUF = *data++; + } + + if (tx_only) { + msp430_usci_release(usci); } } void uart_poweron(uart_t uart) { - (void)uart; - /* n/a */ + assume((unsigned)uart < UART_NUMOF); + + if (!_isr_ctx[uart].rx_cb) { + /* in TX only mode, the USCI will only be turned on on-demand anyway */ + return; + } + + _init(uart); } void uart_poweroff(uart_t uart) { - (void)uart; - /* n/a */ + assume((unsigned)uart < UART_NUMOF); + + if (!_isr_ctx[uart].rx_cb) { + /* in TX only mode, the USCI will only be turned on on-demand anyway */ + return; + } + + const msp430_usci_params_t *usci = &uart_config[uart].uart->usci_params; + + msp430_usci_release(usci); } -ISR(UART_RX_ISR, isr_uart_0_rx) +static void uart_rx_isr(uintptr_t uart) { - __enter_isr(); - - uint8_t stat = UART_BASE->STAT; - uint8_t data = (uint8_t)UART_BASE->RXBUF; + assume((unsigned)uart < UART_NUMOF); + const msp430_usci_params_t *usci = &uart_config[uart].uart->usci_params; + uint8_t stat = usci->dev->STAT; + uint8_t data = (uint8_t)usci->dev->RXBUF; if (stat & (UCFE | UCOE | UCPE | UCBRK)) { - /* some error which we do not handle, just do a pseudo read to reset the - * status register */ - (void)data; + /* TODO: Add proper error handling */ + usci->dev->STAT = 0; + DEBUG("[uart@%u] Error: %04x\n", (unsigned)uart, (unsigned)stat); } else { - ctx_rx_cb(ctx_isr_arg, data); + _isr_ctx[uart].rx_cb(_isr_ctx[uart].arg, data); } +} + +/* only USCI A0 and USCI A1 can be used for UARTs, so at most two ISRS needed */ +#ifdef UART0_RX_ISR +ISR(UART0_RX_ISR, isr_uart0) +{ + __enter_isr(); + uart_rx_isr(0); + __exit_isr(); +} +#endif + +#ifdef UART1_RX_ISR +ISR(UART1_RX_ISR, isr_uart1) +{ + __enter_isr(); + uart_rx_isr(1); __exit_isr(); } +#endif diff --git a/cpu/msp430/periph/usci.c b/cpu/msp430/periph/usci.c new file mode 100644 index 000000000000..ba0a4f2115dd --- /dev/null +++ b/cpu/msp430/periph/usci.c @@ -0,0 +1,202 @@ +#include "irq.h" +#include "macros/math.h" +#include "mutex.h" +#include "periph_conf.h" +#include "periph_cpu.h" + +const msp430_usci_uart_params_t usci_a0_as_uart = { + .usci_params = { + .id = MSP430_USCI_ID_A0, + .dev = MSP430_USCI_B_FROM_USCI_A(&USCI_A0), + .interrupt_flag = &UC0IFG, + .interrupt_enable = &UC0IE, + .tx_irq_mask = UCA0TXIE, + .rx_irq_mask = UCA0RXIE, + }, + .txd = GPIO_PIN(P3, 4), + .rxd = GPIO_PIN(P3, 5), +}; + +const msp430_usci_uart_params_t usci_a1_as_uart = { + .usci_params = { + .id = MSP430_USCI_ID_A1, + .dev = MSP430_USCI_B_FROM_USCI_A(&USCI_A1), + .interrupt_flag = &UC1IFG, + .interrupt_enable = &UC1IE, + .tx_irq_mask = UCA1TXIE, + .rx_irq_mask = UCA1RXIE, + }, + .txd = GPIO_PIN(P3, 6), + .rxd = GPIO_PIN(P3, 7), +}; + +const msp430_usci_spi_params_t usci_a0_as_spi = { + .usci_params = { + .id = MSP430_USCI_ID_A0, + .dev = MSP430_USCI_B_FROM_USCI_A(&USCI_A0), + .interrupt_flag = &UC0IFG, + .interrupt_enable = &UC0IE, + .tx_irq_mask = UCA0TXIE, + .rx_irq_mask = UCA0RXIE, + }, + .mosi = GPIO_PIN(P3, 4), + .miso = GPIO_PIN(P3, 5), + .sck = GPIO_PIN(P3, 0), +}; + +const msp430_usci_spi_params_t usci_a1_as_spi = { + .usci_params = { + .id = MSP430_USCI_ID_A1, + .dev = MSP430_USCI_B_FROM_USCI_A(&USCI_A1), + .interrupt_flag = &UC1IFG, + .interrupt_enable = &UC1IE, + .tx_irq_mask = UCA1TXIE, + .rx_irq_mask = UCA1RXIE, + }, + .mosi = GPIO_PIN(P3, 7), + .miso = GPIO_PIN(P3, 6), + .sck = GPIO_PIN(P5, 0), +}; + +const msp430_usci_spi_params_t usci_b0_as_spi = { + .usci_params = { + .id = MSP430_USCI_ID_B0, + .dev = &USCI_B0, + .interrupt_flag = &UC0IFG, + .interrupt_enable = &UC0IE, + .tx_irq_mask = UCB0TXIE, + .rx_irq_mask = UCB0RXIE, + }, + .mosi = GPIO_PIN(P3, 1), + .miso = GPIO_PIN(P3, 2), + .sck = GPIO_PIN(P3, 3), +}; + +const msp430_usci_spi_params_t usci_b1_as_spi = { + .usci_params = { + .id = MSP430_USCI_ID_B1, + .dev = &USCI_B1, + .interrupt_flag = &UC1IFG, + .interrupt_enable = &UC1IE, + .tx_irq_mask = UCB1TXIE, + .rx_irq_mask = UCB1RXIE, + }, + .mosi = GPIO_PIN(P5, 1), + .miso = GPIO_PIN(P5, 2), + .sck = GPIO_PIN(P5, 3), +}; + +static mutex_t _usci_locks[MSP430_USCI_ID_NUMOF] = { + MUTEX_INIT, + MUTEX_INIT, + MUTEX_INIT, + MUTEX_INIT, +}; + +void msp430_usci_acquire(const msp430_usci_params_t *params, + const msp430_usci_conf_t *conf) +{ + assume((unsigned)params->id < MSP430_USCI_ID_NUMOF); + + mutex_lock(&_usci_locks[params->id]); + msp430_usci_b_t *dev = params->dev; + + /* put device in disabled/reset state */ + dev->CTL1 = UCSWRST; + + /* apply given configuration */ + dev->CTL0 = conf->ctl0; + dev->CTL1 = conf->prescaler.clk_source | UCSWRST; + dev->BR0 = conf->prescaler.br0; + dev->BR1 = conf->prescaler.br1; + dev->MCTL = conf->prescaler.mctl; + + /* disable USCI IRQs and clear any spurious IRQ flags */ + uint8_t clear_irq_mask = ~(params->tx_irq_mask | params->rx_irq_mask); + unsigned irq_mask = irq_disable(); + *params->interrupt_flag &= clear_irq_mask; + *params->interrupt_enable &= clear_irq_mask; + irq_restore(irq_mask); +} + +void msp430_usci_release(const msp430_usci_params_t *params) +{ + assume(params->id < MSP430_USCI_ID_NUMOF); + + msp430_usci_b_t *dev = params->dev; + + /* Disable USCI */ + dev->CTL0 = UCSWRST; + + /* disable USCI IRQs and clear any spurious IRQ flags */ + uint8_t clear_irq_mask = ~(params->tx_irq_mask | params->rx_irq_mask); + unsigned irq_mask = irq_disable(); + *params->interrupt_enable &= clear_irq_mask; + *params->interrupt_flag &= clear_irq_mask; + irq_restore(irq_mask); + + /* Release mutex */ + mutex_unlock(&_usci_locks[params->id]); +} + +msp430_usci_prescaler_t msp430_usci_prescale(uint32_t target_hz) +{ + msp430_usci_prescaler_t result = { + .mctl = 0, + .clk_source = USCI_CLK_SUBMAIN, + }; + + /* If a watch crystal is used for the auxiliary clock, allow using the + * auxiliary clock to be used as clock source for well-known + * symbol rates, so that enabling low power modes is possible while + * UART RX is active */ + if ((clock_params.lfxt1_frequency == 32768) + && (clock_params.auxiliary_clock_divier == AUXILIARY_CLOCK_DIVIDE_BY_1)) { + assert(msp430_auxiliary_clock_freq() == 32768); + result.clk_source = USCI_CLK_AUX; + /* The datasheet gives a formula that is used to estimate BRS, but + * for optimal accuracy "a detailed error calculation must be performed + * for each bit for each UCBRSx setting". We take the pre-calculated + * optimal values from the datasheet here. The idea is that if the + * clock source is slow ticking, the extra bit timing accuracy may + * be needed. Otherwise the estimation will be good enough. + */ + switch (target_hz) { + case 9600: + result.mctl = 2U << UCBRS_Pos; + result.br0 = 27; + return result; + case 4800: + result.mctl = 6U << UCBRS_Pos; + result.br0 = 13; + return result; + case 2400: + result.mctl = 7U << UCBRS_Pos; + result.br0 = 6; + return result; + case 1200: + result.mctl = 3U << UCBRS_Pos; + result.br0 = 3; + return result; + } + } + + /* Otherwise, we compute BR and estimate BRS. We shift left by 7 to avoid + * floating point arithmetic. (7 is the largest shit amount for which + * clock frequencies with two-digit values in MHz don't exceed the 32 bit + * value range.) */ + uint32_t tmp = DIV_ROUND(msp430_submain_clock_freq() << 7, target_hz); + /* BR is the integral part */ + uint16_t br = tmp >> 7; + /* BRS is the fractional part multiplied by 8. We combine the multiplication + * by 8 (left-shift by 3) with the right-shift by 7 here to a right-shift + * by 4. */ + uint8_t brs = (tmp & 0x7f) >> 4; + result.clk_source = USCI_CLK_SUBMAIN; + + result.br0 = (uint8_t)br; + result.br1 = (uint8_t)(br >> 8); + result.mctl = brs << UCBRS_Pos; + + return result; +} diff --git a/cpu/native/Kconfig b/cpu/native/Kconfig index fb462a75826b..e6f9a03f5f33 100644 --- a/cpu/native/Kconfig +++ b/cpu/native/Kconfig @@ -7,26 +7,6 @@ config CPU_ARCH_NATIVE bool - select HAS_ARCH_32BIT if BOARD_NATIVE - select HAS_ARCH_64BIT if BOARD_NATIVE64 - select HAS_ARCH_NATIVE - select HAS_CPP - select HAS_CPU_NATIVE - select HAS_LIBSTDCPP - select HAS_PERIPH_CPUID - select HAS_PERIPH_EEPROM - select HAS_PERIPH_FLASHPAGE - select HAS_PERIPH_FLASHPAGE_PAGEWISE - select HAS_PERIPH_HWRNG - select HAS_PERIPH_PM - select HAS_PERIPH_PWM - select HAS_PERIPH_TIMER_PERIODIC - select HAS_SSP - select HAVE_MTD_NATIVE - - # needed modules - select MODULE_PERIPH if TEST_KCONFIG - select MODULE_NATIVE_CLI_EUI_PROVIDER if MODULE_EUI_PROVIDER config CPU_CORE_NATIVE bool @@ -42,25 +22,9 @@ config CPU_MODEL_NATIVE select NATIVE_OS_LINUX if "$(OS)" = "Linux" select NATIVE_OS_FREEBSD if "$(OS)" = "FreeBSD" -## Declaration of specific features -config HAS_ARCH_NATIVE - bool - help - Indicates that the architecture being used is 'native'. - -config HAS_CPU_NATIVE - bool - help - Indicates that the cpu being used is 'native'. - ## OS Variants config NATIVE_OS_LINUX bool - select HAS_PERIPH_CAN - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_SPI - select HAS_RUST_TARGET if "$(OS_ARCH)" = "x86_64" config NATIVE_OS_FREEBSD bool @@ -80,14 +44,3 @@ config CPU_MODEL config CPU default "native" if CPU_MODEL_NATIVE - -menu "Native modules" - depends on CPU_ARCH_NATIVE - -rsource "backtrace/Kconfig" -rsource "cli_eui_provider/Kconfig" - -endmenu # Native modules - -rsource "periph/Kconfig" -rsource "vfs/Kconfig" diff --git a/cpu/native/Makefile.features b/cpu/native/Makefile.features index 8b0b4722a6e9..25a8cc10fdc8 100644 --- a/cpu/native/Makefile.features +++ b/cpu/native/Makefile.features @@ -31,9 +31,3 @@ ifeq ($(OS),Linux) # CAN is only supported on Linux through socketCAN FEATURES_PROVIDED += periph_can endif - -# This configuration enables modules that are only available when using Kconfig -# module modelling -ifeq (1, $(TEST_KCONFIG)) - KCONFIG_CPU_CONFIG += $(RIOTCPU)/native/native.config -endif diff --git a/cpu/native/backtrace/Kconfig b/cpu/native/backtrace/Kconfig deleted file mode 100644 index 339720f3f0bc..000000000000 --- a/cpu/native/backtrace/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# 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_BACKTRACE - bool "Stack backtrace" - depends on CPU_ARCH_NATIVE - depends on TEST_KCONFIG diff --git a/cpu/native/cli_eui_provider/Kconfig b/cpu/native/cli_eui_provider/Kconfig deleted file mode 100644 index 759ccd174dfa..000000000000 --- a/cpu/native/cli_eui_provider/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (c) 2022 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_NATIVE_CLI_EUI_PROVIDER - bool "Command-line EUI provider" - depends on TEST_KCONFIG - depends on CPU_ARCH_NATIVE - select MODULE_L2UTIL diff --git a/cpu/native/native.config b/cpu/native/native.config deleted file mode 100644 index 92d9ea6d2c70..000000000000 --- a/cpu/native/native.config +++ /dev/null @@ -1,2 +0,0 @@ -# UART is needed by startup.c -CONFIG_MODULE_PERIPH_UART=y diff --git a/cpu/native/periph/Kconfig b/cpu/native/periph/Kconfig deleted file mode 100644 index 52440c0ff7dd..000000000000 --- a/cpu/native/periph/Kconfig +++ /dev/null @@ -1,16 +0,0 @@ -# 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_PERIPH_SPIDEV_LINUX - bool - default y if MODULE_PERIPH_SPI - depends on NATIVE_OS_LINUX - -config MODULE_PERIPH_INIT_SPIDEV_LINUX - bool - default y - depends on MODULE_PERIPH_SPIDEV_LINUX diff --git a/cpu/native/periph/Kconfig.gpio b/cpu/native/periph/Kconfig.gpio deleted file mode 100644 index 315d7ed60dba..000000000000 --- a/cpu/native/periph/Kconfig.gpio +++ /dev/null @@ -1,36 +0,0 @@ -# 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 NATIVE_GPIO_IMPLEMENTATION - bool "Native GPIO peripheral implementation" - depends on MODULE_PERIPH_GPIO - depends on CPU_ARCH_NATIVE - depends on TEST_KCONFIG - default MODULE_PERIPH_GPIO_LINUX if NATIVE_OS_LINUX - -config MODULE_PERIPH_GPIO_LINUX - bool "Linux GPIO" - depends on NATIVE_OS_LINUX - -config MODULE_PERIPH_GPIO_MOCK - bool "Mock" - -endchoice - -# TODO: these modules are actually just artifacts from the way periph_init_% -# modules are handled in Makefile. We need to define them to keep the list the -# same for now. We should be able to remove them later on. - -config MODULE_PERIPH_INIT_GPIO_LINUX - bool - default y if MODULE_PERIPH_INIT - depends on MODULE_PERIPH_GPIO_LINUX - -config MODULE_PERIPH_INIT_GPIO_MOCK - bool - default y if MODULE_PERIPH_INIT - depends on MODULE_PERIPH_GPIO_MOCK diff --git a/cpu/native/periph/Kconfig.rtc b/cpu/native/periph/Kconfig.rtc deleted file mode 100644 index 79c32bafc84a..000000000000 --- a/cpu/native/periph/Kconfig.rtc +++ /dev/null @@ -1,11 +0,0 @@ -# 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_PERIPH_RTC - select MODULE_ZTIMER if CPU_ARCH_NATIVE - select MODULE_ZTIMER_MSEC if CPU_ARCH_NATIVE - depends on HAS_PERIPH_RTC diff --git a/cpu/native/socket_zep/Kconfig b/cpu/native/socket_zep/Kconfig deleted file mode 100644 index c278c42d3195..000000000000 --- a/cpu/native/socket_zep/Kconfig +++ /dev/null @@ -1,18 +0,0 @@ -menuconfig MODULE_SOCKET_ZEP - bool "Socket-based ZEP" - depends on CPU_MODEL_NATIVE - depends on TEST_KCONFIG - select MODULE_IOLIST - select MODULE_CHECKSUM - select MODULE_RANDOM - select MODULE_IEEE802154 - select HAVE_IEEE802154_RADIO_HAL_INTERFACE - help - UDP socket-based IEEE 802.15.4 device over ZEP - -config MODULE_SOCKET_ZEP_HELLO - bool "Send a dummy HELLO packet on startup" - depends on MODULE_SOCKET_ZEP - help - Say y to send a dummy HELLO packet on startup. This is used to make - dispatchers aware of the node. diff --git a/cpu/native/vfs/Kconfig b/cpu/native/vfs/Kconfig deleted file mode 100644 index d493aaa2a5fe..000000000000 --- a/cpu/native/vfs/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# 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_NATIVE_VFS - bool - depends on HAS_ARCH_NATIVE - default y if MODULE_VFS diff --git a/cpu/nrf51/Kconfig b/cpu/nrf51/Kconfig index 1e34ef971ae0..231b816daec1 100644 --- a/cpu/nrf51/Kconfig +++ b/cpu/nrf51/Kconfig @@ -10,7 +10,6 @@ config CPU_FAM_NRF51 bool select CPU_CORE_CORTEX_M0 select CPU_COMMON_NRF5X - select HAS_CPU_NRF51 ## CPU Models config CPU_MODEL_NRF51X22XXAA @@ -37,15 +36,9 @@ config CPU_MODEL config CPU default "nrf51" if CPU_FAM_NRF51 -## Definition of specific features -config HAS_CPU_NRF51 - bool - help - Indicates that the current cpu is 'nrf51'. - ## Platform-specific defaults config GNRC_PKTBUF_SIZE default 2048 - depends on KCONFIG_USEMODULE_GNRC_PKTBUF_STATIC + depends on USEMODULE_GNRC_PKTBUF_STATIC source "$(RIOTCPU)/nrf5x_common/Kconfig" diff --git a/cpu/nrf52/Kconfig b/cpu/nrf52/Kconfig index af87fb19ca21..d8d82763d7aa 100644 --- a/cpu/nrf52/Kconfig +++ b/cpu/nrf52/Kconfig @@ -7,19 +7,6 @@ config CPU_FAM_NRF52 bool select CPU_COMMON_NRF5X -# The ADC does not depend on any board configuration, so always available - select HAS_PERIPH_ADC - select HAS_BLE_ADV_EXT -# So far, NimBLE netif does not support nrf51 platforms, so we use a dedicated -# feature to mark this - select HAS_BLE_NIMBLE_NETIF -# All nrf52s support the 2Mbit PHY mode - select HAS_BLE_PHY_2MBIT - select HAS_CORTEXM_MPU - select HAS_CPU_NRF52 - select HAS_PERIPH_I2C_RECONFIGURE - select HAS_PERIPH_SPI_GPIO_MODE - select HAS_PERIPH_UART_NONBLOCKING ## CPU Models config CPU_MODEL_NRF52805XXAA @@ -36,15 +23,11 @@ config CPU_MODEL_NRF52811XXAA bool select CPU_CORE_CORTEX_M4 select CPU_FAM_NRF52 - select HAS_BLE_PHY_CODED - select HAS_RADIO_NRF802154 config CPU_MODEL_NRF52820XXAA bool select CPU_CORE_CORTEX_M4 select CPU_FAM_NRF52 - select HAS_BLE_PHY_CODED - select HAS_RADIO_NRF802154 config CPU_MODEL_NRF52832XXAA bool @@ -55,25 +38,11 @@ config CPU_MODEL_NRF52833XXAA bool select CPU_CORE_CORTEX_M4F select CPU_FAM_NRF52 - select HAS_BLE_PHY_CODED - select HAS_RADIO_NRF802154 config CPU_MODEL_NRF52840XXAA bool select CPU_CORE_CORTEX_M4F select CPU_FAM_NRF52 - select HAS_BLE_PHY_CODED - select HAS_RADIO_NRF802154 - select HAS_PERIPH_HASH_SHA_1 - select HAS_PERIPH_HASH_SHA_224 - select HAS_PERIPH_HASH_SHA_256 - select HAS_PERIPH_HASH_SHA_512 - select HAS_PERIPH_HMAC_SHA_256 - select HAS_PERIPH_CIPHER_AES_128_CBC - select HAS_PERIPH_ECC_P192R1 - select HAS_PERIPH_ECC_P256R1 - select HAS_PERIPH_ECC_ED25519 - select HAS_PERIPH_CRYPTOCELL_310 ## CPU common symbols config CPU_FAM @@ -91,13 +60,4 @@ config CPU_MODEL config CPU default "nrf52" if CPU_FAM_NRF52 -## Definition of specific features -config HAS_CPU_NRF52 - bool - help - Indicates that the current cpu is 'nrf52'. - -rsource "periph/Kconfig" -rsource "vectors/Kconfig" - source "$(RIOTCPU)/nrf5x_common/Kconfig" diff --git a/cpu/nrf52/periph/Kconfig b/cpu/nrf52/periph/Kconfig deleted file mode 100644 index bdce106d53e3..000000000000 --- a/cpu/nrf52/periph/Kconfig +++ /dev/null @@ -1,82 +0,0 @@ -# Copyright (c) 2021 Inria -# -# 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 - -config MODULE_SAUL_NRF_VDDH - bool "Internal Voltage Sensor" - depends on HAS_PERIPH_ADC - select MODULE_PERIPH_ADC - -config MODULE_PERIPH_CRYPTOCELL_310 - bool - depends on HAS_PERIPH_CRYPTOCELL_310 - select PACKAGE_DRIVER_CRYPTOCELL_310 - -# Asymmetric Crypto Peripheral -config MODULE_PERIPH_ECC_P192R1 - bool - depends on HAS_PERIPH_ECC_P192R1 - select MODULE_PERIPH_CRYPTOCELL_310 - select MODULE_PSA_CRYPTOCELL_310_ECC_P192 - -config MODULE_PERIPH_ECC_P256R1 - bool - depends on HAS_PERIPH_ECC_P256R1 - select MODULE_PERIPH_CRYPTOCELL_310 - select MODULE_PSA_CRYPTOCELL_310_ECC_P256 - -config MODULE_PERIPH_ECC_ED25519 - bool - depends on HAS_PERIPH_ECC_ED25519 - select MODULE_PERIPH_CRYPTOCELL_310 - select MODULE_PSA_CRYPTOCELL_310_ECC_ED25519 - -# Hash Related Symbols -config MODULE_PERIPH_HASH_SHA_1 - bool - depends on HAS_PERIPH_HASH_SHA_1 - select MODULE_PERIPH_CRYPTOCELL_310 - select MODULE_PSA_CRYPTOCELL_310_HASHES_SHA1 - -config MODULE_PERIPH_HASH_SHA_224 - bool - depends on HAS_PERIPH_HASH_SHA_224 - select MODULE_PERIPH_CRYPTOCELL_310 - select MODULE_PSA_CRYPTOCELL_310_HASHES_SHA224 - -config MODULE_PERIPH_HASH_SHA_256 - bool - depends on HAS_PERIPH_HASH_SHA_256 - select MODULE_PERIPH_CRYPTOCELL_310 - select MODULE_PSA_CRYPTOCELL_310_HASHES_SHA256 - -config MODULE_PERIPH_HASH_SHA_512 - bool - depends on HAS_PERIPH_HASH_SHA_512 - select MODULE_PERIPH_CRYPTOCELL_310 - select MODULE_PSA_CRYPTOCELL_310_HASHES_SHA512 - -config MODULE_PERIPH_CIPHER_AES_128_CBC - bool - depends on HAS_PERIPH_CIPHER_AES_128_CBC - select MODULE_PERIPH_CRYPTOCELL_310 - select MODULE_PSA_CRYPTOCELL_310_AES_CBC - -config MODULE_PERIPH_HMAC_SHA_256 - bool - depends on HAS_PERIPH_HMAC_SHA_256 - select MODULE_PERIPH_CRYPTOCELL_310 - select MODULE_PSA_CRYPTOCELL_310_HMAC - -endif # TEST_KCONFIG - -config HAVE_SAUL_NRF_VDDH - bool - select MODULE_SAUL_NRF_VDDH if MODULE_SAUL_DEFAULT - help - Indicates that internal voltage sensor is present. diff --git a/cpu/nrf52/radio/nrf802154/Kconfig b/cpu/nrf52/radio/nrf802154/Kconfig index eec1c3063c2d..c9143d3c5861 100644 --- a/cpu/nrf52/radio/nrf802154/Kconfig +++ b/cpu/nrf52/radio/nrf802154/Kconfig @@ -4,13 +4,8 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. -menuconfig KCONFIG_USEMODULE_NRF802154 - bool "Configure nRF802154" +menu "nRF802154" depends on USEMODULE_NRF802154 - help - Configure nRF802154 module using Kconfig. - -if KCONFIG_USEMODULE_NRF802154 config NRF802154_CCA_THRESH_DEFAULT hex "Default CCA threshold value" @@ -19,11 +14,4 @@ config NRF802154_CCA_THRESH_DEFAULT help Default CCA threshold value for the CCACTRL register. -endif # KCONFIG_USEMODULE_NRF802154 - -## Related features -config HAS_RADIO_NRF802154 - bool - select HAVE_NRF5X_RADIO - help - Indicates that a IEEE 802.15.4 NRF52 radio is present. +endmenu # nRF802154 diff --git a/cpu/nrf52/vectors/Kconfig b/cpu/nrf52/vectors/Kconfig deleted file mode 100644 index 59b908a0911b..000000000000 --- a/cpu/nrf52/vectors/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# Copyright (c) 2021 Inria -# -# 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_NRF52_VECTORS - bool - depends on TEST_KCONFIG - default y diff --git a/cpu/nrf53/Kconfig b/cpu/nrf53/Kconfig index 9d62961a3dc4..119eff11a5a8 100644 --- a/cpu/nrf53/Kconfig +++ b/cpu/nrf53/Kconfig @@ -8,20 +8,6 @@ # We will rely on nrf5x_common later when we support more peripherals config CPU_FAM_NRF53 bool - select HAS_CPU_NRF53 - select HAS_PERIPH_CPUID - select HAS_PERIPH_FLASHPAGE - select HAS_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE - select HAS_PERIPH_FLASHPAGE_PAGEWISE - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_TIMER_PERIODIC - select HAS_PERIPH_TIMER_POLL - select HAS_PERIPH_TIMER_QUERY_FREQS - select HAS_PERIPH_UART_MODECFG - select HAS_PERIPH_WDT - select HAS_PERIPH_WDT_CB - select MODULE_NRF_SHARED_SERIAL_IRQ ## CPU Models config CPU_MODEL_NRF5340_APP @@ -40,12 +26,4 @@ config CPU_MODEL config CPU default "nrf53" if CPU_FAM_NRF53 -## Definition of specific features -config HAS_CPU_NRF53 - bool - help - Indicates that the current cpu is 'nrf53'. - -rsource "vectors/Kconfig" - source "$(RIOTCPU)/nrf5x_common/Kconfig" diff --git a/cpu/nrf53/vectors/Kconfig b/cpu/nrf53/vectors/Kconfig deleted file mode 100644 index 9f66755e6cee..000000000000 --- a/cpu/nrf53/vectors/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# Copyright (c) 2023 Mesotic SAS -# -# 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_NRF53_VECTORS - bool - depends on TEST_KCONFIG - default y diff --git a/cpu/nrf5x_common/Kconfig b/cpu/nrf5x_common/Kconfig index 8e715bb39ef2..2a26d8d106e9 100644 --- a/cpu/nrf5x_common/Kconfig +++ b/cpu/nrf5x_common/Kconfig @@ -7,65 +7,5 @@ config CPU_COMMON_NRF5X depends on !CPU_FAM_NRF53 bool - select HAS_BLE_NIMBLE - select HAS_PERIPH_CPUID - select HAS_PERIPH_FLASHPAGE - select HAS_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE - select HAS_PERIPH_FLASHPAGE_PAGEWISE - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_GPIO_LL - select HAS_PERIPH_GPIO_LL_IRQ - select HAS_PERIPH_GPIO_LL_IRQ_UNMASK - select HAS_PERIPH_HWRNG - select HAS_PERIPH_TEMPERATURE - select HAS_PERIPH_TIMER_PERIODIC - select HAS_PERIPH_TIMER_POLL - select HAS_PERIPH_TIMER_QUERY_FREQS - select HAS_PERIPH_RTT_OVERFLOW - select HAS_PERIPH_UART_MODECFG - select HAS_PERIPH_WDT - select HAS_PERIPH_WDT_CB - select HAS_RADIO_NRFBLE - select HAS_RADIO_NRFMIN - -## Definition of specific features -config HAS_RADIO_NRFBLE - bool - select HAVE_NRF5X_RADIO - help - Indicates that a BLE-compatible nRF radio is present. - -config HAS_RADIO_NRFMIN - bool - select HAVE_NRF5X_RADIO - help - Indicates that a radio compatible with the nRF minimal radio driver is - present. - -config HAS_VDD_LC_FILTER_REG0 - bool - help - Indicates that a board is equipped with an external LC filter circuit - attached to the CPUs voltage regulator stage 0. - -config HAS_VDD_LC_FILTER_REG1 - bool - help - Indicates that a board is equipped with an external LC filter circuit - attached to the CPUs voltage regulator stage 1. - -config MODULE_NRF_SHARED_SERIAL_IRQ - bool - depends on CPU_FAM_NRF53 || CPU_FAM_NRF9160 - help - Indicates that the MCU used shared IRQ for UART/I2C/SPI. - -config MODULE_CPU_COMMON - bool - depends on TEST_KCONFIG - default y - -rsource "periph/Kconfig.nrf5x" source "$(RIOTCPU)/cortexm_common/Kconfig" diff --git a/cpu/nrf5x_common/periph/Kconfig.nrf5x b/cpu/nrf5x_common/periph/Kconfig.nrf5x deleted file mode 100644 index 3e14ab97f187..000000000000 --- a/cpu/nrf5x_common/periph/Kconfig.nrf5x +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright (c) 2021 Inria -# -# 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 HAVE_SAUL_NRF_TEMPERATURE - bool - select MODULE_SAUL_NRF_TEMPERATURE if MODULE_SAUL_DEFAULT && HAS_PERIPH_TEMPERATURE - help - Indicates that a SAUL wrapper to the temperature peripheral is present. - -if TEST_KCONFIG - -config MODULE_NRF5X_COMMON_PERIPH - bool - default y - help - nrf52 common peripheral code. - -config MODULE_VDD_LC_FILTER_REG0 - bool - depends on HAS_VDD_LC_FILTER_REG0 - default y - help - Use the LC filter attached to the CPUs voltage regulator - -config MODULE_VDD_LC_FILTER_REG1 - bool - depends on HAS_VDD_LC_FILTER_REG1 - default y - help - Use the LC filter attached to the CPUs voltage regulator - -config MODULE_PERIPH_UART_NONBLOCKING - depends on HAS_PERIPH_UART_NONBLOCKING - depends on MODULE_PERIPH_UART - select MODULE_TSRB - -config MODULE_PERIPH_SPI - depends on HAS_PERIPH_SPI - select MODULE_PERIPH_GPIO_IRQ if CPU_MODEL_NRF52832XXAA && HAS_PERIPH_GPIO_IRQ - select MODULE_PERIPH_SPI_GPIO_MODE if MODULE_PERIPH_SPI && HAS_PERIPH_SPI_GPIO_MODE - -endif # TEST_KCONFIG diff --git a/cpu/nrf5x_common/radio/Kconfig.nrf5x b/cpu/nrf5x_common/radio/Kconfig.nrf5x index 4da0ff844e2c..8afb2fcb9b54 100644 --- a/cpu/nrf5x_common/radio/Kconfig.nrf5x +++ b/cpu/nrf5x_common/radio/Kconfig.nrf5x @@ -5,50 +5,4 @@ # directory for more details. # -config HAVE_NRF5X_RADIO - bool - select NRF5X_RADIO if MODULE_NETDEV_DEFAULT - help - Indicates that an NRF5X radio is present. - -if TEST_KCONFIG - -menuconfig NRF5X_RADIO - bool "nrf5x radio driver" - depends on HAVE_NRF5X_RADIO - depends on TEST_KCONFIG - -if NRF5X_RADIO - -choice NRF5X_RADIO_BACKEND - bool "nrf5x radio backend" - -config MODULE_NRF802154 - bool "Implementation of the IEEE 802.15.4 for nRF52 radio" - depends on HAS_RADIO_NRF802154 - depends on HAS_PERIPH_TIMER - select MODULE_LUID - select MODULE_PERIPH_TIMER - select MODULE_IEEE802154 - select HAVE_NON_NETDEV_INTERFACE - select HAVE_IEEE802154_RADIO_HAL_INTERFACE - -config MODULE_NRFBLE - bool "Bluetooth low energy radio driver" - depends on HAS_RADIO_NRFBLE - help - Bluetooth low energy radio driver for nRF5x SoCs - -config MODULE_NRFMIN - bool "nrfmin radio driver" - depends on HAS_RADIO_NRFMIN - help - nrfmin radio driver for nRF51 radios - -endchoice - -endif # NRF5X_RADIO - -endif # TEST_KCONFIG - rsource "$(RIOTCPU)/nrf52/radio/nrf802154/Kconfig" diff --git a/cpu/nrf5x_common/shared_irq/Kconfig b/cpu/nrf5x_common/shared_irq/Kconfig deleted file mode 100644 index 8be2b0cb673c..000000000000 --- a/cpu/nrf5x_common/shared_irq/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# Copyright (c) 2023 Mesotic SAS -# -# 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_NRF_SHARED_SERIAL_IRQ - bool - depends on TEST_KCONFIG - default y diff --git a/cpu/nrf9160/Kconfig b/cpu/nrf9160/Kconfig index 990e74dd210b..d97d7a2d0d9a 100644 --- a/cpu/nrf9160/Kconfig +++ b/cpu/nrf9160/Kconfig @@ -6,24 +6,6 @@ config CPU_FAM_NRF9160 bool - select HAS_CPU_NRF9160 - select HAS_PERIPH_CPUID - select HAS_PERIPH_FLASHPAGE - select HAS_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE - select HAS_PERIPH_FLASHPAGE_PAGEWISE - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_GPIO_LL - select HAS_PERIPH_GPIO_LL_IRQ - select HAS_PERIPH_GPIO_LL_IRQ_UNMASK - select HAS_PERIPH_TIMER_PERIODIC - select HAS_PERIPH_TIMER_POLL - select HAS_PERIPH_TIMER_QUERY_FREQS - select HAS_PERIPH_UART_MODECFG - select HAS_PERIPH_SPI_GPIO_MODE - select HAS_PERIPH_WDT - select HAS_PERIPH_WDT_CB - select MODULE_NRF_SHARED_SERIAL_IRQ ## CPU Models config CPU_MODEL_NRF9160 @@ -41,13 +23,4 @@ config CPU_MODEL config CPU default "nrf9160" if CPU_FAM_NRF9160 -## Definition of specific features -config HAS_CPU_NRF9160 - bool - help - Indicates that the current cpu is 'nrf9160'. - -rsource "vectors/Kconfig" -rsource "periph/Kconfig" - source "$(RIOTCPU)/nrf5x_common/Kconfig" diff --git a/cpu/nrf9160/periph/Kconfig b/cpu/nrf9160/periph/Kconfig deleted file mode 100644 index e4b3750647cc..000000000000 --- a/cpu/nrf9160/periph/Kconfig +++ /dev/null @@ -1,18 +0,0 @@ -# Copyright (c) 2022 Inria -# -# 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 - -config MODULE_PERIPH_SPI - depends on HAS_PERIPH_SPI - select MODULE_PERIPH_SPI_GPIO_MODE if MODULE_PERIPH_SPI && HAS_PERIPH_SPI_GPIO_MODE - -config MODULE_SAUL_NRF_VDDH - bool "Internal Voltage Sensor" - depends on HAS_PERIPH_ADC - -endif # TEST_KCONFIG diff --git a/cpu/nrf9160/vectors/Kconfig b/cpu/nrf9160/vectors/Kconfig deleted file mode 100644 index c92ad3b02cff..000000000000 --- a/cpu/nrf9160/vectors/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# Copyright (c) 2021 Inria -# -# 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_NRF9160_VECTORS - bool - depends on TEST_KCONFIG - default y diff --git a/cpu/qn908x/Kconfig b/cpu/qn908x/Kconfig index be865b12712d..bc5afb83e569 100644 --- a/cpu/qn908x/Kconfig +++ b/cpu/qn908x/Kconfig @@ -8,23 +8,6 @@ config CPU_FAM_QN908X bool select CPU_CORE_CORTEX_M4F - select HAS_CORTEXM_MPU - select HAS_CPU_QN908X - select HAS_PERIPH_CPUID - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_I2C_RECONFIGURE - select HAS_PERIPH_RTC - select HAS_PERIPH_SPI_RECONFIGURE - select HAS_PERIPH_TIMER_QUERY_FREQS - select HAS_PERIPH_WDT - select HAS_PERIPH_WDT_CB - - select MODULE_VENDOR if TEST_KCONFIG - # The clock functionality is used by most modules, including cpu.c even when - # no peripheral module is being used. - select MODULE_VENDOR_FSL_CLOCK if TEST_KCONFIG - select MODULE_PERIPH_GPIO_MUX if TEST_KCONFIG ## CPU Models # For cpus QN9080CHN (revision C) and QN9080DHN (revision D) @@ -49,15 +32,7 @@ config CPU_MODEL config CPU default "qn908x" if CPU_FAM_QN908X -## Definition of specific features -config HAS_CPU_QN908X - bool - help - Indicates that the current cpu is 'qn908x'. - # Other cpu configuration rsource "Kconfig.clk" -rsource "periph/Kconfig" -rsource "vendor/Kconfig" source "$(RIOTCPU)/cortexm_common/Kconfig" diff --git a/cpu/qn908x/periph/Kconfig b/cpu/qn908x/periph/Kconfig deleted file mode 100644 index 84d2249a34e3..000000000000 --- a/cpu/qn908x/periph/Kconfig +++ /dev/null @@ -1,24 +0,0 @@ -# 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_PERIPH_FLEXCOMM - bool - depends on TEST_KCONFIG - default y if MODULE_PERIPH_UART || MODULE_PERIPH_I2C || MODULE_PERIPH_SPI - help - Flexcomm interrupt dispatch driver. - -config MODULE_PERIPH_GPIO_MUX - bool - depends on TEST_KCONFIG - help - Common Pin MUX functions for qn908x CPUs. - -config MODULE_PERIPH_ADC - bool "ADC peripheral driver" - depends on HAS_PERIPH_ADC - select ZTIMER_USEC diff --git a/cpu/qn908x/vendor/Kconfig b/cpu/qn908x/vendor/Kconfig deleted file mode 100644 index f955b1819507..000000000000 --- a/cpu/qn908x/vendor/Kconfig +++ /dev/null @@ -1,18 +0,0 @@ -# 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_VENDOR - bool - depends on TEST_KCONFIG - help - qn908x vendor-specific code. - -config MODULE_VENDOR_FSL_CLOCK - bool - depends on MODULE_VENDOR - help - qn908x vendor-specific FSL Clock code. diff --git a/cpu/riscv_common/Kconfig b/cpu/riscv_common/Kconfig index cbc283c1f9d2..2ba92a8cd731 100644 --- a/cpu/riscv_common/Kconfig +++ b/cpu/riscv_common/Kconfig @@ -6,43 +6,10 @@ config CPU_ARCH_RISCV bool - select HAS_ARCH_RISCV - select HAS_CPP - select HAS_LIBSTDCPP - select HAS_NEWLIB - select HAS_PERIPH_CORETIMER - select HAS_PICOLIBC - select HAS_PUF_SRAM - select HAS_RUST_TARGET - select HAS_SSP - - select MODULE_MALLOC_THREAD_SAFE if TEST_KCONFIG - imply MODULE_NEWLIB_NANO config CPU_CORE_RV32IMAC bool select CPU_ARCH_RISCV - select HAS_ARCH_32BIT - -## Definition of specific features -config HAS_ARCH_RISCV - bool - help - Indicates that the current CPU has a RISC-V. config CPU_ARCH default "rv32" if CPU_CORE_RV32IMAC - -config MODULE_RISCV_COMMON - bool - default y - depends on TEST_KCONFIG && CPU_ARCH_RISCV - select MODULE_MALLOC_THREAD_SAFE - help - Common code for RISC-V architecture. - -rsource "periph/Kconfig" - -choice LIBC_IMPLEMENTATION - default MODULE_NEWLIB -endchoice diff --git a/cpu/riscv_common/periph/Kconfig b/cpu/riscv_common/periph/Kconfig deleted file mode 100644 index 5e80d2a1c790..000000000000 --- a/cpu/riscv_common/periph/Kconfig +++ /dev/null @@ -1,41 +0,0 @@ -# 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_RISCV_COMMON_PERIPH - bool - default y - depends on TEST_KCONFIG && CPU_ARCH_RISCV - help - Common peripheral code for RISC-V architecture. - -if MODULE_RISCV_COMMON_PERIPH - -config MODULE_PERIPH_CLIC - bool - depends on HAS_PERIPH_CLIC - help - Core-Local interrupt controller driver. - -config MODULE_PERIPH_CORETIMER - bool - depends on HAS_PERIPH_CORETIMER - help - Low-level timer driver based on the Core-local Interrupt (CLINT) - -config MODULE_PERIPH_PLIC - bool - depends on HAS_PERIPH_PLIC - help - Platform-Level interrupt controller driver. - -config MODULE_PERIPH_PMP - bool - depends on HAS_PERIPH_PMP - help - Physical memory protection driver. - -endif # MODULE_RISCV_COMMON_PERIPH diff --git a/cpu/rpx0xx/Kconfig b/cpu/rpx0xx/Kconfig index 5ef494173cb9..7030b50ef133 100644 --- a/cpu/rpx0xx/Kconfig +++ b/cpu/rpx0xx/Kconfig @@ -8,19 +8,6 @@ config CPU_FAM_RPX0XX bool select CPU_CORE_CORTEX_M0PLUS - select HAS_CPU_RPX0XX - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_PIO - select HAS_PERIPH_TIMER - select HAS_PERIPH_TIMER_PERIODIC - select HAS_PERIPH_UART_MODECFG - select HAS_PERIPH_UART_RECONFIGURE - select HAS_PIO_I2C - select MODULE_PIO_I2C if MODULE_PERIPH_I2C - # Since make has a wildcard for anything starting with pio_ we need to - # build it as new modules get added - select MODULE_PERIPH_PIO if MODULE_PIO_I2C config CPU_FAM default "RPX0XX" if CPU_FAM_RPX0XX @@ -35,19 +22,5 @@ config CPU_MODEL config CPU default "rpx0xx" if CPU_FAM_RPX0XX -config HAS_CPU_RPX0XX - bool - help - Indicates that a RPX0XX CPU (e.g. the RP2040) is used - -config MODULE_PIO_I2C - bool "Enable PIO I2C module" - depends on HAS_PIO_I2C - -config MODULE_PIO_AUTOSTART_I2C - bool "Enable PIO I2C module autostart" - default y if MODULE_PIO_I2C - depends on HAS_PIO_I2C - source "$(RIOTCPU)/cortexm_common/Kconfig" diff --git a/cpu/sam0_common/Kconfig b/cpu/sam0_common/Kconfig index ff64fc119374..38436da8aaf1 100644 --- a/cpu/sam0_common/Kconfig +++ b/cpu/sam0_common/Kconfig @@ -7,41 +7,6 @@ config CPU_COMMON_SAM0 bool - select HAS_PERIPH_CPUID - select HAS_PERIPH_ADC_CONTINUOUS - select HAS_PERIPH_FLASHPAGE - select HAS_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE - select HAS_PERIPH_FLASHPAGE_PAGEWISE - select HAS_PERIPH_FLASHPAGE_RWEE - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_GPIO_LL - select HAS_PERIPH_GPIO_LL_IRQ - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_HIGH - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_LOW - select HAS_PERIPH_GPIO_LL_IRQ_UNMASK - select HAS_PERIPH_I2C_RECONFIGURE - select HAS_PERIPH_RTT_SET_COUNTER - select HAS_PERIPH_RTT_OVERFLOW - select HAS_PERIPH_SDMMC_AUTO_CMD12 - select HAS_PERIPH_SDMMC_HS - select HAS_PERIPH_SDMMC_MMC - select HAS_PERIPH_SDMMC_SDHC - select HAS_PERIPH_SPI_RECONFIGURE - select HAS_PERIPH_SPI_GPIO_MODE - select HAS_PERIPH_TIMER_PERIODIC - select HAS_PERIPH_TIMER_QUERY_FREQS - select HAS_PERIPH_UART_MODECFG - select HAS_PERIPH_UART_NONBLOCKING - select HAS_PERIPH_UART_RECONFIGURE - select HAS_PERIPH_UART_RXSTART_IRQ - select HAS_PERIPH_UART_TX_ONDEMAND - select HAS_PERIPH_WDT - select HAS_PERIPH_WDT_CB - select HAS_PERIPH_WDT_WARNING_PERIOD - select HAVE_SHARED_PERIPH_RTT_PERIPH_RTC - - select MODULE_PERIPH_SPI_GPIO_MODE if MODULE_PERIPH_SPI && HAS_PERIPH_SPI_GPIO_MODE if CPU_COMMON_SAM0 diff --git a/cpu/sam0_common/Makefile.features b/cpu/sam0_common/Makefile.features index 184942584b19..04ce16facb53 100644 --- a/cpu/sam0_common/Makefile.features +++ b/cpu/sam0_common/Makefile.features @@ -48,10 +48,3 @@ FEATURES_CONFLICT += periph_gpio_irq:periph_gpio_ll_irq FEATURES_CONFLICT_MSG += "GPIO IRQs can only be managed with one API." include $(RIOTCPU)/cortexm_common/Makefile.features - -# Add sam0 configurations after including cortexm_common so sam0 takes precendence -# This configuration enables modules that are only available when using Kconfig -# module modelling -ifeq (1, $(TEST_KCONFIG)) - KCONFIG_CPU_CONFIG += $(RIOTCPU)/sam0_common/sam0_common.config -endif diff --git a/cpu/sam0_common/periph/Kconfig b/cpu/sam0_common/periph/Kconfig index db82e7e99f2e..771e8cc2266f 100644 --- a/cpu/sam0_common/periph/Kconfig +++ b/cpu/sam0_common/periph/Kconfig @@ -5,24 +5,5 @@ # directory for more details. config WDT_WARNING_PERIOD - depends on HAS_PERIPH_WDT_WARNING_PERIOD && KCONFIG_USEMODULE_PERIPH_WDT + depends on USEMODULE_PERIPH_WDT default 1 - -if TEST_KCONFIG - -config MODULE_SAM0_COMMON_PERIPH - bool - default y - help - SAM0 common peripheral code. - -config MODULE_PERIPH_RTC_RTT - bool - default y if MODULE_PERIPH_RTT || MODULE_PERIPH_RTC || MODULE_PERIPH_GPIO_TAMPER_WAKE - -config MODULE_PERIPH_UART_NONBLOCKING - depends on HAS_PERIPH_UART_NONBLOCKING - depends on MODULE_PERIPH_UART - select MODULE_TSRB - -endif # TEST_KCONFIG diff --git a/cpu/sam0_common/periph/Kconfig.spi b/cpu/sam0_common/periph/Kconfig.spi index 1ad4dfa81587..913905724fa7 100644 --- a/cpu/sam0_common/periph/Kconfig.spi +++ b/cpu/sam0_common/periph/Kconfig.spi @@ -6,8 +6,8 @@ config SPI_DMA_THRESHOLD_BYTES int "SPI DMA threshold (bytes)" - depends on MODULE_PERIPH_DMA - depends on MODULE_PERIPH_SPI + depends on USEMODULE_PERIPH_DMA + depends on USEMODULE_PERIPH_SPI default 16 help Threshold in bytes under which no SPI DMA transfer will be performed. diff --git a/cpu/sam0_common/sam0_common.config b/cpu/sam0_common/sam0_common.config deleted file mode 100644 index 811b1f37127b..000000000000 --- a/cpu/sam0_common/sam0_common.config +++ /dev/null @@ -1 +0,0 @@ -CONFIG_MODULE_PM_LAYERED=y diff --git a/cpu/sam0_common/sam0_eth/Kconfig b/cpu/sam0_common/sam0_eth/Kconfig deleted file mode 100644 index 7ed6b08d0985..000000000000 --- a/cpu/sam0_common/sam0_eth/Kconfig +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright (c) 2022 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_SAM0_ETH - bool "SAM0 Ethernet GMAC peripheral" - depends on TEST_KCONFIG - depends on CPU_COMMON_SAM0 - depends on HAS_PERIPH_ETH - select MODULE_PERIPH_GPIO_IRQ - select MODULE_NETDEV_ETH - select MODULE_NETDEV_LEGACY_API - select MODULE_NETOPT - select MODULE_IOLIST - select MODULE_PERIPH_ETH - -config HAVE_SAM0_ETH - bool - select MODULE_SAM0_ETH if MODULE_NETDEV_DEFAULT - help - Indicates that a SAM0 ethernet peripheral is present. diff --git a/cpu/sam3/Kconfig b/cpu/sam3/Kconfig index d42f79c963fe..3f3694128e1d 100644 --- a/cpu/sam3/Kconfig +++ b/cpu/sam3/Kconfig @@ -8,22 +8,12 @@ config CPU_FAM_SAM3 bool select CPU_CORE_CORTEX_M3 - select HAS_CORTEXM_MPU - select HAS_CPU_SAM3 - select HAS_PERIPH_CPUID - select HAS_PERIPH_HWRNG ## CPU Models config CPU_MODEL_SAM3X8E bool select CPU_FAM_SAM3 -## Declaration of specific features -config HAS_CPU_SAM3 - bool - help - Indicates that a 'sam3' cpu is being used. - ## Common CPU symbols config CPU_FAM default "sam3" if CPU_FAM_SAM3 diff --git a/cpu/samd21/Kconfig b/cpu/samd21/Kconfig index a11c90bb6a20..a8acc7b72a09 100644 --- a/cpu/samd21/Kconfig +++ b/cpu/samd21/Kconfig @@ -9,15 +9,10 @@ config CPU_COMMON_SAMD21 bool select CPU_COMMON_SAM0 select CPU_CORE_CORTEX_M0PLUS - select HAS_CPU_SAMD21 - select HAS_PERIPH_GPIO_FAST_READ - select MODULE_ZTIMER_NO_PERIPH_RTT if TEST_KCONFIG && MODULE_ZTIMER config CPU_FAM_SAMD10 bool select CPU_COMMON_SAMD21 - select HAS_PERIPH_DMA - select HAS_PERIPH_UART_COLLISION config CPU_FAM_SAMD20 bool @@ -26,20 +21,10 @@ config CPU_FAM_SAMD20 config CPU_FAM_SAMD21 bool select CPU_COMMON_SAMD21 - select HAS_PERIPH_DMA - select HAS_PERIPH_UART_COLLISION config CPU_FAM_SAMR21 bool select CPU_COMMON_SAMD21 - select HAS_PERIPH_DMA - select HAS_PERIPH_UART_COLLISION - -## Definition of specific features -config HAS_CPU_SAMD21 - bool - help - Indicates that a 'samd21' cpu is being used. ## Common CPU symbols config CPU_FAM @@ -56,6 +41,4 @@ source "$(RIOTCPU)/samd21/Kconfig.samd20" source "$(RIOTCPU)/samd21/Kconfig.samd21" source "$(RIOTCPU)/samd21/Kconfig.samr21" -source "$(RIOTCPU)/samd21/vectors/Kconfig" - source "$(RIOTCPU)/sam0_common/Kconfig" diff --git a/cpu/samd21/vectors/Kconfig b/cpu/samd21/vectors/Kconfig deleted file mode 100644 index ccbacc4f7948..000000000000 --- a/cpu/samd21/vectors/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (c) 2020 ML!PA Consulting GmbH -# -# 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_SAMD21_VECTORS - bool - default y - depends on CPU_COMMON_SAMD21 - help - SAM D1x/D2x interrupt vector table. diff --git a/cpu/samd5x/Kconfig b/cpu/samd5x/Kconfig index 54339e8ca73a..fe6c99ecef1d 100644 --- a/cpu/samd5x/Kconfig +++ b/cpu/samd5x/Kconfig @@ -9,15 +9,6 @@ config CPU_COMMON_SAMD5X bool select CPU_COMMON_SAM0 select CPU_CORE_CORTEX_M4F - select HAS_BACKUP_RAM - select HAS_CORTEXM_MPU - select HAS_CPU_SAMD5X - select HAS_PERIPH_DMA - select HAS_PERIPH_GPIO_TAMPER_WAKE - select HAS_PERIPH_HWRNG - select HAS_PERIPH_RTC_MEM - select HAS_PERIPH_UART_COLLISION - select HAS_PERIPH_SPI_ON_QSPI config CPU_FAM_SAMD51 bool @@ -27,12 +18,6 @@ config CPU_FAM_SAME54 bool select CPU_COMMON_SAMD5X -## Declaration of specific features -config HAS_CPU_SAMD5X - bool - help - Indicates that a SAMD5x/SAME5x cpu is being used. - ## CPU common symbols config CPU_FAM default "samd51" if CPU_FAM_SAMD51 diff --git a/cpu/saml1x/Kconfig b/cpu/saml1x/Kconfig index 1fa2335c3876..4c939d3476d8 100644 --- a/cpu/saml1x/Kconfig +++ b/cpu/saml1x/Kconfig @@ -9,11 +9,6 @@ config CPU_COMMON_SAML1X bool select CPU_COMMON_SAM0 select CPU_CORE_CORTEX_M23 - select HAS_CPU_SAML1X - select HAS_PERIPH_DMA - select HAS_PERIPH_GPIO_FAST_READ - select HAS_PERIPH_HWRNG - select HAS_PERIPH_UART_COLLISION config CPU_FAM_SAML10 bool @@ -23,12 +18,6 @@ config CPU_FAM_SAML11 bool select CPU_COMMON_SAML1X -## Declaration of specific features -config HAS_CPU_SAML1X - bool - help - Indicates that a 'saml1x' cpu is being used. - ## Common CPU symbols config CPU_FAM default "saml10" if CPU_FAM_SAML10 diff --git a/cpu/saml21/Kconfig b/cpu/saml21/Kconfig index dc8ca5f3587e..80511309d872 100644 --- a/cpu/saml21/Kconfig +++ b/cpu/saml21/Kconfig @@ -9,17 +9,10 @@ config CPU_COMMON_SAML21 bool select CPU_COMMON_SAM0 select CPU_CORE_CORTEX_M0PLUS - select HAS_BACKUP_RAM - select HAS_CPU_SAML21 - select HAS_PERIPH_DMA - select HAS_PERIPH_GPIO_FAST_READ - select HAS_PERIPH_RTC_MEM - select HAS_PERIPH_UART_COLLISION config CPU_FAM_SAML21 bool select CPU_COMMON_SAML21 - select HAS_PERIPH_HWRNG config CPU_FAM_SAMR30 bool @@ -28,13 +21,6 @@ config CPU_FAM_SAMR30 config CPU_FAM_SAMR34 bool select CPU_COMMON_SAML21 - select HAS_PERIPH_HWRNG - -## Declaration of specific features -config HAS_CPU_SAML21 - bool - help - Indicates that a 'saml21' cpu is being used. ## Common CPU symbols config CPU_FAM diff --git a/cpu/stm32/Kconfig b/cpu/stm32/Kconfig index f6a0c4bba788..1626ac10d4e0 100644 --- a/cpu/stm32/Kconfig +++ b/cpu/stm32/Kconfig @@ -7,18 +7,6 @@ config CPU_STM32 bool - select HAS_CPU_STM32 - select HAS_PERIPH_CPUID - select HAS_PERIPH_GPIO - select HAS_PERIPH_GPIO_IRQ - select HAS_PERIPH_TIMER_PERIODIC - select HAS_PERIPH_TIMER_QUERY_FREQS - select HAS_PERIPH_RTT_OVERFLOW - select HAS_PERIPH_UART_MODECFG - select HAS_PERIPH_UART_NONBLOCKING - - # This CPU requires periph_rtc when periph_rtc_mem - select MODULE_PERIPH_RTC if MODULE_PERIPH_RTC_MEM && HAS_PERIPH_RTC menu "STM32 configuration" @@ -26,28 +14,12 @@ menu "STM32 configuration" config CPU default "stm32" if CPU_STM32 -# Definition of specific features -config HAS_CPU_STM32 - bool - help - Indicates that a 'stm32' cpu is being used. - -config HAS_BOOTLOADER_STM32 - bool - help - Indicates that the stm32 bootloader is being used. - -config MODULE_BOOTLOADER_STM32 - bool "STM32 DFU/UART/SPI bootloader" - depends on HAS_BOOTLOADER_STM32 - depends on TEST_KCONFIG - menu "STM32 clock configuration" depends on CPU_STM32 rsource "kconfigs/Kconfig.clk" -rsource "kconfigs/$(CPU_FAM)/Kconfig.clk" +orsource "kconfigs/$(CPU_FAM)/Kconfig.clk" endmenu @@ -75,17 +47,4 @@ config RDP2 bool "RDP2" endchoice -rsource "periph/Kconfig.fmc" - -if TEST_KCONFIG - -rsource "lcd_fmc/Kconfig" -rsource "periph/Kconfig" -rsource "stmclk/Kconfig" -rsource "vectors/Kconfig" - -endif # TEST_KCONFIG - endmenu - -source "$(RIOTCPU)/cortexm_common/Kconfig" diff --git a/cpu/stm32/Makefile.features b/cpu/stm32/Makefile.features index 4757210cf392..8d9fb8d78078 100644 --- a/cpu/stm32/Makefile.features +++ b/cpu/stm32/Makefile.features @@ -110,10 +110,3 @@ ifneq (,$(filter $(CPU_MODEL),$(STM32_WITH_MPU))) endif include $(RIOTCPU)/cortexm_common/Makefile.features - -# Add stm32 configs after including cortexm_common so stm32 takes precedence -# This configuration enables modules that are only available when using Kconfig -# module modelling -ifeq (1, $(TEST_KCONFIG)) - KCONFIG_CPU_CONFIG += $(RIOTCPU)/stm32/stm32.config -endif diff --git a/cpu/stm32/kconfigs/c0/Kconfig b/cpu/stm32/kconfigs/c0/Kconfig index 5229d868f024..65a7d5c79485 100644 --- a/cpu/stm32/kconfigs/c0/Kconfig +++ b/cpu/stm32/kconfigs/c0/Kconfig @@ -9,23 +9,6 @@ config CPU_FAM_C0 bool select CPU_STM32 select CPU_CORE_CORTEX_M0PLUS - select HAS_CPU_STM32C0 - select HAS_PERIPH_FLASHPAGE - select HAS_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE - select HAS_PERIPH_FLASHPAGE_PAGEWISE - select HAS_PERIPH_FLASHPAGE_RAW - select HAS_PERIPH_GPIO_LL - select HAS_PERIPH_GPIO_LL_IRQ - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_HIGH - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_LOW - select HAS_PERIPH_VBAT - select HAS_PERIPH_WDT - select HAS_BOOTLOADER_STM32 config CPU_FAM default "c0" if CPU_FAM_C0 - -config HAS_CPU_STM32C0 - bool - help - Indicates that the cpu being used belongs to the 'stm32c0' family. diff --git a/cpu/stm32/kconfigs/f0/Kconfig b/cpu/stm32/kconfigs/f0/Kconfig index a5ff5641e514..1e013d573de8 100644 --- a/cpu/stm32/kconfigs/f0/Kconfig +++ b/cpu/stm32/kconfigs/f0/Kconfig @@ -12,19 +12,3 @@ config CPU_FAM_F0 bool select CPU_STM32 select CPU_CORE_CORTEX_M0 - select HAS_CPU_STM32F0 - select HAS_PERIPH_FLASHPAGE - select HAS_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE - select HAS_PERIPH_FLASHPAGE_PAGEWISE - select HAS_PERIPH_FLASHPAGE_RAW - select HAS_PERIPH_GPIO_LL - select HAS_PERIPH_GPIO_LL_IRQ - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_HIGH - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_LOW - select HAS_PERIPH_WDT - select HAS_BOOTLOADER_STM32 - -config HAS_CPU_STM32F0 - bool - help - Indicates that the cpu being used belongs to the 'stm32f0' family. diff --git a/cpu/stm32/kconfigs/f0/Kconfig.lines b/cpu/stm32/kconfigs/f0/Kconfig.lines index 28226e48813e..e218a6d892e9 100644 --- a/cpu/stm32/kconfigs/f0/Kconfig.lines +++ b/cpu/stm32/kconfigs/f0/Kconfig.lines @@ -26,42 +26,30 @@ config CPU_LINE_STM32F030XC config CPU_LINE_STM32F031X6 bool select CPU_FAM_F0 - select HAS_PERIPH_RTC_MEM - select HAS_PERIPH_VBAT select HAVE_CLOCK_PLL_PREDIV_HARDWIRED_2 config CPU_LINE_STM32F038XX bool select CPU_FAM_F0 - select HAS_PERIPH_RTC_MEM - select HAS_PERIPH_VBAT config CPU_LINE_STM32F042X6 bool select CPU_FAM_F0 - select HAS_PERIPH_RTC_MEM - select HAS_PERIPH_VBAT select HAVE_CLOCK_PLL_PREDIV_HARDWIRED_2 config CPU_LINE_STM32F048XX bool select CPU_FAM_F0 - select HAS_PERIPH_RTC_MEM - select HAS_PERIPH_VBAT config CPU_LINE_STM32F051X8 bool select CPU_FAM_F0 select CLOCK_HAS_NO_MCO_PRE - select HAS_PERIPH_RTC_MEM - select HAS_PERIPH_VBAT config CPU_LINE_STM32F058XX bool select CPU_FAM_F0 select CLOCK_HAS_NO_MCO_PRE - select HAS_PERIPH_RTC_MEM - select HAS_PERIPH_VBAT config CPU_LINE_STM32F070X6 bool @@ -74,29 +62,19 @@ config CPU_LINE_STM32F070XB config CPU_LINE_STM32F071XB bool select CPU_FAM_F0 - select HAS_PERIPH_RTC_MEM - select HAS_PERIPH_VBAT config CPU_LINE_STM32F072XB bool select CPU_FAM_F0 - select HAS_PERIPH_RTC_MEM - select HAS_PERIPH_VBAT config CPU_LINE_STM32F078XX bool select CPU_FAM_F0 - select HAS_PERIPH_RTC_MEM - select HAS_PERIPH_VBAT config CPU_LINE_STM32F091XC bool select CPU_FAM_F0 - select HAS_PERIPH_RTC_MEM - select HAS_PERIPH_VBAT config CPU_LINE_STM32F098XX bool select CPU_FAM_F0 - select HAS_PERIPH_RTC_MEM - select HAS_PERIPH_VBAT diff --git a/cpu/stm32/kconfigs/f0f1f3/Kconfig.clk b/cpu/stm32/kconfigs/f0f1f3/Kconfig.clk index 21ef7de8b9a8..73861460c28f 100644 --- a/cpu/stm32/kconfigs/f0f1f3/Kconfig.clk +++ b/cpu/stm32/kconfigs/f0f1f3/Kconfig.clk @@ -22,10 +22,4 @@ config CLOCK_PLL_MUL range 2 16 -config HAVE_CLOCK_PLL_PREDIV_HARDWIRED_2 - bool - help - Indicated that this CPU Line has the prediv hardwired to 2, making it - unable to change. - endif # CPU_FAM_F0 || CPU_FAM_F1 || CPU_FAM_F3 diff --git a/cpu/stm32/kconfigs/f1/Kconfig b/cpu/stm32/kconfigs/f1/Kconfig index f14c5637eb98..fb614a424da1 100644 --- a/cpu/stm32/kconfigs/f1/Kconfig +++ b/cpu/stm32/kconfigs/f1/Kconfig @@ -7,22 +7,8 @@ config CPU_FAM_F1 bool - select CLOCK_HAS_NO_MCO_PRE select CPU_CORE_CORTEX_M3 select CPU_STM32 - select HAS_BOOTLOADER_STM32 - select HAS_CPU_STM32F1 - select HAS_PERIPH_FLASHPAGE - select HAS_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE - select HAS_PERIPH_FLASHPAGE_PAGEWISE - select HAS_PERIPH_FLASHPAGE_RAW - select HAS_PERIPH_GPIO_LL - select HAS_PERIPH_GPIO_LL_IRQ - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_HIGH - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_LOW - select HAS_PERIPH_RTT_SET_COUNTER - select HAS_PERIPH_WDT - select HAVE_SHARED_PERIPH_RTT_PERIPH_RTC if CPU_FAM_F1 @@ -30,8 +16,3 @@ config CPU_FAM default "f1" endif # CPU_FAM_F1 - -config HAS_CPU_STM32F1 - bool - help - Indicates that the cpu being used belongs to the 'stm32f1' family. diff --git a/cpu/stm32/kconfigs/f2/Kconfig b/cpu/stm32/kconfigs/f2/Kconfig index e3ecddea5835..c0613fac5004 100644 --- a/cpu/stm32/kconfigs/f2/Kconfig +++ b/cpu/stm32/kconfigs/f2/Kconfig @@ -9,28 +9,6 @@ config CPU_FAM_F2 bool select CPU_STM32 select CPU_CORE_CORTEX_M3 - select HAS_BACKUP_RAM - select HAS_CPU_STM32F2 - select HAS_CORTEXM_MPU - select HAS_PERIPH_FLASHPAGE - select HAS_PERIPH_GPIO_LL - select HAS_PERIPH_GPIO_LL_IRQ - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_HIGH - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_LOW - select HAS_PERIPH_HWRNG - select HAS_PERIPH_RTC_MEM - select HAS_PERIPH_SDMMC_AUTO_CLK - select HAS_PERIPH_SDMMC_CLK - select HAS_PERIPH_SDMMC_HS - select HAS_PERIPH_SDMMC_MMC - select HAS_PERIPH_VBAT - select HAS_PERIPH_WDT - select HAS_BOOTLOADER_STM32 config CPU_FAM default "f2" if CPU_FAM_F2 - -config HAS_CPU_STM32F2 - bool - help - Indicates that the cpu being used belongs to the 'stm32f2' family. diff --git a/cpu/stm32/kconfigs/f2f4f7mp1/Kconfig.clk b/cpu/stm32/kconfigs/f2f4f7mp1/Kconfig.clk index 5900f0247eb4..053b5bb5f7c3 100644 --- a/cpu/stm32/kconfigs/f2f4f7mp1/Kconfig.clk +++ b/cpu/stm32/kconfigs/f2f4f7mp1/Kconfig.clk @@ -45,10 +45,4 @@ config CLOCK_PLL_Q default 8 range 2 15 -config HAVE_CLOCK_ALT_48MHZ - bool - help - Indicates this CPU has an alternate clock source that can be used to - provide 48 MHz for the USB peripheral. - endif # CPU_FAM_F2 || CPU_FAM_F4 || CPU_FAM_F7 || CPU_FAM_MP1 diff --git a/cpu/stm32/kconfigs/f3/Kconfig b/cpu/stm32/kconfigs/f3/Kconfig index 6a61d33467ac..0b88e09efcfb 100644 --- a/cpu/stm32/kconfigs/f3/Kconfig +++ b/cpu/stm32/kconfigs/f3/Kconfig @@ -9,24 +9,6 @@ config CPU_FAM_F3 bool select CPU_STM32 select CPU_CORE_CORTEX_M4F - select HAS_CPU_STM32F3 - select HAS_PERIPH_FLASHPAGE - select HAS_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE - select HAS_PERIPH_FLASHPAGE_PAGEWISE - select HAS_PERIPH_FLASHPAGE_RAW - select HAS_PERIPH_GPIO_LL - select HAS_PERIPH_GPIO_LL_IRQ - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_HIGH - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_LOW - select HAS_PERIPH_RTC_MEM - select HAS_PERIPH_VBAT - select HAS_PERIPH_WDT - select HAS_BOOTLOADER_STM32 config CPU_FAM default "f3" if CPU_FAM_F3 - -config HAS_CPU_STM32F3 - bool - help - Indicates that the cpu being used belongs to the 'stm32f3' family. diff --git a/cpu/stm32/kconfigs/f3/Kconfig.lines b/cpu/stm32/kconfigs/f3/Kconfig.lines index f964c3a9777a..c4aafc0a90e6 100644 --- a/cpu/stm32/kconfigs/f3/Kconfig.lines +++ b/cpu/stm32/kconfigs/f3/Kconfig.lines @@ -45,14 +45,12 @@ config CPU_LINE_STM32F303XB config CPU_LINE_STM32F303XC bool select CPU_FAM_F3 - select HAS_CORTEXM_MPU select CLOCK_HAS_NO_MCO_PRE select HAVE_CLOCK_PLL_PREDIV_HARDWIRED_2 config CPU_LINE_STM32F303XE bool select CPU_FAM_F3 - select HAS_CORTEXM_MPU config CPU_LINE_STM32F318XX bool diff --git a/cpu/stm32/kconfigs/f4/Kconfig b/cpu/stm32/kconfigs/f4/Kconfig index fc72cecea9c5..d0ec67552593 100644 --- a/cpu/stm32/kconfigs/f4/Kconfig +++ b/cpu/stm32/kconfigs/f4/Kconfig @@ -9,30 +9,10 @@ config CPU_FAM_F4 bool select CPU_STM32 select CPU_CORE_CORTEX_M4F - select HAS_CPU_STM32F4 - select HAS_CORTEXM_MPU - select HAS_PERIPH_FLASHPAGE - select HAS_PERIPH_GPIO_LL - select HAS_PERIPH_GPIO_LL_IRQ - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_HIGH - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_LOW - select HAS_PERIPH_RTC_MEM - select HAS_PERIPH_SDMMC_AUTO_CLK - select HAS_PERIPH_SDMMC_CLK - select HAS_PERIPH_SDMMC_HS - select HAS_PERIPH_SDMMC_MMC - select HAS_PERIPH_VBAT - select HAS_PERIPH_WDT - select HAS_BOOTLOADER_STM32 config CPU_FAM default "f4" if CPU_FAM_F4 -config HAS_CPU_STM32F4 - bool - help - Indicates that the cpu being used belongs to the 'stm32f4' family. - config CLOCK_MAX_84MHZ bool help diff --git a/cpu/stm32/kconfigs/f4/Kconfig.lines b/cpu/stm32/kconfigs/f4/Kconfig.lines index 40491548da83..564afc9f41ca 100644 --- a/cpu/stm32/kconfigs/f4/Kconfig.lines +++ b/cpu/stm32/kconfigs/f4/Kconfig.lines @@ -23,15 +23,11 @@ config CPU_LINE_STM32F401XE config CPU_LINE_STM32F405XX bool select CPU_FAM_F4 - select HAS_BACKUP_RAM - select HAS_PERIPH_HWRNG select CLOCK_MAX_180MHZ config CPU_LINE_STM32F407XX bool select CPU_FAM_F4 - select HAS_BACKUP_RAM - select HAS_PERIPH_HWRNG select CLOCK_MAX_180MHZ config CPU_LINE_STM32F410CX @@ -42,7 +38,6 @@ config CPU_LINE_STM32F410CX config CPU_LINE_STM32F410RX bool select CPU_FAM_F4 - select HAS_PERIPH_HWRNG select CLOCK_MAX_100MHZ config CPU_LINE_STM32F410TX @@ -76,28 +71,23 @@ config CPU_LINE_STM32F412VX config CPU_LINE_STM32F412ZX bool select CPU_FAM_F4 - select HAS_PERIPH_HWRNG select CLOCK_MAX_100MHZ select HAVE_CLOCK_ALT_48MHZ config CPU_LINE_STM32F413XX bool select CPU_FAM_F4 - select HAS_PERIPH_HWRNG select CLOCK_MAX_100MHZ select HAVE_CLOCK_ALT_48MHZ config CPU_LINE_STM32F415XX bool select CPU_FAM_F4 - select HAS_BACKUP_RAM - select HAS_PERIPH_HWRNG select CLOCK_MAX_180MHZ config CPU_LINE_STM32F417XX bool select CPU_FAM_F4 - select HAS_BACKUP_RAM select CLOCK_MAX_180MHZ config CPU_LINE_STM32F423XX @@ -109,48 +99,37 @@ config CPU_LINE_STM32F423XX config CPU_LINE_STM32F427XX bool select CPU_FAM_F4 - select HAS_BACKUP_RAM select CLOCK_MAX_180MHZ config CPU_LINE_STM32F429XX bool select CPU_FAM_F4 - select HAS_BACKUP_RAM - select HAS_PERIPH_HWRNG select CLOCK_MAX_180MHZ config CPU_LINE_STM32F437XX bool select CPU_FAM_F4 - select HAS_BACKUP_RAM - select HAS_PERIPH_HWRNG select CLOCK_MAX_180MHZ config CPU_LINE_STM32F439XX bool select CPU_FAM_F4 - select HAS_BACKUP_RAM - select HAS_PERIPH_HWRNG select CLOCK_MAX_180MHZ config CPU_LINE_STM32F446XX bool select CPU_FAM_F4 - select HAS_BACKUP_RAM select CLOCK_MAX_180MHZ select HAVE_CLOCK_ALT_48MHZ config CPU_LINE_STM32F469XX bool select CPU_FAM_F4 - select HAS_BACKUP_RAM - select HAS_PERIPH_HWRNG select CLOCK_MAX_180MHZ select HAVE_CLOCK_ALT_48MHZ config CPU_LINE_STM32F479XX bool select CPU_FAM_F4 - select HAS_BACKUP_RAM select CLOCK_MAX_180MHZ select HAVE_CLOCK_ALT_48MHZ diff --git a/cpu/stm32/kconfigs/f7/Kconfig b/cpu/stm32/kconfigs/f7/Kconfig index bff462e03422..a830d07cfe50 100644 --- a/cpu/stm32/kconfigs/f7/Kconfig +++ b/cpu/stm32/kconfigs/f7/Kconfig @@ -9,29 +9,6 @@ config CPU_FAM_F7 bool select CPU_STM32 select CPU_CORE_CORTEX_M7 - select HAS_BACKUP_RAM - select HAS_CPU_STM32F7 - select HAS_CORTEXM_MPU - select HAS_PERIPH_FLASHPAGE - select HAS_PERIPH_GPIO_LL - select HAS_PERIPH_GPIO_LL_IRQ - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_HIGH - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_LOW - select HAS_PERIPH_HWRNG - select HAS_PERIPH_RTC_MEM - select HAS_PERIPH_SDMMC_AUTO_CLK - select HAS_PERIPH_SDMMC_CLK - select HAS_PERIPH_SDMMC_HS - select HAS_PERIPH_SDMMC_MMC - select HAS_PERIPH_VBAT - select HAS_PERIPH_WDT - select HAS_BOOTLOADER_STM32 - select HAVE_CLOCK_ALT_48MHZ config CPU_FAM default "f7" if CPU_FAM_F7 - -config HAS_CPU_STM32F7 - bool - help - Indicates that the cpu being used belongs to the 'stm32f7' family. diff --git a/cpu/stm32/kconfigs/g0/Kconfig b/cpu/stm32/kconfigs/g0/Kconfig index 680376770b2f..9b88fe266b5c 100644 --- a/cpu/stm32/kconfigs/g0/Kconfig +++ b/cpu/stm32/kconfigs/g0/Kconfig @@ -9,23 +9,6 @@ config CPU_FAM_G0 bool select CPU_STM32 select CPU_CORE_CORTEX_M0PLUS - select HAS_CPU_STM32G0 - select HAS_PERIPH_FLASHPAGE - select HAS_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE - select HAS_PERIPH_FLASHPAGE_PAGEWISE - select HAS_PERIPH_FLASHPAGE_RAW - select HAS_PERIPH_GPIO_LL - select HAS_PERIPH_GPIO_LL_IRQ - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_HIGH - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_LOW - select HAS_PERIPH_VBAT - select HAS_PERIPH_WDT - select HAS_BOOTLOADER_STM32 config CPU_FAM default "g0" if CPU_FAM_G0 - -config HAS_CPU_STM32G0 - bool - help - Indicates that the cpu being used belongs to the 'stm32g0' family. diff --git a/cpu/stm32/kconfigs/g4/Kconfig b/cpu/stm32/kconfigs/g4/Kconfig index 030751d8404f..2c9f469577e3 100644 --- a/cpu/stm32/kconfigs/g4/Kconfig +++ b/cpu/stm32/kconfigs/g4/Kconfig @@ -9,24 +9,6 @@ config CPU_FAM_G4 bool select CPU_STM32 select CPU_CORE_CORTEX_M4 - select HAS_CPU_STM32G4 - select HAS_CORTEXM_MPU - select HAS_PERIPH_FLASHPAGE - select HAS_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE - select HAS_PERIPH_FLASHPAGE_PAGEWISE - select HAS_PERIPH_GPIO_LL - select HAS_PERIPH_GPIO_LL_IRQ - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_HIGH - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_LOW - select HAS_PERIPH_HWRNG - select HAS_PERIPH_VBAT - select HAS_PERIPH_WDT - select HAS_BOOTLOADER_STM32 config CPU_FAM default "g4" if CPU_FAM_G4 - -config HAS_CPU_STM32G4 - bool - help - Indicates that the cpu being used belongs to the 'stm32g4' family. diff --git a/cpu/stm32/kconfigs/l0/Kconfig b/cpu/stm32/kconfigs/l0/Kconfig index fa975a163b5b..836c128ec6a8 100644 --- a/cpu/stm32/kconfigs/l0/Kconfig +++ b/cpu/stm32/kconfigs/l0/Kconfig @@ -9,23 +9,6 @@ config CPU_FAM_L0 bool select CPU_STM32 select CPU_CORE_CORTEX_M0PLUS - select HAS_CPU_STM32L0 - select HAS_PERIPH_EEPROM - select HAS_PERIPH_FLASHPAGE - select HAS_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE - select HAS_PERIPH_FLASHPAGE_PAGEWISE - select HAS_PERIPH_GPIO_LL - select HAS_PERIPH_GPIO_LL_IRQ - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_HIGH - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_LOW - select HAS_PERIPH_RTC_MEM - select HAS_PERIPH_WDT - select HAS_BOOTLOADER_STM32 config CPU_FAM default "l0" if CPU_FAM_L0 - -config HAS_CPU_STM32L0 - bool - help - Indicates that the cpu being used belongs to the 'stm32l0' family. diff --git a/cpu/stm32/kconfigs/l0/Kconfig.lines b/cpu/stm32/kconfigs/l0/Kconfig.lines index 57db516448c0..07d7ffb9ac52 100644 --- a/cpu/stm32/kconfigs/l0/Kconfig.lines +++ b/cpu/stm32/kconfigs/l0/Kconfig.lines @@ -49,12 +49,10 @@ config CPU_LINE_STM32L051XX config CPU_LINE_STM32L052XX bool select CPU_FAM_L0 - select HAS_PERIPH_HWRNG config CPU_LINE_STM32L053XX bool select CPU_FAM_L0 - select HAS_PERIPH_HWRNG config CPU_LINE_STM32L061XX bool @@ -75,12 +73,10 @@ config CPU_LINE_STM32L071XX config CPU_LINE_STM32L072XX bool select CPU_FAM_L0 - select HAS_PERIPH_HWRNG config CPU_LINE_STM32L073XX bool select CPU_FAM_L0 - select HAS_PERIPH_HWRNG config CPU_LINE_STM32L081XX bool diff --git a/cpu/stm32/kconfigs/l1/Kconfig b/cpu/stm32/kconfigs/l1/Kconfig index f5cb9142c470..84baf1f64e8c 100644 --- a/cpu/stm32/kconfigs/l1/Kconfig +++ b/cpu/stm32/kconfigs/l1/Kconfig @@ -9,24 +9,6 @@ config CPU_FAM_L1 bool select CPU_STM32 select CPU_CORE_CORTEX_M3 - select HAS_CPU_STM32L1 - select HAS_CORTEXM_MPU - select HAS_PERIPH_EEPROM - select HAS_PERIPH_FLASHPAGE - select HAS_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE - select HAS_PERIPH_FLASHPAGE_PAGEWISE - select HAS_PERIPH_GPIO_LL - select HAS_PERIPH_GPIO_LL_IRQ - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_HIGH - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_LOW - select HAS_PERIPH_RTC_MEM - select HAS_PERIPH_WDT - select HAS_BOOTLOADER_STM32 config CPU_FAM default "l1" if CPU_FAM_L1 - -config HAS_CPU_STM32L1 - bool - help - Indicates that the cpu being used belongs to the 'stm32l1' family. diff --git a/cpu/stm32/kconfigs/l4/Kconfig b/cpu/stm32/kconfigs/l4/Kconfig index 437a852c61b4..e8fe8b473095 100644 --- a/cpu/stm32/kconfigs/l4/Kconfig +++ b/cpu/stm32/kconfigs/l4/Kconfig @@ -9,29 +9,6 @@ config CPU_FAM_L4 bool select CPU_STM32 select CPU_CORE_CORTEX_M4F - select HAS_CPU_STM32L4 - select HAS_CORTEXM_MPU - select HAS_PERIPH_FLASHPAGE - select HAS_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE - select HAS_PERIPH_FLASHPAGE_PAGEWISE - select HAS_PERIPH_GPIO_LL - select HAS_PERIPH_GPIO_LL_IRQ - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_HIGH - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_LOW - select HAS_PERIPH_HWRNG - select HAS_PERIPH_RTC_MEM - select HAS_PERIPH_SDMMC_AUTO_CLK - select HAS_PERIPH_SDMMC_CLK - select HAS_PERIPH_SDMMC_HS - select HAS_PERIPH_SDMMC_MMC - select HAS_PERIPH_VBAT - select HAS_PERIPH_WDT - select HAS_BOOTLOADER_STM32 config CPU_FAM default "l4" if CPU_FAM_L4 - -config HAS_CPU_STM32L4 - bool - help - Indicates that the cpu being used belongs to the 'stm32l4' family. diff --git a/cpu/stm32/kconfigs/l5/Kconfig b/cpu/stm32/kconfigs/l5/Kconfig index 76225711497f..21c5ef49505e 100644 --- a/cpu/stm32/kconfigs/l5/Kconfig +++ b/cpu/stm32/kconfigs/l5/Kconfig @@ -9,24 +9,6 @@ config CPU_FAM_L5 bool select CPU_STM32 select CPU_CORE_CORTEX_M33 - select HAS_CPU_STM32L5 - select HAS_PERIPH_FLASHPAGE - select HAS_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE - select HAS_PERIPH_FLASHPAGE_PAGEWISE - select HAS_PERIPH_GPIO_LL - select HAS_PERIPH_GPIO_LL_IRQ - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_HIGH - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_LOW - select HAS_PERIPH_HWRNG - select HAS_PERIPH_RTC_MEM - select HAS_PERIPH_VBAT - select HAS_PERIPH_WDT - select HAS_BOOTLOADER_STM32 config CPU_FAM default "l5" if CPU_FAM_L5 - -config HAS_CPU_STM32L5 - bool - help - Indicates that the cpu being used belongs to the 'stm32l5' family. diff --git a/cpu/stm32/kconfigs/mp1/Kconfig b/cpu/stm32/kconfigs/mp1/Kconfig index 28741fe36d06..dc95c9904b81 100644 --- a/cpu/stm32/kconfigs/mp1/Kconfig +++ b/cpu/stm32/kconfigs/mp1/Kconfig @@ -8,17 +8,6 @@ config CPU_FAM_MP1 bool select CPU_STM32 select CPU_CORE_CORTEX_M4F - select HAS_CORTEXM_MPU - select HAS_CPU_STM32MP1 - select HAS_PERIPH_GPIO_LL - select HAS_PERIPH_GPIO_LL_IRQ - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_HIGH - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_LOW config CPU_FAM default "mp1" if CPU_FAM_MP1 - -config HAS_CPU_STM32MP1 - bool - help - Indicates that the cpu being used belongs to the 'stm32mp1' family. diff --git a/cpu/stm32/kconfigs/u5/Kconfig b/cpu/stm32/kconfigs/u5/Kconfig index fdfd90bf3b1d..75f811c8a67a 100644 --- a/cpu/stm32/kconfigs/u5/Kconfig +++ b/cpu/stm32/kconfigs/u5/Kconfig @@ -9,25 +9,6 @@ config CPU_FAM_U5 bool select CPU_STM32 select CPU_CORE_CORTEX_M33 - select HAS_BACKUP_RAM - select HAS_CPU_STM32U5 - select HAS_PERIPH_FLASHPAGE - select HAS_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE - select HAS_PERIPH_FLASHPAGE_PAGEWISE - select HAS_PERIPH_GPIO_LL - select HAS_PERIPH_GPIO_LL_IRQ - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_HIGH - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_LOW - select HAS_PERIPH_HWRNG - select HAS_PERIPH_RTC_MEM - select HAS_PERIPH_VBAT - select HAS_PERIPH_WDT - select HAS_BOOTLOADER_STM32 config CPU_FAM default "u5" if CPU_FAM_U5 - -config HAS_CPU_STM32U5 - bool - help - Indicates that the cpu being used belongs to the 'stm32u5' family. diff --git a/cpu/stm32/kconfigs/u5/Kconfig.clk b/cpu/stm32/kconfigs/u5/Kconfig.clk deleted file mode 100644 index 7062ae4ea72a..000000000000 --- a/cpu/stm32/kconfigs/u5/Kconfig.clk +++ /dev/null @@ -1,6 +0,0 @@ -# Copyright (c) 2022 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. -# diff --git a/cpu/stm32/kconfigs/wb/Kconfig b/cpu/stm32/kconfigs/wb/Kconfig index d8a4f74cb0da..018cd5f25a04 100644 --- a/cpu/stm32/kconfigs/wb/Kconfig +++ b/cpu/stm32/kconfigs/wb/Kconfig @@ -9,24 +9,6 @@ config CPU_FAM_WB bool select CPU_STM32 select CPU_CORE_CORTEX_M4 - select HAS_CPU_STM32WB - select HAS_PERIPH_FLASHPAGE - select HAS_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE - select HAS_PERIPH_FLASHPAGE_PAGEWISE - select HAS_PERIPH_GPIO_LL - select HAS_PERIPH_GPIO_LL_IRQ - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_HIGH - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_LOW - select HAS_PERIPH_HWRNG - select HAS_PERIPH_RTC_MEM - select HAS_PERIPH_VBAT - select HAS_PERIPH_WDT - select HAS_BOOTLOADER_STM32 config CPU_FAM default "wb" if CPU_FAM_WB - -config HAS_CPU_STM32WB - bool - help - Indicates that the cpu being used belongs to the 'stm32wb' family. diff --git a/cpu/stm32/kconfigs/wl/Kconfig b/cpu/stm32/kconfigs/wl/Kconfig index a8fb760eb519..7c98b64b4e7b 100644 --- a/cpu/stm32/kconfigs/wl/Kconfig +++ b/cpu/stm32/kconfigs/wl/Kconfig @@ -10,27 +10,10 @@ config CPU_FAM_WL bool select CPU_STM32 select CPU_CORE_CORTEX_M4 - select HAS_CPU_STM32WL - select HAS_PERIPH_FLASHPAGE - select HAS_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE - select HAS_PERIPH_FLASHPAGE_PAGEWISE - select HAS_PERIPH_GPIO_LL - select HAS_PERIPH_GPIO_LL_IRQ - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_HIGH - select HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_LOW - select HAS_PERIPH_RTC_MEM - select HAS_PERIPH_VBAT - select HAS_PERIPH_WDT - select HAS_BOOTLOADER_STM32 config CPU_FAM default "wl" if CPU_FAM_WL -config HAS_CPU_STM32WL - bool - help - Indicates that the cpu being used belongs to the 'stm32wl' family. - config STM32_WL55JC_SUBGHZ_DEBUG bool "STM32WL->Enable Hardware Debugging" help diff --git a/cpu/stm32/lcd_fmc/Kconfig b/cpu/stm32/lcd_fmc/Kconfig deleted file mode 100644 index 96a3da5c5e14..000000000000 --- a/cpu/stm32/lcd_fmc/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright (c) 2023 Gunar Schorcht -# -# 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_LCD_FMC - bool - depends on MODULE_LCD - select MODULE_PERIPH_FMC - select MODULE_PERIPH_FMC_NOR_SRAM - default y if HAVE_LCD_PARALLEL_LL_MCU diff --git a/cpu/stm32/periph/Kconfig b/cpu/stm32/periph/Kconfig deleted file mode 100644 index 9ea741c7859a..000000000000 --- a/cpu/stm32/periph/Kconfig +++ /dev/null @@ -1,79 +0,0 @@ -# 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_PERIPH - bool - default y - select MODULE_ZTIMER if MODULE_PERIPH_USBDEV - select MODULE_ZTIMER_MSEC if MODULE_PERIPH_USBDEV - # Whole STM32 families F2, F4, F7, H7 and U5 use the Synopsys DWC2 USB OTG core - select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && HAS_CPU_STM32F2 - select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && HAS_CPU_STM32F4 - select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && HAS_CPU_STM32F7 - select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && HAS_CPU_STM32H7 - select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && HAS_CPU_STM32U5 - # STM32F105xx and STM32F107xx lines also use the Synopsys DWC2 USB OTG core - select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && CPU_LINE_STM32F105XC - select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && CPU_LINE_STM32F107XC - # Several lines of STM32L4 family also use the Synopsys DWC2 USB OTG core - select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && CPU_LINE_STM32L475XX - select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && CPU_LINE_STM32L476XX - select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && CPU_LINE_STM32L485XX - select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && CPU_LINE_STM32L486XX - select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && CPU_LINE_STM32L496XX - select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && CPU_LINE_STM32L4A6XX - select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && CPU_LINE_STM32L4P5XX - select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && CPU_LINE_STM32L4Q5XX - select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && CPU_LINE_STM32L4R5XX - select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && CPU_LINE_STM32L4R7XX - select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && CPU_LINE_STM32L4R9XX - select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && CPU_LINE_STM32L4S5XX - select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && CPU_LINE_STM32L4S7XX - select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && CPU_LINE_STM32L4S9XX - # Special SDMMC dependencies - select MODULE_PERIPH_GPIO_IRQ if MODULE_PERIPH_SDMMC - select MODULE_PERIPH_DMA if MODULE_PERIPH_SDMMC && HAS_PERIPH_DMA - help - stm32 common peripheral code. - -config MODULE_PERIPH_UART_NONBLOCKING - depends on HAS_PERIPH_UART_NONBLOCKING - depends on MODULE_PERIPH_UART - select MODULE_TSRB - -config MODULE_PERIPH_CAN - bool - depends on HAS_PERIPH_CAN - depends on HAS_PERIPH_GPIO - depends on HAS_PERIPH_GPIO_IRQ - select MODULE_PERIPH_GPIO_IRQ - select MODULE_PERIPH_I2C - help - STM32 CAN peripheral controller. - -config MODULE_PERIPH_ADC - bool "ADC peripheral driver" - depends on HAS_PERIPH_ADC - select MODULE_ZTIMER if HAS_CPU_STM32F3 || HAS_CPU_STM32L4 || HAS_CPU_STM32WL - select MODULE_ZTIMER_MSEC if HAS_CPU_STM32F3 || HAS_CPU_STM32L4 || HAS_CPU_STM32WL - select MODULE_PERIPH_COMMON - -config MODULE_PERIPH_LTDC - bool "LTDC peripheral driver" - depends on HAS_PERIPH_LTDC - help - STM32 LCD-TFT Display controller - -config MODULE_PERIPH_SDMMC_CLK - bool - depends on HAS_PERIPH_SDMMC_CLK - default y if MODULE_PERIPH_SDMMC - -config MODULE_PERIPH_INIT_SDMMC_CLK - bool - depends on MODULE_PERIPH_SDMMC_CLK - default y if MODULE_PERIPH_INIT diff --git a/cpu/stm32/periph/Kconfig.eth b/cpu/stm32/periph/Kconfig.eth deleted file mode 100644 index 14aaad0367c2..000000000000 --- a/cpu/stm32/periph/Kconfig.eth +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright (c) 2022 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_STM32_ETH - bool - prompt "STM32 ethernet peripheral" if !(HAVE_STM32_ETH && MODULE_NETDEV_DEFAULT) - default (HAVE_STM32_ETH && MODULE_NETDEV_DEFAULT) - depends on TEST_KCONFIG - depends on CPU_STM32 - depends on HAS_PERIPH_ETH - select MODULE_PERIPH_ETH - select MODULE_NETDEV_ETH - select MODULE_NETDEV_LEGACY_API - select MODULE_IOLIST - select MODULE_ZTIMER - select MODULE_ZTIMER_MSEC - -if MODULE_STM32_ETH - -config MODULE_STM32_ETH_AUTO - bool "Link auto-negotiation" - select MODULE_STM32_ETH_LINK_UP - help - Say y to enable link auto-negotiation. In general, it is highly - recommended to use auto-negotiation, as this can avoid various - communication issues on the PHY layer due to configuration mismatch of - the link partners. Note that this feature depends on the link state - events feature. - -config MODULE_STM32_ETH_LINK_UP - bool "Link state events" - help - Say y to enable link events. - -endif # MODULE_STM32_ETH - -config MODULE_PERIPH_ETH - bool - depends on HAS_PERIPH_ETH - select MODULE_PERIPH_ETH_COMMON if CPU_STM32 - -config MODULE_PERIPH_ETH_COMMON - bool - -config HAVE_STM32_ETH - bool - help - Indicates that a stm32 ethernet peripheral is present. diff --git a/cpu/stm32/periph/Kconfig.fmc b/cpu/stm32/periph/Kconfig.fmc deleted file mode 100644 index e9304a96228f..000000000000 --- a/cpu/stm32/periph/Kconfig.fmc +++ /dev/null @@ -1,97 +0,0 @@ -# Copyright (c) 2023 Gunar Schorcht -# -# 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_PERIPH_FMC - bool "FMC/FSMC peripheral driver" - depends on TEST_KCONFIG - depends on HAS_PERIPH_FMC - help - STM32 FMC/FSMC controller - -if MODULE_PERIPH_FMC - -config MODULE_PERIPH_FMC_NOR_SRAM - bool "NOR/PSRAM/SRAM support" - depends on HAS_PERIPH_FMC_NOR_SRAM - help - Enables NOR Flash, PSRAM and SRAM support of the STM32 FMC/FSMC - driver. - -config MODULE_PERIPH_FMC_SDRAM - bool "SDRAM support" - depends on HAS_PERIPH_FMC_SDRAM - help - Enables SDRAM support of the STM32 FMC/FSMC driver. - -config MODULE_PERIPH_FMC_16BIT - bool - default y if HAS_PERIPH_FMC_16BIT - help - Enables 16-bit data bus support of the STM32 FMC/FSMC driver. - -config MODULE_PERIPH_FMC_32BIT - bool - default y if HAS_PERIPH_FMC_32BIT - help - Enables 32-bit data bus support of the STM32 FMC/FSMC driver. - -config MODULE_PERIPH_INIT_FMC - bool "Auto initialize STM32 FMC/FMSC peripheral" - default y if MODULE_PERIPH_INIT - -config MODULE_PERIPH_INIT_FMC_NOR_SRAM - bool "Auto initialize NOR/PSRAM/SRAM support" - default y if MODULE_PERIPH_INIT - depends on MODULE_PERIPH_FMC_NOR_SRAM - -config MODULE_PERIPH_INIT_FMC_SDRAM - bool "Auto initialize SDRAM support" - default y if MODULE_PERIPH_INIT - depends on MODULE_PERIPH_FMC_SDRAM - -config MODULE_PERIPH_INIT_FMC_16BIT - bool "Auto initialize 16-bit data bus" - default y if MODULE_PERIPH_INIT - depends on MODULE_PERIPH_FMC_16BIT - -config MODULE_PERIPH_INIT_FMC_32BIT - bool "Auto initialize 32-bit data bus" - default y if MODULE_PERIPH_INIT - depends on MODULE_PERIPH_FMC_32BIT - -endif - -config HAS_PERIPH_FMC - bool - help - Indicates that a STM32 FMC/FSMC peripheral is present. - -config HAS_PERIPH_FMC_NOR_SRAM - bool - select HAS_PERIPH_FMC - help - Indicates that a NOR Flash, PSRAM or SRAM connected to the - STM32 FMC/FSMC peripheral is present. - -config HAS_PERIPH_FMC_SDRAM - bool - select HAS_PERIPH_FMC - help - Indicates that a SDRAM connected to the STM32 FMC/FSMC peripheral - is present. - -config HAS_PERIPH_FMC_16BIT - bool - select HAS_PERIPH_FMC - help - Indicates that the STM32 FMC/FSMC peripheral uses a 16-bit data bus. - -config HAS_PERIPH_FMC_32BIT - bool - select HAS_PERIPH_FMC - help - Indicates that the STM32 FMC/FSMC peripheral uses a 32-bit data bus. diff --git a/cpu/stm32/stm32.config b/cpu/stm32/stm32.config deleted file mode 100644 index 811b1f37127b..000000000000 --- a/cpu/stm32/stm32.config +++ /dev/null @@ -1 +0,0 @@ -CONFIG_MODULE_PM_LAYERED=y diff --git a/cpu/stm32/stmclk/Kconfig b/cpu/stm32/stmclk/Kconfig deleted file mode 100644 index 846db93c841c..000000000000 --- a/cpu/stm32/stmclk/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# 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_STM32_CLK - bool - default y diff --git a/cpu/stm32/vectors/Kconfig b/cpu/stm32/vectors/Kconfig deleted file mode 100644 index 93c7ab1081aa..000000000000 --- a/cpu/stm32/vectors/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# 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_STM32_VECTORS - bool - default y diff --git a/dist/tools/doccheck/exclude_simple b/dist/tools/doccheck/exclude_simple index 7b46ec40e293..121d11a15d9f 100644 --- a/dist/tools/doccheck/exclude_simple +++ b/dist/tools/doccheck/exclude_simple @@ -8424,4 +8424,40 @@ warning: Member LSM6DSXX_PARAM_GYRO_FIFO_DEC (macro definition) of file lsm6dsxx warning: Member LSM6DSXX_PARAMS (macro definition) of file lsm6dsxx_params.h is not documented. warning: Member LSM6DSXX_SAUL_INFO (macro definition) of file lsm6dsxx_params.h is not documented. RIOTDoxygenLayout.xml:8: warning: the type 'topics' is not supported for the entry tag within a navindex! Check your layout file! +warning: Member LSM6DSL_REG_SENSOR_SYNC_TIME_FRAME (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_SENSOR_SYC_RES_RATIO (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_DRDY_PULSE_CFG_G (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_MASTER_CONFIG (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_SENSORHUB1_REG (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_SENSORHUB2_REG (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_SENSORHUB3_REG (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_SENSORHUB4_REG (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_SENSORHUB5_REG (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_SENSORHUB6_REG (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_SENSORHUB7_REG (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_SENSORHUB8_REG (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_SENSORHUB9_REG (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_SENSORHUB10_REG (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_SENSORHUB11_REG (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_SENSORHUB12_REG (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_SENSORHUB13_REG (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_SENSORHUB14_REG (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_SENSORHUB15_REG (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_SENSORHUB16_REG (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_SENSORHUB17_REG (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_SENSORHUB18_REG (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_FUNC_SRC_2 (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_WRIST_TILT_IA (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_MASTER_CMD_CODE (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_SENS_SYNC_SPI_ERR_CODE (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_OUT_MAG_RAW_X_L (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_OUT_MAG_RAW_X_H (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_OUT_MAG_RAW_Y_L (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_OUT_MAG_RAW_Y_H (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_OUT_MAG_RAW_Z_L (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_OUT_MAG_RAW_Z_H (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_X_OFS_USR (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_Y_OFS_USR (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DSL_REG_Z_OFS_USR (macro definition) of file lsm6dsxx_internal.h is not documented. +warning: Member LSM6DS33_REG_ORIENT_CFG_G (macro definition) of file lsm6dsxx_internal.h is not documented. warning: Member AT6561_STBY_PIN (macro definition) of file board.h is not documented. diff --git a/dist/tools/kconfiglib/genconfig.py b/dist/tools/kconfiglib/genconfig.py index 2fa52f51b380..539adda18ae0 100755 --- a/dist/tools/kconfiglib/genconfig.py +++ b/dist/tools/kconfiglib/genconfig.py @@ -245,16 +245,9 @@ def check_configs(kconf): - A configuration parameter could not be set to value defined by the user. """ - test_kconfig = os.getenv("TEST_KCONFIG") - - if (test_kconfig): - app_check = check_application_symbol(kconf) - else: - app_check = True - sym_check = check_config_symbols(kconf) choice_check = check_config_choices(kconf) - return app_check and sym_check and choice_check + return sym_check and choice_check def get_sym_missing_deps(sym): diff --git a/dist/tools/kconfiglib/tests/test.sh b/dist/tools/kconfiglib/tests/test.sh index 6b38eabd4934..a404bf69e556 100755 --- a/dist/tools/kconfiglib/tests/test.sh +++ b/dist/tools/kconfiglib/tests/test.sh @@ -18,8 +18,6 @@ KCONFIGLIB_DIR="$(readlink -f "$(dirname "$0")/..")" TESTS_DIR=${KCONFIGLIB_DIR}/tests GENCONFIG=${KCONFIGLIB_DIR}/genconfig.py -export TEST_KCONFIG=1 - KCONFIG_FILE="${TESTS_DIR}/Kconfig.test" CONFIG_FOO_Y="${TESTS_DIR}/foo_y.config" CONFIG_BAR_Y="${TESTS_DIR}/bar_y.config" @@ -93,19 +91,6 @@ function check_files_exist { fi } -# TEST -# verifies that when the APPLICATION symbol is present, the script fails when -# its value is not 'y' because of missing dependencies (e.g. missing features). -function application_missing_deps_should_fail { - if OUT=$(${GENCONFIG} --kconfig-filename "${KCONFIG_FILE}" 2>&1) - then - 1>&2 echo -n "$OUT" - return 1 - else - return 0 - fi -} - # TEST # verifies that when the dependencies for the APPLICATION symbol are present # the symbol gets the 'y' value and the script succeeds. @@ -178,7 +163,6 @@ function choice_with_deps_should_succeed { } run_test check_files_exist -run_test application_missing_deps_should_fail run_test application_with_deps_should_succeed run_test missing_module_should_fail run_test module_with_deps_should_succeed diff --git a/doc/doxygen/RIOTDoxygenLayout.xml b/doc/doxygen/RIOTDoxygenLayout.xml index 8160d1ee1830..8fb2bdd9b424 100644 --- a/doc/doxygen/RIOTDoxygenLayout.xml +++ b/doc/doxygen/RIOTDoxygenLayout.xml @@ -5,8 +5,8 @@ - - + + diff --git a/doc/doxygen/riot.doxyfile b/doc/doxygen/riot.doxyfile index d33fb389e686..aa2e1eba0011 100644 --- a/doc/doxygen/riot.doxyfile +++ b/doc/doxygen/riot.doxyfile @@ -768,6 +768,7 @@ INPUT = ../../doc.txt \ src/driver-guide.md \ src/getting-started.md \ src/flashing.md \ + src/terminal-programs.md \ src/build-in-docker.md \ ../../tests/README.md \ src/build-system-basics.md \ diff --git a/doc/doxygen/src/js/riot-doxy.js b/doc/doxygen/src/js/riot-doxy.js index fb218a2ee784..4fb4ff16a8aa 100644 --- a/doc/doxygen/src/js/riot-doxy.js +++ b/doc/doxygen/src/js/riot-doxy.js @@ -46,6 +46,8 @@ function resize_content(sidenav) function resize_handler() { + if ($(window).width() == window_before) {return;} + var sidenav = $("#side-nav"); if ($(window).width() < 750) { var toc = $(".toc"); diff --git a/doc/doxygen/src/kconfig/kconfig.md b/doc/doxygen/src/kconfig/kconfig.md index 715443fc3eab..010f82aa8d99 100644 --- a/doc/doxygen/src/kconfig/kconfig.md +++ b/doc/doxygen/src/kconfig/kconfig.md @@ -123,10 +123,9 @@ The integration of Kconfig into the build system is mainly done in ![Output of every step of the build process](kconfig_integration.svg) ### 0. Module dependency resolution -Currently, the resolution of module dependencies is performed by the build +The resolution of module dependencies is performed by the build system where all the used modules and packages end up listed in the `USEMODULE` -make variables. In the next phases of integration we plan to resolve dependencies -using Kconfig. +or `USEPKG` make variables. #### Input @@ -185,13 +184,6 @@ parameters of the system. Kconfig will filter inapplicable parameters (i.e. parameters exposed by modules that are not being used) based on the file `$ (GENERATED_DIR)/Kconfig.dep` generated in step 1. -During the transition phase, the user needs to enable Kconfig explicitly per -module, by setting the corresponding option. If using `menuconfig` a checkbox -with a submenu has to be selected, if using `.config` files a -`CONFIG_KCONFIG_MODULE_` prefixed option has to be set to `y`. For more -information see -[Making configuration via Kconfig optional](#kconfig-configuration-optional). - Note that if Kconfig is not used to configure a module, the corresponding header files default values will be used. @@ -255,8 +247,7 @@ These files are defined in `kconfig.mk`. ## Kconfig symbols in Makefiles As '.config' files have Makefile syntax they can be included when building, -which allows to access the applied configuration from the build system and, in -the future, to check for enabled modules. +which allows to access the applied configuration from the build system. During migration this is also useful, as it gives the ability to check if a parameter is being configured via Kconfig or a default value via `CFLAGS` could @@ -282,49 +273,18 @@ RIOT, the default behavior will be the traditional one: expose configuration options in header files and use CFLAGS as inputs. To allow optional configuration via Kconfig, a convention will be used when writing Kconfig files. -Modules should be contained in their own `menuconfig` entries, this way the user +Modules should be contained in their own `menu` entries, this way the user can choose to enable the configuration via Kconfig for an specific module. These entries should define a dependency on the module they configure (see [Appendix A](#kconfig-appendix-a) to see how to check if a module is being used). -The module configuration then can be enabled either via the menuconfig -interface: - -![menuconfig-example](kconfig_menuconfig.png) - -or by means of a '.config' file: - -```Make -CONFIG_KCONFIG_MODULE_GCOAP=y -``` +The module configuration must be enabled either via make dependency modelling. -## Modelling CPUs, boards and provided features {#kconfig-cpu-boards-features} -During the current migration phase architectures, CPUs, boards and provided -features are being modelled in Kconfig. The following is a guide on how to +## Modelling CPUs and boards {#kconfig-cpu-boards-fekconfig-cpu-boards} +CPUs and boards are being modelled in Kconfig. The following is a guide on how to organize and name the symbols. -### Features -Features must be modelled as hidden boolean symbols with the prefix `HAS_`. They -must contain a `help` attribute clearly specifying what providing that feature -means. The location of the symbol declaration depends on the type of feature. -Features that are not platform-specific (e.g. `arch_32bit` or `cpp`) must be -placed in `/kconfigs/Kconfig.features`. If a feature is specific to a certain -CPU family or vendor, it should be placed in the correspondent Kconfig file -(e.g. `esp_wifi_enterprise`). Features related to modules should be placed in -the Kconfig file of that module. - -#### Example -The feature `arduino_pins` is placed in `/kconfigs/Kconfig.features` and modelled -like: - -```Kconfig -config HAS_ARDUINO_PINS - bool - help - Indicates that Arduino digital pins mappings are provided. -``` - ### CPUs The proposed hierarchy for the classification of CPUs is as follows: @@ -401,8 +361,6 @@ config CPU_FAM_SAMD21 bool select CPU_COMMON_SAM0 select CPU_CORE_CORTEX_M0PLUS - select HAS_CPU_SAMD21 - select HAS_PUF_SRAM # The value of the common value depends on the selected model config CPU_MODEL @@ -449,16 +407,6 @@ config BOARD_SAMR21_XPRO bool default y select CPU_MODEL_SAMR21G18A - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_RTC - select HAS_PERIPH_RTT - select HAS_PERIPH_SPI - select HAS_PERIPH_TIMER - select HAS_PERIPH_UART - select HAS_PERIPH_USBDEV - select HAS_RIOTBOOT ``` ### Default configurations @@ -472,7 +420,7 @@ sources added by the CPU or common CPU directories, and `KCONFIG_BOARD_CONFIG` for sources added by the board or common board directories. This ensures the correct priority of the configurations. -Currently the `Makefile.features` infrastructure is used to populate the +The `Makefile.features` infrastructure is used to populate the configuration sources. As the order in which `.config` files are merged matters, configuration sources should be ordered from more generic to more specific. Because board's `Makefile.features` is included before CPU's `Makefile.features` @@ -484,9 +432,7 @@ its configuration after it, and `boards/stm32f769i-disco` after it. include $(RIOTCPU)/cortexm_common/Makefile.features # Add stm32 configs after including cortexm_common so stm32 takes precedence -ifeq (1, $(TEST_KCONFIG)) - KCONFIG_CPU_CONFIG += $(RIOTCPU)/stm32/stm32.config -endif +KCONFIG_CPU_CONFIG += $(RIOTCPU)/stm32/stm32.config ``` ## Summary of reserved Kconfig prefixes @@ -503,10 +449,6 @@ reserved for the cases described below: | `CPU_CORE_` | Models a CPU core | | `CPU_FAM_` | Models a family of CPUs | | `CPU_MODEL_` | Models a particular model of CPU | -| `HAS_` | Models a [feature](build-system-basics.html#features) | -| `KCONFIG_USEMODULE_` | Used during transition to enable configuration of a module via Kconfig | -| `KCONFIG_USEPKG_` | Used during transition to enable configuration of a package via Kconfig | -| `HAVE_` | Models a feature not present in makefiles, will be unified in the future | | `USEMODULE_` | Models a [RIOT module](creating-modules.html#creating-modules). Generated from `USEMODULE` variable | | `USEPKG_` | Models an [external package](group__pkg.html). Generated from `USEPKG` variable | @@ -516,46 +458,33 @@ reserved for the cases described below: ## Appendix A: Check if a module or package is used {#kconfig-appendix-a} In order to show only the relevant configuration parameters to the user with respect to a given application and board selection, Kconfig needs knowledge -about all modules and packages to be used for a compilation. Currently -dependency handling among modules is performed by the build system (via +about all modules and packages to be used for a compilation. The dependency +handling among modules is performed by the build system (via `Makefile.dep` files). The interface defined to declared the used modules and packages is the `$ (GENERATED_DIR)/Kconfig.dep` file. -`Kconfig.dep` is a Kconfig file that will define symbols of the form: -```Kconfig -config MODULE_SOCK_UTIL - bool - default y -``` There will be a symbol for every used module (i.e. every module in `USEMODULE` make variable) and package. The names in the symbols will be uppercase and separated by `_`. Based on these symbols configurability is -decided. Modules and packages symbols will have `MODULE_` and `PKG_` prefixes -respectively. +decided. The following is an example of how to use these symbols in Kconfig files to -enable/disable a configuration menu: +configure compile-time configurations with `USEMODULE` dependencies: ```Kconfig -menuconfig KCONFIG_MODULE_SOCK_UTIL - bool "Configure Sock Utilities" - depends on MODULE_SOCK_UTIL - help - "Configure Sock Utilities using Kconfig." -``` - -Then, every configuration option for the previous module would be modeled like: - -```Kconfig -if KCONFIG_MODULE_SOCK_UTIL +menu "Configure Sock Utilities" + depends on USEMODULE_SOCK_UTIL config SOCK_UTIL_SCHEME_MAXLEN int "Maximum length of the scheme part for sock_urlsplit" default 16 -endif # KCONFIG_MODULE_SOCK_UTIL +... + +endmenu # Configure Sock Utilities ``` + ## Appendix B: Difference between 'Kconfig' and '.config' files {#kconfig-appendix-b} Kconfig files describe a configuration database, which is a collection of configuration options organized in a tree structure. Configuration options may diff --git a/doc/doxygen/src/terminal-programs.md b/doc/doxygen/src/terminal-programs.md new file mode 100644 index 000000000000..fd03b318a289 --- /dev/null +++ b/doc/doxygen/src/terminal-programs.md @@ -0,0 +1,49 @@ +Terminal programs configuration {#terminal-programs} +=========================================================== + +[TOC] + +Background {#background} +========== +This page explains how to configure some popular terminal programs for correct +display of newlines when using the serial interface of a RIOT powered device. +When printing something using *stdio* (e.g., `printf("Hello World!\n");`, RIOT +sends a line feed character (`0xA`) as `\n` (newline). + +Some terminals need more, for example, a carriage return and a line feed +character (0xD, 0xA). See https://en.wikipedia.org/wiki/Newline for background. + +This page tries to collect needed settings for common terminal programs that +will make them correctly display newlines. + +picocom {#picocom} +======= +- Generic method: + - Start with `--imap lfcrlf` parameter. +- Via RIOT build system: + - `RIOT_TERMINAL=picocom make term` + +gtkterm {#gtkterm} +====== +- Graphical method: + - Open the configuration menu. + - Click on ***CR LF auto***. +- Manual method: + - Edit the file `~/.gtktermrc`. + - Change value of ***crlfauto*** option to `True`. + +minicom {#minicom} +======= +- Interactive method: + - Press ***Ctrl+A u***. +- Manual method: + - Edit the configuration file (`~/.minirc.dfl` per default). + - Add the following line: + pu addcarreturn Yes + +miniterm {#miniterm} +======== +- Generic method: + - Start with `--eol CR`parameter. +- Via RIOT build system: + - `RIOT_TERMINAL=miniterm make term` diff --git a/doc/doxygen/src/vision.md b/doc/doxygen/src/vision.md index b64500873e83..1c888fb74801 100644 --- a/doc/doxygen/src/vision.md +++ b/doc/doxygen/src/vision.md @@ -1,5 +1,7 @@ # RIOT Vision {#vision} +![RIOT Vision: From proprietary manufacturer silos to a truly open cyber-physical system](vision.svg) + We expect an evolution in the software platforms powering Internet of Things devices that can be compared, to some extent, to the recent evolution of software platforms powering smartphones. diff --git a/doc/doxygen/src/vision.svg b/doc/doxygen/src/vision.svg new file mode 100644 index 000000000000..0432b7b0a261 --- /dev/null +++ b/doc/doxygen/src/vision.svg @@ -0,0 +1,734 @@ + + + +RIOT Vision: From manufacturer silos to a truly open cyber-physical systemimage/svg+xmlRIOT Vision: From manufacturer silos to a truly open cyber-physical system2024-03-21Martine S. Lenders diff --git a/doc/memos/rdm0002.md b/doc/memos/rdm0002.md index e930413255f5..ecd3b3fa5d66 100644 --- a/doc/memos/rdm0002.md +++ b/doc/memos/rdm0002.md @@ -1,7 +1,7 @@ - RDM: 2 - Title: The IEEE802.15.4 radio HAL - Authors: José Álamos -- Status: Active +- Status: Deprecated by RDM 0004 - Type: Design - Created: March 2020 diff --git a/doc/memos/rdm0004.md b/doc/memos/rdm0004.md new file mode 100644 index 000000000000..5586e2b9b8ab --- /dev/null +++ b/doc/memos/rdm0004.md @@ -0,0 +1,599 @@ +- RDM: 4 +- Title: The IEEE802.15.4 radio HAL +- Authors: José Álamos +- Status: Active +- Type: Design +- Created: March 2020 + +# 1. Abstract + +This memo describes a Hardware Abstraction Layer (HAL) for radios compliant +with the IEEE802.15.4 standard. The work follows a technology-specific approach +to provide well defined hardware access that allows to implement agnostic +IEEE802.15.4 PHY and MAC layers on top. Additionally, the new HAL enables +integration of network stacks that require direct access to the radio. + +# 2. Status + +This document is currently under open discussions. The content of this document +is licensed with a Creative Commons CC-BY-SA license. + +## 2.1 Terminology +This memo uses the [RFC2119](https://www.ietf.org/rfc/rfc2119.txt) terminology +and the following acronyms and definitions: + +## 2.2 Acronyms +- RDM: RIOT Developer Memo +- PIB: Physical Information Base. +- MIB: MAC Information Base. + +## 2.3 Definitions +- SubMAC: Lower layer of the IEEE802.15.4 MAC that provides the + retransmissions with CSMA-CA logic, address filtering and CRC validation. +- Standalone CCA: Single run of the Clear Channel Assessment procedure. +- Continuous CCA: Clear Channel Assessment procedure followed by transmission + (required by the CSMA-CA algorithm) +- Caps: Short word for capabilities. In this context, capabilities are the + the features (hardware acceleration) present in a radio device. +- Ops: Short word for operations. In this context, operations are a set of + instructions to control the radio device. + +# 3. Introduction +This document is a product of the +[Uniform Network Stack Integration](https://github.com/RIOT-OS/RIOT/issues/13771) +and aims to describe the architecture of a Hardware Abstraction Layer for +IEEE802.15.4 compliant radios. + +The IEEE802.15.4 Radio HAL abstracts common functionalities of +IEEE802.15.4 compliant radios such as loading packets, transmitting, +configuring PHY parameters, etc. This abstraction is required for upper layers +that require hardware-independent access to drive IEEE802.15.4 radio devices +(802.15.4 MAC, network stacks, test applications, etc). + +In the current RIOT lower network stack architecture, all network interfaces +are driven by the `netdev` interface. The work presented in this document +addresses deficits of using `netdev` as a Hardware Abstraction Layer: + +- `netdev` is too generic to be used as a HAL to cover the wide range of + different technologies in RIOT (IEEE802.15.4, BLE, Ethernet, WiFi, + Proprietary devices, ...). The semantics of a standardized radio are + technology specific and in most cases well defined. In the case of + IEEE802.15.4 devices, they are defined by the IEEE. +- `netdev` includes PHY and MAC components that are not in the scope of a + hardware abstraction layer. The `netdev` interface is implemented as a device + driver but it additionally includes technology-dependent components for every + single device. For the case of IEEE802.15.4, this includes components of the + 802.15.4 MAC/PHY such as transmission of Physical Service Data Units (PSDU), + or retransmissions with CSMA-CA and ACK handling. As a consequence, + code is duplicated, feature sets of similar devices heavily depend on the + specific implementation, and integration of new devices is more complex than + need be. Furthermore, duplication and unspecified device access complicate + code maintenance. +- `netdev` hardcodes MAC layer functionalities, which is likely the consequence + of hardware MAC acceleration on certain devices. These capabilities are + currently only available if the hardware provides integrated support. An + indication mechanism which MAC features are provided within a `netdev` + implementation is missing. A full MAC layer that is situated on top of the HAL + requires a defined access to specific radio functionalities in order to meet + timing constraints or energy requirements. That means, varying properties + between implementations and partly implemented MAC features within the device + driver interfere with the concept of transparent hardware access by one MAC + layer implementation. + + +Other components of the 802.15.4 MAC are present in the GNRC Netif +implementation for the 802.15.4 Link Layer (`gnrc_netif_ieee802154`). These +components prepare and parse 802.15.4 frames in order to send and receive data. +However, mandatory 802.15.4 MAC features are missing (commissioning, security, +channel scanning, etc). One major drawback of this approach is the fact that +802.15.4 MAC components of `gnrc_netif_ieee802154` are GNRC specific and +cannot be reused in other network stacks that require a 802.15.4 MAC. + +As a solution, the lower layer should be separated into three main components: +1. 802.15.4 Radio HAL: hardware-agnostic interface to drive radio devices + (proposed in this RDM). +2. 802.15.4 MAC: full link layer including PHY definition. +3. Network Stack interface (netif): controls the 802.15.4 MAC layer to send + and receive packets. It provides transparent and technology-independent + access to the medium. + +The 802.15.4 MAC and netif are not part of this document, but they are affected +by this work, thus, they are mentioned to give an outlook for upcoming efforts +on the lower network stack. + +The following picture compares the current RIOT lower network stack +architecture (left) with the approach described in this document (right). As +can be seen, the new approach adds IEEE802.15.4 specific APIs and layers +between the lower layer network stack interface (GNRC Netif) and the hardware +dependent device driver. In contrast, the `netdev` based solution misses a +specific Radio HAL which prevents to run a hardware-agnostic MAC on top. + + +``` + OLD | NEW + === | === + | ++---------------------+ | +---------------------+ +---------------------+ +| | | | | | | +| GNRC Network Stack | | | GNRC Network Stack | | | +| | | | | | | ++---------------------+ | +---------------------+ | | + ^ | ^ | | + | | | | | + gnrc_netapi | gnrc_netapi | OpenThread, OpenWSN | + | | | | | + v | v | | ++---------------------+ | +---------------------+ | | +| | | | | | | +| GNRC Netif | | | GNRC Netif | | | +| | | | | | | ++---------------------+ | +---------------------+ +---------------------+ + ^ | ^ ^ + | | | | + gnrc_netif_ops_t | gnrc_netif_ops_t | + | | | | + v | v | ++---------------------+ | +---------------------+ | +| | | | | | +|gnrc_netif_ieee802154| | |gnrc_netif_ieee802154| | +| | | | | | ++---------------------+ | +---------------------+ | + ^ | ^ | + | | | | + | | 802.15.4 MAC API Radio HAL API + | | | | + | | v | + | | +---------------------+ | + | | | | | + netdev_driver_t | | 802.15.4 MAC | | + | | | | | + | | +---------------------+ | + | | ^ | + | | | | + | | Radio HAL API ----------------+ + | | | | + v | v v ++---------------------+ | +---------------------+-------------------------+ +| | | | | | | +| netdev | Device | | | 802.15.4 Radio HAL | | +| | Driver | | | | Device Driver | +|----------+ | | +---------------------+ | +| | | | | ++---------------------+ | +-----------------------------------------------+ +``` + + +# 4. Architecture +``` ++-----------------------------------------------------------------------------+ +| | +| Upper layer | +| | ++-----------------------------------------------------------------------------+ + | ^ + | | + | | + | | + Radio Ops Event Notification +----------------------------+ + | | IRQ Handler | | + | | +----------------------| Bottom-Half processor | + | | | | | + | | | +----------------------------+ + | | | ^ + | | | | + v | v IRQ ++-----------------------------+ | +| 802.15.4 Radio HAL | HW independent | +|-----------------------------|-------------------------------|---------------- +| | HW dependent | +| | | +| Device Driver | | +| |-------------------------------+ +| | ++-----------------------------+ +``` + +As shown in the above figure, the IEEE802.15.4 Radio HAL is a central component +that provides any upper layer a technology-dependent and unified access to the +device driver, by implementing the Radio HAL API. + +The HAL uses an Event Notification mechanism to inform the upper layer about +radio events (`IEEE802154_RADIO_CONFIRM_TX_DONE`, +`IEEE802154_RADIO_INDICATION_RX_DONE`, `IEEE802154_RADIO_CONFIRM_CCA`, etc). +This mechanism can either run in interrupt context or thread context, if the +device is not able to resolve events during ISR (e.g SPI devices). For the +latter, the radio HAL requires an upper layer to take over the Bottom-Half +processing which means, offloading the ISR to thread context. + +## 4.1 Upper Layer +Upper layers are users that requires direct access to the primitive operations +of a radio and its hardware acceleration features, if available. + +Examples for Upper Layers: +- A MAC layer can use the Radio HAL to implement parts of a PHY layer (data + communication, set/get parameters, perform CCA, etc.) . +- A network stack that requires low level access to the radio (OpenWSN, + OpenThread) can use the Radio HAL to implement the integration code. +- A developer who implements a simple application to send and receive data + between 802.15.4 radios (relying on hardware accelerated MAC features, if +available). + +The upper layer accesses the radio using the Radio HAL API. Events that are +triggered by the device (packet received, transmission finished) +are indicated by the event notification mechanism, described below. + +## 4.2 Bottom-Half Processor +The Bottom-Half (BH) processor is a component to offload the IRQ processing to +thread context. The component is required for radios that cannot resolve radio +events during ISR (SPI devices). + +The component registers an IRQ handler during initialization +which is executed when the device triggers and interrupt. This handler uses +internal mechanisms to call the Radio API IRQ handler from a safe context. +The IRQ handler may run on a higher priority context. Although the API +implementation SHOULD NOT implement reentrancy, it MUST handle concurrent calls +between the IRQ handler and API functions. + +The BH processor can be implemented dependent or independent of the network +stack. A network stack independent solution is preferred in order to reuse +functionality between different network stacks. + +The term "Bottom Half" was originally introduced by the Linux kernel. See +[Top and Bottom Halves](http://www.makelinux.net/ldd3/chp-10-sect-4.shtml) + +## 4.3 Radio HAL + +The Radio HAL is defined by the Radio HAL API which consists of three main +components: Radio Operations, Event Notification, and the Device Specific +IEEE802.15.4 HAL implementation. + +The Radio HAL Implementation provides a set of functionalities to control the +operation of the device, to process the IRQ handler and to receive event +notifications from the device. + +### 4.3.1 Radio Operations +The Radio Operations (`radio_ops`) interface exposes operations that are common +to control 802.15.4 devices and to request their hardware capabilities +information (i.e., MAC acceleration hardware) + +The interface defines a collection of mandatory functions: +- Set the transceiver state +- Set the PHY configuration (channel, tx power, etc) +- Load and transmit a frame +- Get device capabilities + +The interface provides a collection of optional functions that may or may not +be implemented, dependent on the hardware acceleration features of a device. +These functions include: +- Read the number of retransmission attempts. +- Set address filter addresses (extended, short, PAN ID). +- Set CSMA-CA backoff parameters. + +All `radio_ops` functions are non-blocking and some of them follow a +Request/Confirm scheme which means, the end of a request is indicated by a +confirmation function. The confirmation function may be polled. In such case, +the function uses standard error codes to indicate the status (success, error +or request has not finished). + +The full list of functions can be found in the Interface Definition section. + +### 4.3.2 Event Notification + +The Radio HAL provides an Event Notification mechanism to inform the upper +layer about an event (a packet was received, a transmission finished, etc). + +The upper layer can subscribe to these events to perform different actions. As +an example, a MAC layer would subscribe to the RX done event to allocate the +received packet. The TX done event is commonly used to release resources or +update statistics. + +As described before, the Event Notification mechanism can be called during ISR +or thread context (BH processor). Thus, this must be taken into consideration +for the implementation of the Event Notification callback (e.g the +`IEEE802154_RADIO_INDICATION_RX_DONE` event might post an event to an event +queue in order to fetch the packet). + +The full list of events and implications are defined in the Interface +Definition section. + +### 4.3.3 Device Driver + +The Device Driver implements the hardware-dependent part of the IEEE802.15.4 +Radio HAL by wrapping the `radio_ops` interface around the device specific +code, which grants access to all device operations. + +The Device Driver additionally provides a mechanism to expose the ISR of +radios that require the Bottom-Half processor. + +The function set of the Device Driver can include device specific features that +are not exposed by the Radio HAL API (e.g., Smart Listening with AT86RF2xx +radios). + +# 5 Implementation Details +## 5.1 Initialization of device drivers +In order to implement the 802.15.4 abstraction on top of a device driver, it +is required an initialization procedure that performs the following tasks: + +1. Set up IRQ callback +2. Reset the device +3. Confirm connectivity and perform self tests +4. Bring device into a low power state +5. Set up IRQs and disable them to use less power. + +The `radio_ops` interface provides an "on" function that turns on the device +and enables interrupts. It is expected that the upper layer will call this +function to enable the radio device, if the initialization procedure succeeded. + +## 5.2 Abstract State Machine + +The Radio HAL defines an Abstract State Machine. In order to ensure a uniform +behavior in all devices, all Radio HAL device drivers should be implemented +against this. Transient states (e.g pending requests) are not included in this +diagram. However, the upper layer MUST NOT trigger another request if there is +already a pending one. + +``` + +---------+ + | | + | OFF |<------ Any state + | | OFF + +---------+ + | + ON | + | + v + +---------+ + +--------| |--------+ + | | TRX_OFF |<----+ | + | +----->| | | | + | | +---------+ | | + SET_TRX_STATE | | | | SET_TRX_STATE + | | | | + v | | v + +---------+ +---------+ + | |------------->| | + | IDLE | | RX | + | |<-------------| | + +---------+ +---------+ + SET_TRX_STATE +``` + + +### 5.2.1 State specification +A specification for each state is described in the following items. + +- OFF: If radio initialization succeeds, the Abstract State Machine begins in + `OFF` state. During this state the device consumes the least power and all + hardware components (transceiver, crypto acceleration) are disabled. + +- TRX OFF: During this state the device is on but the transceiver is off (PLL + not locked). The power consumption is higher than the `OFF` state but the + device is able to operate the transceiver and other hardware components (e.g + crypto accelerator). + +- IDLE: This state is device specific and represents a state where the device + is ready to transmit, fetch a received frame, change the Physical Information + Base or perform Stand-Alone CCA. + +- RX ON: During RX ON state the radio is able to detect Start Frame Delimiter + (SFD) and thus, receive frames. + +## 5.3 Prepare and Transmit + +The Radio HAL doesn't define an explicit send function. Unlike the `netdev` +approach, it bases on separation of the send procedure into frame loading +and triggering the transmissions start. + +Although it is possible to load and start using the `netdev` interface with the +`NETOPT_PRELOADING` option, the Radio HAL approach is easier and more +lightweight to implement since it doesn't require internal state variables. + +Separated load and start is required for MAC layers +with timing constraints (E.g. TSCH mode of 802.15.4 MAC). + +In the rare case a radio device doesn't support loading the frame buffer without +triggering a transmission, it is still possible to implement the load and +transmit pattern using an internal buffer. However, this case is very unlikely +because such a device could not meet 802.15.4 timing requirements. + +It is expected that a higher layer "send" function is defined for convenience +which handles both loading and frame sending. Typically, this would be a +802.15.4 MAC implementation which preloads the devices buffer once accessible, +and triggers a send operation at a scheduled time slot. Alternatively, this +could be a helper function for non MAC users. + +## 5.4 TX and RX Information + +Sometimes upper layers require information associated to the transmission +or reception of a packet. The TSCH mode of the 802.15.4 MAC may require +LQI and RSSI data from a received packet to schedule new cells. +The 802.15.4 MAC may also require the information associated to the +frame retransmission component (frame pending bit, number of retransmission, +status) if the hardware provides support for hardware retransmissions. + +The 802.15.4 Radio HAL API provides functions to retrieve this data. +Note that retrieving this information is optional in cases where the RX +information is not needed or when the device doesn't support frame +retransmissions. + +# 6 802.15.4 Radio HAL Interface definition + +## 6.1 Radio Operations +The Radio Ops interface is implemented using function pointers. + +These functions should be implemented with device specific validations only. +Parameters that are not device specific (valid channel settings, address +lengths, etc) should be checked by higher layers in order to avoids redundancy. + +Note that the Radio Ops interface only implements a few get functions. The +reason behind this is the fact most members of the PHY and MAC Information +Base (such as address, TX power, channel number) are already stored in RAM. + +The full documentation of Radio Ops functions is available in `net/ieee802154/radio.h`. + +### 6.1.1 Summary of Radio Ops +The following table summarizes the Radio Ops and the state in which the Ops can +be invoked (marked with `X`). + +``` +- Send/Receive + +---------------------------------+ + |`OFF` | `TRX_OFF` | `IDLE` | `RX`| ++------------------------------------------------------------+ +| `write` | _ | X | X | _ | +| `len` | _ | X | X | _ | +| `read` | _ | X | X | _ | +| `*_op(*_TRANSMIT)` | _ | _ | X | _ | ++------------------------------------------------------------+ + +- CCA related + +---------------------------------+ + |`OFF` | `TRX_OFF` | `IDLE` | `RX`| ++------------------------------------------------------------+ +| `set_cca_threshold` | [ ] | [X] | [X] | [X]| +| `set_cca_mode` | [ ] | [X] | [X] | [X]| +| `*_op(*_CCA)` | [ ] | [ ] | [X] | [ ]| ++------------------------------------------------------------+ + +- PIB/MIB related + +---------------------------------+ + |`OFF` | `TRX_OFF` | `IDLE` | `RX`| ++------------------------------------------------------------+ +| `config_phy` | [ ] | [X] | [X] | [ ]| +| `set_frame_retrans` | [ ] | [X] | [X] | [X]| +| `set_csma_params` | [ ] | [X] | [X] | [X]| +| `set_frame_filter_mode` | [ ] | [X] | [X] | [X]| +| `config_addr_filter` | [ ] | [X] | [X] | [X]| +| `config_src_addr_match` | [ ] | [X] | [X] | [X]| ++------------------------------------------------------------+ + +- Device State Management + +---------------------------------+ + |`OFF` | `TRX_OFF` | `IDLE` | `RX`| ++------------------------------------------------------------+ +| `*_op(*_SET_{IDLE,RX})` | [ ] | [X] | [X] | [X]| +| `*_on` | [X] | [ ] | [ ] | [ ]| +| `off` | [X] | [X] | [X] | [X]| ++------------------------------------------------------------+ + +``` + +## 6.2 Event Notification + +The Event Notification mechanism is implemented with a function callback. +The callback function is supposed to be implemented by the upper layer. + +The events follow the naming convention of the IEEE Services Access Points (SAP). +This means, events that are a triggered as a result of a Request are prefixed with +"CONFIRM". All the other events are prefixed with "INDICATION". + +The callback signature, the events and their expected behavior are documented +in `net/ieee802154/radio.h`. + +MAC specific events such as TX done with frame pending, CSMA-CA medium +busy or exceeded number of retransmissions are not explicitly reported because +they can be extracted after the TX done event using the Radio HAL API. + +Some radio devices support events such as ACK Timeout, CSMA Backoff timeout or +PLL lock. Such events are out of the scope of this document. However, these +may be added and implemented at any time if required by upper layers. + +The following table summarizes the events, whether an event is mandatory, the +states which may generate the event notification and special handling. Although +mandatory events may be ignored or disabled by the upper layer, all Radio HAL +implementations must generate at least the mandatory events. The presence of +optional events MUST be indicated using Radio Caps (see Section 6.3). + +``` + Event | Mandatory | Trig. state | ++-------------------------------------------+-----------+-------------+ +| IEEE802154_RADIO_INDICATION_RX_START | [ ] | RX | +| IEEE802154_RADIO_INDICATION_RX_DONE [1] | [X] | RX | +| IEEE802154_RADIO_INDICATION_CRC_ERROR [2] | [ ] | RX | +| IEEE802154_RADIO_INDICATION_TX_START | [ ] | IDLE | +| IEEE802154_RADIO_CONFIRM_TX_DONE [3] | [X] | IDLE | +| IEEE802154_RADIO_CONFIRM_CCA [4] | [ ] | IDLE | ++-------------------------------------------+-----------+-------------+ + +[1]: The upper layer MUST set the Abstract State Machine state to `IDLE` or +`TRX_OFF` before calling `read` or `len`. +[2]: Should be treated as the `IEEE802154_RADIO_INDICATION_RX_DONE` event. Use +the `read` function to drop the frame. +[3]: On occurrence, the upper layer MUST call +`confirm_op(IEEE802154_RADIO_CONFIRM_TX_DONE)` to finish the transmission. The +Abstract State Machine stays in IDLE. +[4]: On occurrence, the upper layer MUST call +`confirm_op(IEEE802154_RADIO_CONFIRM_CCA` to finish the CCA procedure and fetch +the channel state. The Abstract State Machine stays in IDLE, ready to transmit +the next frame. +``` + +## 6.3 Radio Caps +The Radio HAL implementation exposes a set of capabilities (Caps) in order to +indicate the presence of a specific hardware feature. The Caps are encoded +using bit flags. The Radio HAL header defines a set of `ieee802154_radio_has_*` +functions that check whether the radio supports a capability. +See `net/ieee802154/radio.h` for a full list of capabilities. + +A Radio HAL implementation MUST indicate all capabilities supported by the +device and driver implementation. + +# 7 Future Proof Considerations + +The Radio HAL is designed to be agnostic to different versions of the +IEEE802.15.4 standard. A single radio device typically implements hardware +acceleration for only one standard, whereas different standards are not always +compatible. As an example, IEEE802.15.4--2006 devices do not support Enhanced +Acknowledgement packets which are required by the TSCH layer of +IEEE802.15.4--2012. For compatibility, a software MAC can provide such +functionality. The Radio HAL adapts considerations to enable different versions +of the IEEE802.15.4 MAC on top of the abstraction layer. + +### Transmission Modes + +The Radio HAL interface defines three transmission modes to allow sending +frames using (i) CSMA-CA, (ii) CCA, or (iii) directly without any contention +mechanism. +In that way, a MAC layer can easily send data frames benefiting from hardware +accelerated CSMA-CA or Beacons that have to meet timing constraints and thus, +require a direct send function. + +A HAL implementation can provide several transmit modes, but it MUST implement +at least one. It is recommended that the implementation provides modes that +exploit the internal devices capabilities. Implementing a direct mode is +desired for software MAC layers on top. + +### PHY Definition + +PHY definitions are specific to a IEEE802.15.4 version. As an example, older +standards define PHY channels with a `channel number`. In modern standards, +channels are represented using a (`channel number`, `channel page`, `channel +modulation`) tuple. The `config_phy` function is called with a pointer to a +`ieee802154_phy_conf_t` structure which describes the PHY configuration. In +order to support newer versions, this structure can be extended without changing +the Radio HAL API. + +### Future Radio Operations + +The Radio Operations interface `radio_ops` can be extended to support +functionalities of newer standards. As an example, most SubGHz radios support a +Listen Before Talk feature that can be implemented as a new and optional +operation. + +# 8 Acknowledgements + +Thanks to Peter Kietzmann, Benjamin Valentin, Marian Buschsieweke, Leandro +Lanzieri and Martine Lenders for their reviews, comments and suggestions. + +# 9 References + +- [Uniform Network Stack Integration](https://github.com/RIOT-OS/RIOT/issues/13771) +- [Top and Bottom Halves](http://www.makelinux.net/ldd3/chp-10-sect-4.shtml) + +# 10 Revision + +- Rev0: initial document + +# 11 Contact + +The author of this memo can be contacted via email at jose.alamos@haw-hamburg.de diff --git a/drivers/Kconfig b/drivers/Kconfig index c52180acb90e..a2f3ee786768 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -6,162 +6,56 @@ menu "Drivers" -rsource "saul/Kconfig" - menu "Actuator Device Drivers" -rsource "aip31068/Kconfig" -rsource "apa102/Kconfig" -rsource "dac_dds/Kconfig" rsource "dfplayer/Kconfig" -rsource "dynamixel/Kconfig" -rsource "feetech/Kconfig" -rsource "grove_ledbar/Kconfig" rsource "motor_driver/Kconfig" -rsource "mcp47xx/Kconfig" -rsource "my9221/Kconfig" -rsource "servo/Kconfig" -rsource "ws281x/Kconfig" endmenu # Actuator Device Drivers menu "Display Device Drivers" -rsource "disp_dev/Kconfig" -rsource "dsp0401/Kconfig" -rsource "hd44780/Kconfig" rsource "ili9341/Kconfig" rsource "lcd/Kconfig" rsource "st77xx/Kconfig" -rsource "touch_dev/Kconfig" rsource "touch_dev_gestures/Kconfig" endmenu # Display Device Drivers menu "Miscellaneous Device Drivers" rsource "at/Kconfig" -rsource "at24mac/Kconfig" -rsource "bq2429x/Kconfig" -rsource "cst816s/Kconfig" -rsource "ds1307/Kconfig" -rsource "ds3231/Kconfig" -rsource "ds3234/Kconfig" -rsource "edbg_eui/Kconfig" -rsource "io1_xplained/Kconfig" -rsource "pcf857x/Kconfig" -rsource "tps6274x/Kconfig" -rsource "uart_half_duplex/Kconfig" -rsource "usbdev_mock/Kconfig" endmenu # Miscellaneous Device Drivers rsource "Kconfig.net" menu "Peripherals drivers" rsource "periph_common/Kconfig" -rsource "rtt_rtc/Kconfig" -rsource "soft_spi/Kconfig" -rsource "soft_uart/Kconfig" -rsource "usbdev_synopsys_dwc2/Kconfig" endmenu # Peripherals drivers menu "Sensor Device Drivers" -rsource "ad7746/Kconfig" -rsource "adcxx1c/Kconfig" rsource "ads101x/Kconfig" -rsource "adt7310/Kconfig" -rsource "adxl345/Kconfig" -rsource "apds99xx/Kconfig" -rsource "at30tse75x/Kconfig" -rsource "bh1750fvi/Kconfig" -rsource "bh1900nux/Kconfig" -rsource "bme680/Kconfig" -rsource "bmp180/Kconfig" rsource "bmx055/Kconfig" -rsource "bmx280/Kconfig" -rsource "ccs811/Kconfig" -rsource "cst816s/Kconfig" -rsource "dcf77/Kconfig" -rsource "dht/Kconfig" -rsource "ds18/Kconfig" -rsource "ds75lx/Kconfig" -rsource "ft5x06/Kconfig" rsource "fxos8700/Kconfig" rsource "gp2y10xx/Kconfig" rsource "hdc1000/Kconfig" -rsource "hih6130/Kconfig" -rsource "hmc5883l/Kconfig" rsource "hm330x/Kconfig" rsource "hsc/Kconfig" -rsource "hts221/Kconfig" -rsource "ina2xx/Kconfig" -rsource "ina3221/Kconfig" rsource "isl29020/Kconfig" -rsource "isl29125/Kconfig" -rsource "itg320x/Kconfig" -rsource "jc42/Kconfig" rsource "l3g4200d/Kconfig" rsource "l3gxxxx/Kconfig" -rsource "lc709203f/Kconfig" -rsource "lis2dh12/Kconfig" -rsource "lis3dh/Kconfig" -rsource "lis3mdl/Kconfig" rsource "lm75/Kconfig" -rsource "lpd8808/Kconfig" rsource "lpsxxx/Kconfig" -rsource "lsm6dsxx/Kconfig" -rsource "lsm303dlhc/Kconfig" -rsource "lsm303agr/Kconfig" -rsource "ltc4150/Kconfig" rsource "mag3110/Kconfig" rsource "matrix_keypad/Kconfig" -rsource "mfrc522/Kconfig" -rsource "mhz19/Kconfig" rsource "mma8x5x/Kconfig" -rsource "mma7660/Kconfig" -rsource "mpl3115a2/Kconfig" -rsource "mpu9x50/Kconfig" -rsource "mq3/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 "scd30/Kconfig" -rsource "sdp3x/Kconfig" -rsource "sgp30/Kconfig" -rsource "sds011/Kconfig" rsource "seesaw_soil/Kconfig" -rsource "sht1x/Kconfig" rsource "sht2x/Kconfig" -rsource "sht3x/Kconfig" -rsource "shtcx/Kconfig" -rsource "si70xx/Kconfig" -rsource "si114x/Kconfig" -rsource "si1133/Kconfig" rsource "sm_pwm_01c/Kconfig" rsource "sps30/Kconfig" -rsource "srf02/Kconfig" -rsource "srf04/Kconfig" -rsource "srf08/Kconfig" -rsource "stmpe811/Kconfig" rsource "tcs37727/Kconfig" rsource "tmp00x/Kconfig" -rsource "tsl2561/Kconfig" -rsource "tsl4531x/Kconfig" -rsource "vcnl40x0/Kconfig" -rsource "veml6070/Kconfig" rsource "vl6180x/Kconfig" endmenu # Sensor Device Drivers menu "Storage Device Drivers" -rsource "at24cxxx/Kconfig" -rsource "at25xxx/Kconfig" -rsource "mtd/Kconfig" -rsource "mtd_mapper/Kconfig" rsource "mtd_sdcard/Kconfig" -rsource "nvram/Kconfig" -rsource "nvram_spi/Kconfig" -rsource "sdcard_spi/Kconfig" -rsource "sdmmc/Kconfig" endmenu # Storage Device Drivers endmenu # Drivers diff --git a/drivers/Kconfig.net b/drivers/Kconfig.net index ff194b8fb3d2..5e1af3d239f8 100644 --- a/drivers/Kconfig.net +++ b/drivers/Kconfig.net @@ -8,36 +8,12 @@ menu "Network Device Drivers" rsource "netdev/Kconfig" -rsource "at86rf2xx/Kconfig" rsource "at86rf215/Kconfig" -rsource "ata8520e/Kconfig" -rsource "can_trx/Kconfig" rsource "cc110x/Kconfig" -rsource "cc2420/Kconfig" -rsource "$(RIOTCPU)/cc2538/radio/Kconfig" -rsource "$(RIOTCPU)/esp32/esp-eth/Kconfig" rsource "$(RIOTCPU)/nrf5x_common/radio/Kconfig.nrf5x" rsource "dose/Kconfig" -rsource "enc28j60/Kconfig" -rsource "encx24j600/Kconfig" -rsource "ethos/Kconfig" -rsource "kw2xrf/Kconfig" -rsource "kw41zrf/Kconfig" -rsource "mcp2515/Kconfig" rsource "mrf24j40/Kconfig" -rsource "ncv7356/Kconfig" -rsource "netdev_ieee802154_submac/Kconfig" -rsource "nrf24l01p/Kconfig" rsource "pn532/Kconfig" rsource "rn2xx3/Kconfig" -rsource "$(RIOTCPU)/sam0_common/sam0_eth/Kconfig" rsource "slipdev/Kconfig" -rsource "$(RIOTCPU)/native/socket_zep/Kconfig" -rsource "$(RIOTCPU)/stm32/periph/Kconfig.eth" -rsource "sx126x/Kconfig" -rsource "sx127x/Kconfig" -rsource "sx1280/Kconfig" -rsource "$(RIOTPKG)/tinyusb/netdev/Kconfig" -rsource "tja1042/Kconfig" -rsource "w5100/Kconfig" endmenu # Network Device Drivers diff --git a/drivers/ad7746/Kconfig b/drivers/ad7746/Kconfig deleted file mode 100644 index 9a04e0605893..000000000000 --- a/drivers/ad7746/Kconfig +++ /dev/null @@ -1,22 +0,0 @@ -# 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 - select MODULE_ZTIMER - select MODULE_ZTIMER_MSEC - help - AD7746 Capacitance-to-digital converter with temperature sensor driver. - -config HAVE_AD7746 - bool - select MODULE_AD7746 if MODULE_SAUL_DEFAULT - help - Indicates that an AD7746 capacitance-to-digital converter is present. diff --git a/drivers/adcxx1c/Kconfig b/drivers/adcxx1c/Kconfig deleted file mode 100644 index deea57db747c..000000000000 --- a/drivers/adcxx1c/Kconfig +++ /dev/null @@ -1,61 +0,0 @@ -# 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_ADCXX1C - bool - prompt "ADCXX1C Analog-to-Digital converter" if !(SAUL_DEFAULT && HAVE_ADCXX1C) - default SAUL_DEFAULT && HAVE_ADCXX1C - 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 - -choice ADCXX1C_VARIANT - bool "Variants" - depends on MODULE_ADCXX1C - default MODULE_ADC081C if HAVE_ADC081C - default MODULE_ADC101C if HAVE_ADC101C - default MODULE_ADC121C if HAVE_ADC121C - help - This driver works with adc081c, adc101c and adc121c models. Select one. - -config MODULE_ADC081C - bool "ADC081C" - -config MODULE_ADC101C - bool "ADC101C" - -config MODULE_ADC121C - bool "ADC121C" - -endchoice - -config HAVE_ADCXX1C - bool - help - Indicates that ADCXX1C Analog-to-Digital is present. - -config HAVE_ADC081C - bool - select HAVE_ADCXX1C - help - Indicates that ADC081C Analog-to-Digital is present. - -config HAVE_ADC101C - bool - select HAVE_ADCXX1C - help - Indicates that ADC101C Analog-to-Digital is present. - -config HAVE_ADC121C - bool - select HAVE_ADCXX1C - help - Indicates that ADC121C Analog-to-Digital is present. diff --git a/drivers/ads101x/Kconfig b/drivers/ads101x/Kconfig index eb5a80192edb..8b0772b139b2 100644 --- a/drivers/ads101x/Kconfig +++ b/drivers/ads101x/Kconfig @@ -5,28 +5,8 @@ # 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_ZTIMER - select MODULE_ZTIMER_MSEC - help - This driver works with the ads1013, ads1014, ads1015, ads1113, ads1114 - and ads1115 models. - -menuconfig KCONFIG_USEMODULE_ADS101X - bool "Configure ADS101X driver" +menu "ADS101X driver" depends on USEMODULE_ADS101X - help - Configure the ADS101X driver using Kconfig. - -if KCONFIG_USEMODULE_ADS101X config ADS101X_I2C_ADDRESS hex "Default I2C address" @@ -36,10 +16,5 @@ config ADS101X_I2C_ADDRESS ADS101X allows for upto 4 devices on Single Bus. The value depends on the state of ADDR Pin. Default value (0x48) corresponds to ADDR pin tied to GND. For more information refer I2C Address Selection in Datasheet. -endif # KCONFIG_USEMODULE_ADS101X -config HAVE_ADS101X - bool - select MODULE_ADS101X if MODULE_SAUL_DEFAULT - help - Indicates that an ADS101X Analog-to-Digital converter is present. +endmenu # ADS101X driver diff --git a/drivers/adt7310/Kconfig b/drivers/adt7310/Kconfig deleted file mode 100644 index 6f0c3b9685cb..000000000000 --- a/drivers/adt7310/Kconfig +++ /dev/null @@ -1,19 +0,0 @@ -# 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. - -config HAVE_ADT7310 - bool - help - Indicates that the Analog Devices ADT7310 temperature sensor is present. diff --git a/drivers/adxl345/Kconfig b/drivers/adxl345/Kconfig deleted file mode 100644 index 172b32c7b4bc..000000000000 --- a/drivers/adxl345/Kconfig +++ /dev/null @@ -1,18 +0,0 @@ -# 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 - -config HAVE_ADXL345 - bool - select MODULE_ADXL345 if MODULE_SAUL_DEFAULT - help - Indicates that a adxl345 sensor is present. diff --git a/drivers/aip31068/Kconfig b/drivers/aip31068/Kconfig deleted file mode 100644 index 0b8df4279350..000000000000 --- a/drivers/aip31068/Kconfig +++ /dev/null @@ -1,18 +0,0 @@ -# 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 - -config HAVE_AIP31068 - bool - help - Indicates that the AIP31068 I2C LCD controller is present. diff --git a/drivers/apa102/Kconfig b/drivers/apa102/Kconfig deleted file mode 100644 index d0093e140843..000000000000 --- a/drivers/apa102/Kconfig +++ /dev/null @@ -1,17 +0,0 @@ -# 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 - -config HAVE_APA102 - bool - help - Indicates that the APA102 RGB LED is present. diff --git a/drivers/apds99xx/Kconfig b/drivers/apds99xx/Kconfig deleted file mode 100644 index cbe46c55604e..000000000000 --- a/drivers/apds99xx/Kconfig +++ /dev/null @@ -1,99 +0,0 @@ -# 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_APDS99XX - bool - prompt "APDS99xx Broadcom Sensors" if !(MODULE_SAUL_DEFAULT && HAVE_APDS99XX) - default MODULE_SAUL_DEFAULT && HAVE_APDS99XX - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_PERIPH_I2C - 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. - -if MODULE_APDS99XX - -choice APDS99XX_VARIANT - bool "Variants" - default MODULE_APDS9900 if HAVE_APDS9900 - default MODULE_APDS9901 if HAVE_APDS9901 - default MODULE_APDS9930 if HAVE_APDS9930 - default MODULE_APDS9950 if HAVE_APDS9950 - default MODULE_APDS9960 if HAVE_APDS9960 - help - The driver can be used with following Broadcom sensors: APDS9900, - APDS9901, APDS9930, APDS9950, APDS9960. Select one model. - -config MODULE_APDS9900 - bool "APDS9900" - -config MODULE_APDS9901 - bool "APDS9901" - -config MODULE_APDS9930 - bool "APDS9930" - -config MODULE_APDS9950 - bool "APDS9950" - -config MODULE_APDS9960 - bool "APDS9960" - -endchoice - -config MODULE_APDS99XX_FULL - bool "APDS99XX Full functionalities" - depends on HAS_PERIPH_GPIO_IRQ - select MODULE_PERIPH_GPIO_IRQ - -endif # MODULE_APDS99XX - -config HAVE_APDS99XX - bool - help - Indicates that a apds99xx sensor is present. - -config HAVE_APDS9900 - bool - select HAVE_APDS99XX - help - Indicates that a apds9900 sensor is present. - -config HAVE_APDS9901 - bool - select HAVE_APDS99XX - help - Indicates that a apds9901 sensor is present. - -config HAVE_APDS9930 - bool - select HAVE_APDS99XX - help - Indicates that a apds9930 sensor is present. - -config HAVE_APDS9950 - bool - select HAVE_APDS99XX - help - Indicates that a apds9950 sensor is present. - -config HAVE_APDS9960 - bool - select HAVE_APDS99XX - help - Indicates that a apds9960 sensor is present. diff --git a/drivers/at/Kconfig b/drivers/at/Kconfig index b06e3d5ebb18..10e89cf52c22 100644 --- a/drivers/at/Kconfig +++ b/drivers/at/Kconfig @@ -5,57 +5,8 @@ # 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_LOWEST - bool "Lowest" - select MODULE_EVENT_THREAD_LOWEST - -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" +menu "AT driver" depends on USEMODULE_AT - help - Configure the AT driver using Kconfig. - -if KCONFIG_USEMODULE_AT choice bool "End of line character" @@ -105,4 +56,4 @@ config AT_BUF_SIZE_EXP this option represents the exponent of 2^n, which will be used as the size of the buffer. -endif # KCONFIG_USEMODULE_AT +endmenu # AT driver diff --git a/drivers/at24cxxx/Kconfig b/drivers/at24cxxx/Kconfig deleted file mode 100644 index 9a7479bd2883..000000000000 --- a/drivers/at24cxxx/Kconfig +++ /dev/null @@ -1,67 +0,0 @@ -# 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 diff --git a/drivers/at24mac/Kconfig b/drivers/at24mac/Kconfig deleted file mode 100644 index 407fe24fc4f4..000000000000 --- a/drivers/at24mac/Kconfig +++ /dev/null @@ -1,22 +0,0 @@ -# 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. -# - -comment "AT24MAC unique ID chip enabled as default EUI-48/64 provider" - depends on MODULE_EUI_PROVIDER && HAVE_AT24MAC && MODULE_AT24MAC - -config MODULE_AT24MAC - bool - prompt "AT24MAC unique ID chip" if !((MODULE_EUI_PROVIDER || MODULE_MTD) && HAVE_AT24MAC) - default ((MODULE_EUI_PROVIDER || MODULE_MTD) && HAVE_AT24MAC) - select MODULE_AT24CXXX - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - -config HAVE_AT24MAC - bool - help - Indicates that an AT24MAC unique ID chip is present. diff --git a/drivers/at25xxx/Kconfig b/drivers/at25xxx/Kconfig deleted file mode 100644 index 008a973078bf..000000000000 --- a/drivers/at25xxx/Kconfig +++ /dev/null @@ -1,21 +0,0 @@ -# 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. - -config HAVE_AT25XXX - bool - help - Indicates that the AT25xxx SPI-EEPROM is present. diff --git a/drivers/at30tse75x/Kconfig b/drivers/at30tse75x/Kconfig deleted file mode 100644 index 20d7b795c6bd..000000000000 --- a/drivers/at30tse75x/Kconfig +++ /dev/null @@ -1,22 +0,0 @@ -# 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_ZTIMER - select ZTIMER_USEC - help - AT30TSE75x temperature sensor with serial EEPROM. - -config HAVE_AT30TSE75X - bool - select MODULE_AT30TSE75X if MODULE_SAUL_DEFAULT - help - Indicates that a AT30TSE75x sensor is present on the board. diff --git a/drivers/at86rf215/Kconfig b/drivers/at86rf215/Kconfig index db97110b1e5d..d941fc582f6f 100644 --- a/drivers/at86rf215/Kconfig +++ b/drivers/at86rf215/Kconfig @@ -6,29 +6,12 @@ # directory for more details. # -menuconfig MODULE_AT86RF215 - bool - prompt "AT86RF215 radio" if !(HAVE_AT86RF215 && MODULE_NETDEV_DEFAULT) - default (HAVE_AT86RF215 && MODULE_NETDEV_DEFAULT) - depends on TEST_KCONFIG - depends on HAS_PERIPH_GPIO - depends on HAS_PERIPH_GPIO_IRQ - depends on HAS_PERIPH_SPI - select MODULE_NETDEV - select MODULE_NETDEV_IEEE802154 - select MODULE_NETDEV_LEGACY_API - select MODULE_PERIPH_GPIO - select MODULE_PERIPH_GPIO_IRQ - select MODULE_PERIPH_SPI - select MODULE_XTIMER - -if MODULE_AT86RF215 +if USEMODULE_AT86RF215 menu "Modulations" menuconfig AT86RF215_OQPSK bool "O-QPSK support" - select MODULE_NETDEV_IEEE802154_OQPSK default y if AT86RF215_OQPSK @@ -58,7 +41,6 @@ endif # AT86RF215_OQPSK menuconfig AT86RF215_MR_OQPSK bool "MR-O-QPSK support" - select MODULE_NETDEV_IEEE802154_MR_OQPSK default y if AT86RF215_MR_OQPSK @@ -92,7 +74,6 @@ endif # AT86RF215_MR_OQPSK menuconfig AT86RF215_MR_OFDM bool "MR-OFDM support" - select MODULE_NETDEV_IEEE802154_MR_OFDM default y if AT86RF215_MR_OFDM @@ -149,7 +130,6 @@ endif # AT86RF215_MR_OFDM menuconfig AT86RF215_MR_FSK bool "MR-FSK support" - select MODULE_NETDEV_IEEE802154_MR_FSK default y if AT86RF215_MR_FSK @@ -268,21 +248,11 @@ endchoice endmenu # Modulations -config MODULE_AUTO_INIT_AT86RF215 - bool "Auto-initialize the driver on startup" - depends on MODULE_AUTO_INIT - default y - -config MODULE_AT86RF215_BATMON - bool "Enable battery monitor" - select MODULE_SYS_BUS - select MODULE_SYS_BUS_POWER - config AT86RF215_BATMON_THRESHOLD int "Treshold voltage (in mV) of the battery monitor" range 1700 3675 default 1800 - depends on MODULE_AT86RF215_BATMON + depends on USEMODULE_AT86RF215_BATMON help If the supply voltage falls below the configured threshold a SYS_BUS_POWER_EVENT_LOW_VOLTAGE event is generated on the @@ -321,30 +291,9 @@ config AT86RF215_RPC_EN help Reduce Power Consumption in RX IDLE by duty-cycling the RF circuitry. -config MODULE_AT86RF215_TIMESTAMP - bool "Enable timestamp frame information" - -config MODULE_AT86RF215_BLOCKING_SEND - bool "Block while sending" - -config MODULE_AT86RF215_SUBGHZ - bool - prompt "Sub-GHz support" if !HAVE_AT86RF215M - default y - help - Sub-GHz support. - -config MODULE_AT86RF215_24GHZ - bool - prompt "2.4 GHz support" - default y - help - 2.4 GHz support. - config AT86RF215_MULTIMODE bool "Allow multiple physical layer modes" default y - select MODULE_NETDEV_IEEE802154_MULTIMODE config AT86RF215_RESET_PULSE_WIDTH_US int "Width of the reset pulse (µs)" @@ -357,21 +306,4 @@ config AT86RF215_RESET_PULSE_WIDTH_US If unsure, leave this at the default value of 16 µs. -endif # MODULE_AT86RF215 - -config HAVE_AT86RF215 - bool - help - Indicates that a AT86RF215 radio is present. - -config HAVE_AT86RF215IQ - bool - select HAVE_AT86RF215 - help - Indicates that a AT86RF215IQ radio is present. - -config HAVE_AT86RF215M - bool - select HAVE_AT86RF215 - help - Indicates that a AT86RF215IM radio is present. +endif # USEMODULE_AT86RF215 diff --git a/drivers/at86rf2xx/Kconfig b/drivers/at86rf2xx/Kconfig deleted file mode 100644 index a0b3772cf9ae..000000000000 --- a/drivers/at86rf2xx/Kconfig +++ /dev/null @@ -1,131 +0,0 @@ -# Copyright (c) 2022 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_AT86RF2XX - bool - prompt "AT86RF2xx series radios" if !(MODULE_NETDEV_DEFAULT && HAVE_AT86RF2XX) - default (MODULE_NETDEV_DEFAULT && HAVE_AT86RF2XX) - depends on TEST_KCONFIG - select MODULE_IEEE802154 - select MODULE_NETDEV - select MODULE_NETDEV_IEEE802154 - select MODULE_NETDEV_LEGACY_API - select MODULE_ZTIMER - select MODULE_ZTIMER_USEC - -if MODULE_AT86RF2XX - -choice AT86RF2XX_VARIANT - bool "Variants" - default MODULE_AT86RF212B if HAVE_AT86RF212B - default MODULE_AT86RF231 if HAVE_AT86RF231 - default MODULE_AT86RF232 if HAVE_AT86RF232 - default MODULE_AT86RF233 if HAVE_AT86RF233 - default MODULE_AT86RFA1 if HAVE_AT86RFA1 - default MODULE_AT86RFR2 if HAVE_AT86RFR2 - help - Select the specific part-number. - -config MODULE_AT86RF231 - bool "AT86RF231" - depends on HAS_PERIPH_GPIO - depends on HAS_PERIPH_GPIO_IRQ - depends on HAS_PERIPH_SPI - select MODULE_PERIPH_GPIO - select MODULE_PERIPH_GPIO_IRQ - select MODULE_PERIPH_SPI - -config MODULE_AT86RF212B - bool "AT86RF212B" - depends on HAS_PERIPH_GPIO - depends on HAS_PERIPH_GPIO_IRQ - depends on HAS_PERIPH_SPI - select MODULE_PERIPH_GPIO - select MODULE_PERIPH_GPIO_IRQ - select MODULE_PERIPH_SPI - -config MODULE_AT86RF232 - bool "AT86RF232" - depends on HAS_PERIPH_GPIO - depends on HAS_PERIPH_GPIO_IRQ - depends on HAS_PERIPH_SPI - select MODULE_PERIPH_GPIO - select MODULE_PERIPH_GPIO_IRQ - select MODULE_PERIPH_SPI - -config MODULE_AT86RF233 - bool "AT86RF233" - depends on HAS_PERIPH_GPIO - depends on HAS_PERIPH_GPIO_IRQ - depends on HAS_PERIPH_SPI - select MODULE_PERIPH_GPIO - select MODULE_PERIPH_GPIO_IRQ - select MODULE_PERIPH_SPI - -config MODULE_AT86RFA1 - bool "AT86RFA1" - -config MODULE_AT86RFR2 - bool "AT86RFR2" - -endchoice - -config MODULE_AUTO_INIT_AT86RF2XX - bool "Auto-initialize the driver" - default y - depends on MODULE_AUTO_INIT - -config MODULE_AT86RF2XX_AES_SPI - bool "AES security" - -config AT86RF2XX_OQPSK - bool "O-QPSK support" - select MODULE_NETDEV_IEEE802154_OQPSK - default y - -endif # MODULE_AT86RF2XX - -config HAVE_AT86RF2XX - bool - help - Indicates that an AT86RF2XX radio is present. - -config HAVE_AT86RF212B - bool - select HAVE_AT86RF2XX - help - Indicates that an AT86RF212B radio is present. - -config HAVE_AT86RF231 - bool - select HAVE_AT86RF2XX - help - Indicates that an AT86RF231 radio is present. - -config HAVE_AT86RF232 - bool - select HAVE_AT86RF2XX - help - Indicates that an AT86RF232 radio is present. - -config HAVE_AT86RF233 - bool - select HAVE_AT86RF2XX - help - Indicates that an AT86RF233 radio is present. - -config HAVE_AT86RFA1 - bool - select HAVE_AT86RF2XX - help - Indicates that an AT86RFA1 radio is present. - -config HAVE_AT86RFR2 - bool - select HAVE_AT86RF2XX - help - Indicates that an AT86RFR2 radio is present. diff --git a/drivers/ata8520e/Kconfig b/drivers/ata8520e/Kconfig deleted file mode 100644 index 3f4582a20f70..000000000000 --- a/drivers/ata8520e/Kconfig +++ /dev/null @@ -1,19 +0,0 @@ -# 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_ZTIMER - select MODULE_ZTIMER_MSEC diff --git a/drivers/bh1750fvi/Kconfig b/drivers/bh1750fvi/Kconfig deleted file mode 100644 index e0f83ff9c292..000000000000 --- a/drivers/bh1750fvi/Kconfig +++ /dev/null @@ -1,18 +0,0 @@ -# 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_BH1750FVI - bool "BH1750FVI ambient light sensor" - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_PERIPH_I2C - select MODULE_XTIMER - -config HAVE_BH1750FVI - bool - help - Indicates that the BH1750FVI ambient light sensor is present. diff --git a/drivers/bh1900nux/Kconfig b/drivers/bh1900nux/Kconfig deleted file mode 100644 index 9f45138e06a0..000000000000 --- a/drivers/bh1900nux/Kconfig +++ /dev/null @@ -1,17 +0,0 @@ -# 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_BH1900NUX - bool "BH1900NUX temperature sensor" - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_PERIPH_I2C - -config HAVE_BH1900NUX - bool - help - Indicates that the BH1900NUX temperature sensor is present. diff --git a/drivers/bme680/Kconfig b/drivers/bme680/Kconfig deleted file mode 100644 index 0bddba4ef158..000000000000 --- a/drivers/bme680/Kconfig +++ /dev/null @@ -1,60 +0,0 @@ -# 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_BME680 - bool - prompt "BME680 Temperature/Humidity/Pressure/Gas sensor" if !(MODULE_SAUL_DEFAULT && HAVE_BME680) - default (MODULE_SAUL_DEFAULT && HAVE_BME680) - depends on TEST_KCONFIG - select PACKAGE_DRIVER_BME680 - select MODULE_ZTIMER if MODULE_SAUL - select MODULE_ZTIMER_MSEC if MODULE_SAUL - -if MODULE_BME680 - -choice BME680_VARIANT - bool "Device interface" - default MODULE_BME680_I2C if HAVE_BME680_I2C - default MODULE_BME680_SPI if HAVE_BME680_SPI - help - The device can be connected via different buses, select one. - -config MODULE_BME680_I2C - bool "I2C" - depends on HAS_PERIPH_I2C - select MODULE_PERIPH_I2C - -config MODULE_BME680_SPI - bool "SPI" - depends on HAS_PERIPH_SPI - depends on HAS_PERIPH_GPIO - select MODULE_PERIPH_SPI - select MODULE_PERIPH_GPIO - -endchoice - -config MODULE_BME680_FP - bool "Enable floating point" - -endif # MODULE_BME680 - -config HAVE_BME680 - bool - help - Indicates that the BME680 Temperature/Humidity/Pressure/Gas sensor is present. - -config HAVE_BME680_I2C - bool - select HAVE_BME680 - help - Indicates that the BME680 Temperature/Humidity/Pressure/Gas sensor is connected with i2c. - -config HAVE_BME680_SPI - bool - select HAVE_BME680 - help - Indicates that the BME680 Temperature/Humidity/Pressure/Gas sensor is connected with spi. diff --git a/drivers/bmp180/Kconfig b/drivers/bmp180/Kconfig deleted file mode 100644 index 03d10aa0bce1..000000000000 --- a/drivers/bmp180/Kconfig +++ /dev/null @@ -1,20 +0,0 @@ -# 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_BMP180 - bool "BMP180 temperature and pressure sensor" - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_PERIPH_I2C - select MODULE_ZTIMER - select MODULE_ZTIMER_MSEC - -config HAVE_BMP180 - bool - select MODULE_BMP180 if MODULE_SAUL_DEFAULT - help - Indicates that a bmp180 sensor is present. diff --git a/drivers/bmx055/Kconfig b/drivers/bmx055/Kconfig index d8d05c38891f..e92f10db4356 100644 --- a/drivers/bmx055/Kconfig +++ b/drivers/bmx055/Kconfig @@ -6,19 +6,8 @@ # directory for more details. # -config MODULE_BMX055 - bool "BMX055 9-axis sensor" - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_PERIPH_I2C - -menuconfig KCONFIG_USEMODULE_BMX055 - bool "Configure BMX055 driver" +menu "BMX055 driver" depends on USEMODULE_BMX055 - help - Configure the BMX055 driver using Kconfig. - -if KCONFIG_USEMODULE_BMX055 config BMX055_MAG_ADDR_DEFAULT hex "I2C Address of magnetometer" @@ -47,10 +36,4 @@ config BMX055_GYRO_ADDR_DEFAULT For more information refer to the section 'Inter-Integrated Circuit (I²C)' in the datasheet. -endif # KCONFIG_USEMODULE_BMX055 - -config HAVE_BMX055 - bool - select MODULE_BMX055 if MODULE_SAUL_DEFAULT - help - Indicates that a BMX055 9-axis sensor is present. +endmenu # BMX055 driver diff --git a/drivers/bmx280/Kconfig b/drivers/bmx280/Kconfig deleted file mode 100644 index 84a842e63bbf..000000000000 --- a/drivers/bmx280/Kconfig +++ /dev/null @@ -1,81 +0,0 @@ -# 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_BMX280 - bool - prompt "BMx280 Temperature, pressure and humidity sensors" if !(MODULE_SAUL_DEFAULT && HAVE_BMX280) - default (MODULE_SAUL_DEFAULT && HAVE_BMX280) - depends on TEST_KCONFIG - -if MODULE_BMX280 - -choice BMX280_VARIANT - bool "Model" - default MODULE_BME280_I2C if HAVE_BME280_I2C - default MODULE_BME280_SPI if HAVE_BME280_SPI - default MODULE_BMP280_I2C if HAVE_BMP280_I2C - default MODULE_BMP280_SPI if HAVE_BMP280_SPI - help - The driver supports both BME280 and BMP280 connected either via SPI or - I2C bus. Select one combination. - -config MODULE_BME280_I2C - bool "BME280 on I2C" - depends on HAS_PERIPH_I2C - select MODULE_PERIPH_I2C - -config MODULE_BME280_SPI - bool "BME280 on SPI" - depends on HAS_PERIPH_SPI - depends on HAS_PERIPH_GPIO - select MODULE_PERIPH_SPI - select MODULE_PERIPH_GPIO - -config MODULE_BMP280_I2C - bool "BMP280 on I2C" - depends on HAS_PERIPH_I2C - select MODULE_PERIPH_I2C - -config MODULE_BMP280_SPI - bool "BMP280 on SPI" - depends on HAS_PERIPH_SPI - depends on HAS_PERIPH_GPIO - select MODULE_PERIPH_SPI - select MODULE_PERIPH_GPIO - -endchoice - -endif # MODULE_BMX280 - -config HAVE_BMX280 - bool - help - Indicates that a bmx280 sensor is present. - -config HAVE_BME280_I2C - bool - select HAVE_BMX280 - help - Indicates that a bme280 sensor on the I2C bus is present. - -config HAVE_BME280_SPI - bool - select HAVE_BMX280 - help - Indicates that a bme280 sensor on the SPI bus is present. - -config HAVE_BMP280_I2C - bool - select HAVE_BMX280 - help - Indicates that a bmp280 sensor on the I2C bus is present. - -config HAVE_BMP280_SPI - bool - select HAVE_BMX280 - help - Indicates that a bmp280 sensor on the SPI bus is present. diff --git a/drivers/bq2429x/Kconfig b/drivers/bq2429x/Kconfig deleted file mode 100644 index ac103f925a78..000000000000 --- a/drivers/bq2429x/Kconfig +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright (C) 2020 Locha Inc -# -# 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_BQ2429X - bool "BQ2429x single-cell USB charger" - depends on HAS_PERIPH_I2C - depends on HAS_PERIPH_GPIO - depends on TEST_KCONFIG - select MODULE_PERIPH_I2C - select MODULE_PERIPH_GPIO - help - The driver can be used with Texas Instruments USB charger ICs: BQ24295, - BQ24296, BQ24297, BQ24298, BQ24292I, BQ24296M. - -config MODULE_BQ2429X_INT - bool "Interrupt handling" - depends on HAS_PERIPH_GPIO_IRQ - depends on MODULE_BQ2429X - select MODULE_PERIPH_GPIO_IRQ - default y if HAVE_BQ2429X_INT - help - Say y to include interrupt handling functionality. - -config HAVE_BQ2429X - bool - help - Indicates that a BQ2429x charger and power management IC is present. - -config HAVE_BQ2429X_INT - bool - select HAVE_BQ2429X - help - Indicates that a BQ2429x charger and power management IC is present, - with interrupt functionality (the INT pin is connected). diff --git a/drivers/can_trx/Kconfig b/drivers/can_trx/Kconfig deleted file mode 100644 index 8815e52280d3..000000000000 --- a/drivers/can_trx/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# 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_CAN_TRX - bool "Generic CAN transceiver interface" - depends on TEST_KCONFIG diff --git a/drivers/cc110x/Kconfig b/drivers/cc110x/Kconfig index 3f03abc25375..e8094354d448 100644 --- a/drivers/cc110x/Kconfig +++ b/drivers/cc110x/Kconfig @@ -4,13 +4,8 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_CC110X - bool "Configure CC110X driver" +menu "CC110X driver" depends on USEMODULE_CC110X - help - Configure the CC110X driver using Kconfig. - -if KCONFIG_USEMODULE_CC110X config CC110X_DEFAULT_CHANNEL int "Configure default channel" @@ -21,4 +16,4 @@ config CC110X_DEFAULT_CHANNEL maximum of 8 (0-7) Channels. Default channel is 0. -endif # KCONFIG_USEMODULE_CC110X +endmenu # CC110X driver diff --git a/drivers/cc2420/Kconfig b/drivers/cc2420/Kconfig deleted file mode 100644 index d1d33ce169a0..000000000000 --- a/drivers/cc2420/Kconfig +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright (c) 2022 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_CC2420 - bool "CC2420 radio" - depends on TEST_KCONFIG - depends on HAS_PERIPH_GPIO - depends on HAS_PERIPH_GPIO_IRQ - depends on HAS_PERIPH_SPI - select MODULE_IEEE802154 - select MODULE_NETDEV - select MODULE_NETDEV_IEEE802154 - select MODULE_NETDEV_LEGACY_API - select MODULE_PERIPH_GPIO - select MODULE_PERIPH_GPIO_IRQ - select MODULE_PERIPH_SPI - select MODULE_XTIMER - -config HAVE_CC2420 - bool - select MODULE_CC2420 if MODULE_NETDEV_DEFAULT - help - Indicates that a CC2420 radio is present. diff --git a/drivers/ccs811/Kconfig b/drivers/ccs811/Kconfig deleted file mode 100644 index a70f787c673f..000000000000 --- a/drivers/ccs811/Kconfig +++ /dev/null @@ -1,35 +0,0 @@ -# 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_CCS811 - bool - prompt "CCS811 digital gas sensor" if !(MODULE_SAUL_DEFAULT && HAVE_CCS811) - default (MODULE_SAUL_DEFAULT && HAVE_CCS811) - depends on HAS_PERIPH_GPIO - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_PERIPH_GPIO - select MODULE_PERIPH_I2C - select ZTIMER_USEC - -config MODULE_CCS811_FULL - bool "Full functionalities" - depends on MODULE_CCS811 - depends on HAS_PERIPH_GPIO_IRQ - select MODULE_PERIPH_GPIO_IRQ - help - Say n if code size is critical, otherwise using the this module is - recommended. - Features included by this module are: - - data ready and threshold interrupt handling - - compensate gas readings using an external sensor - - manual baseline handling - -config HAVE_CCS811 - bool - help - Indicates that a ccs811 sensor is present. diff --git a/drivers/cst816s/Kconfig b/drivers/cst816s/Kconfig deleted file mode 100644 index 1fc3564d40b2..000000000000 --- a/drivers/cst816s/Kconfig +++ /dev/null @@ -1,22 +0,0 @@ -# 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_CST816S - bool "cst816s touch screen" - depends on HAS_PERIPH_GPIO_IRQ - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_PERIPH_GPIO_IRQ - select MODULE_PERIPH_I2C - select MODULE_ZTIMER - select MODULE_ZTIMER_MSEC - -config HAVE_CST816S - bool - select MODULE_CST816S if MODULE_TOUCH_DEV - help - Indicates that a cst816s touch screen is present. diff --git a/drivers/dac_dds/Kconfig b/drivers/dac_dds/Kconfig deleted file mode 100644 index 82fef9f60963..000000000000 --- a/drivers/dac_dds/Kconfig +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright (c) 2022 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_DAC_DDS - bool "Common DAC function fallback implementations" - depends on HAS_PERIPH_DAC - depends on HAS_PERIPH_TIMER - depends on HAS_PERIPH_TIMER_PERIODIC - depends on TEST_KCONFIG - select MODULE_PERIPH_DAC - select MODULE_PERIPH_TIMER - select MODULE_PERIPH_TIMER_PERIODIC diff --git a/drivers/dcf77/Kconfig b/drivers/dcf77/Kconfig deleted file mode 100644 index e78b362a34dd..000000000000 --- a/drivers/dcf77/Kconfig +++ /dev/null @@ -1,20 +0,0 @@ -# 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 - -config HAVE_DCF77 - bool - help - Indicates that a dcf77 long wave receiver is present. diff --git a/drivers/dfplayer/Kconfig b/drivers/dfplayer/Kconfig index 0f796657342c..630fe8ed96fa 100644 --- a/drivers/dfplayer/Kconfig +++ b/drivers/dfplayer/Kconfig @@ -1,34 +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. -# - -menuconfig 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_CMDS +menu "DFPLAYER: MP3 Player" + depends on USEMODULE_DFPLAYER config DFPLAYER_NO_STRERROR bool prompt "Avoid using strerror in shell command" if !(HAS_ARCH_AVR8 || HAS_ARCH_MSP430) - depends on MODULE_DFPLAYER - depends on MODULE_SHELL_CMDS + + depends on USEMODULE_SHELL_CMDS # no strerror() on AVR and MSP430 default y if (HAS_ARCH_AVR8 || HAS_ARCH_MSP430) help Say y to print error codes as numbers when using the shell, instead of the corresponding standard error string. -config HAVE_DFPLAYER - bool - help - Indicates that a DFPlayer Mini MP3 Player is present. +endmenu # DFPLAYER: MP3 Player diff --git a/drivers/dht/Kconfig b/drivers/dht/Kconfig deleted file mode 100644 index dca40c956c98..000000000000 --- a/drivers/dht/Kconfig +++ /dev/null @@ -1,19 +0,0 @@ -# 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 ZTIMER_USEC - -config HAVE_DHT - bool - select MODULE_DHT if MODULE_SAUL_DEFAULT - help - Indicates that a DHT Humidity and Temperature Sensor is present. diff --git a/drivers/disp_dev/Kconfig b/drivers/disp_dev/Kconfig deleted file mode 100644 index 0b595a5f67bb..000000000000 --- a/drivers/disp_dev/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# 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 - imply MODULE_AUTO_INIT_SCREEN diff --git a/drivers/dose/Kconfig b/drivers/dose/Kconfig index 081cbdb2c32c..4ccb0171b4a6 100644 --- a/drivers/dose/Kconfig +++ b/drivers/dose/Kconfig @@ -4,58 +4,8 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_DOSE - bool "Configure DOSE driver" +menu "DOSE driver" depends on USEMODULE_DOSE - help - Configure the Differentially Operated Serial Ethernet (DOSE) - driver using Kconfig. - -if KCONFIG_USEMODULE_DOSE - -config DOSE_TIMEOUT_BYTES - int "Transaction timeout in bytes" - default 50 - help - Timeout, in bytes at the set baudrate, to bring the driver back into idle state if - the remote side died within a transaction. - -endif # KCONFIG_USEMODULE_DOSE - -menuconfig MODULE_DOSE - bool "Differentially Operated Serial Ethernet (DOSE)" - depends on TEST_KCONFIG - depends on HAS_PERIPH_GPIO - depends on HAS_PERIPH_GPIO_IRQ - depends on HAS_PERIPH_UART - select MODULE_CHECKSUM - select MODULE_CHUNKED_RINGBUFFER - select MODULE_EUI_PROVIDER - select MODULE_IOLIST - select MODULE_NETDEV_ETH - select MODULE_NETDEV_LEGACY_API - select MODULE_PERIPH_GPIO - select MODULE_PERIPH_GPIO_IRQ - select MODULE_PERIPH_UART - select MODULE_PERIPH_UART_COLLISION if HAS_PERIPH_UART_COLLISION - select MODULE_PERIPH_UART_RXSTART_IRQ if HAS_PERIPH_UART_RXSTART_IRQ - select MODULE_RANDOM - select MODULE_ZTIMER - select ZTIMER_USEC - help - Allows RIOT nodes to communicate by Ethernet over a serial bus. - -if MODULE_DOSE - -config MODULE_DOSE_WATCHDOG - bool "Use a watchdog timer" - depends on HAS_PERIPH_TIMER_PERIODIC - select MODULE_PERIPH_TIMER_PERIODIC - help - Say y to utilize a dedicated hardware timer (DOSE_TIMER_DEV which should - be configured in board.h) to periodically check if any interface does - not make progress receiving a frame and abort the RX process. This - speeds up the more critical RX path. config DOSE_TIMEOUT_BYTES int "Transaction timeout in bytes" @@ -64,4 +14,4 @@ config DOSE_TIMEOUT_BYTES Timeout, in bytes at the set baudrate, to bring the driver back into idle state if the remote side died within a transaction. -endif # MODULE_DOSE +endmenu # DOSE driver diff --git a/drivers/ds1307/Kconfig b/drivers/ds1307/Kconfig deleted file mode 100644 index 59ea0fc8a29e..000000000000 --- a/drivers/ds1307/Kconfig +++ /dev/null @@ -1,17 +0,0 @@ -# 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 - -config HAVE_DS1307 - bool - help - Indicates that a DS1307 real-time clock is present. diff --git a/drivers/ds18/Kconfig b/drivers/ds18/Kconfig deleted file mode 100644 index 2c94f31bb6a0..000000000000 --- a/drivers/ds18/Kconfig +++ /dev/null @@ -1,27 +0,0 @@ -# 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 - prompt "DS18 temperature sensors" if !(MODULE_SAUL_DEFAULT && HAVE_DS18) - default (MODULE_SAUL_DEFAULT && HAVE_DS18) - 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. - -config HAVE_DS18 - bool - help - Indicates that a DS18 temperature sensor is present. diff --git a/drivers/ds3231/Kconfig b/drivers/ds3231/Kconfig deleted file mode 100644 index 5526ab0885fd..000000000000 --- a/drivers/ds3231/Kconfig +++ /dev/null @@ -1,17 +0,0 @@ -# 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 - -config HAVE_DS3231 - bool - help - Indicates that a DS3231 real-time clock is present. diff --git a/drivers/ds3234/Kconfig b/drivers/ds3234/Kconfig deleted file mode 100644 index 554378c3c561..000000000000 --- a/drivers/ds3234/Kconfig +++ /dev/null @@ -1,17 +0,0 @@ -# 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 - -config HAVE_DS3234 - bool - help - Indicates that a DS3234 real-time clock is present. diff --git a/drivers/ds75lx/Kconfig b/drivers/ds75lx/Kconfig deleted file mode 100644 index fd9787aa54b4..000000000000 --- a/drivers/ds75lx/Kconfig +++ /dev/null @@ -1,19 +0,0 @@ -# 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 - -config HAVE_DS75LX - bool - select MODULE_DS75LX if MODULE_SAUL_DEFAULT - help - Indicates that a DS75LX temperature sensor is present. diff --git a/drivers/dsp0401/Kconfig b/drivers/dsp0401/Kconfig deleted file mode 100644 index 39029a2ed723..000000000000 --- a/drivers/dsp0401/Kconfig +++ /dev/null @@ -1,21 +0,0 @@ -# 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_ZTIMER - select ZTIMER_USEC - -config HAVE_DSP0401 - bool - help - Indicates that a DSP0401 alphanumeric display clock is present. diff --git a/drivers/dynamixel/Kconfig b/drivers/dynamixel/Kconfig deleted file mode 100644 index 4c02f0ca626d..000000000000 --- a/drivers/dynamixel/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# 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 deleted file mode 100644 index 53b8798e4415..000000000000 --- a/drivers/edbg_eui/Kconfig +++ /dev/null @@ -1,21 +0,0 @@ -# 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 - help - Driver for getting a unique ID from the Atmel Embedded Debugger. - -config HAVE_EDBG_EUI - bool - select MODULE_EDBG_EUI if MODULE_EUI_PROVIDER - help - Indicates that the Atmel Embedded Debugeger EUI is available on the - platform. diff --git a/drivers/enc28j60/Kconfig b/drivers/enc28j60/Kconfig deleted file mode 100644 index 34147d9532cc..000000000000 --- a/drivers/enc28j60/Kconfig +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright (c) 2022 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_ENC28J60 - bool "ENC28J60 Ethernet Adapter" - depends on TEST_KCONFIG - depends on HAS_PERIPH_GPIO - depends on HAS_PERIPH_GPIO_IRQ - depends on HAS_PERIPH_SPI - select MODULE_NETDEV_ETH - select MODULE_NETDEV_LEGACY_API - select MODULE_PERIPH_EUI_PROVIDER - select MODULE_PERIPH_GPIO - select MODULE_PERIPH_GPIO_IRQ - select MODULE_PERIPH_SPI - select MODULE_XTIMER - -config HAVE_ENC28J60 - bool - select MODULE_ENC28J60 if MODULE_NETDEV_DEFAULT - help - Indicates that a ENC28J60 ethernet adapter is present. diff --git a/drivers/encx24j600/Kconfig b/drivers/encx24j600/Kconfig deleted file mode 100644 index 033aa9a5945e..000000000000 --- a/drivers/encx24j600/Kconfig +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright (c) 2022 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_ENCX24J600 - bool "ENCX24J600 Ethernet Adapter" - depends on TEST_KCONFIG - depends on HAS_PERIPH_GPIO - depends on HAS_PERIPH_GPIO_IRQ - depends on HAS_PERIPH_SPI - select MODULE_NETDEV_ETH - select MODULE_NETDEV_LEGACY_API - select MODULE_PERIPH_GPIO - select MODULE_PERIPH_GPIO_IRQ - select MODULE_PERIPH_SPI - select MODULE_XTIMER - -config HAVE_ENCX24J600 - bool - select MODULE_ENCX24J600 if MODULE_NETDEV_DEFAULT - help - Indicates that a ENCX24J600 ethernet adapter is present. diff --git a/drivers/ethos/Kconfig b/drivers/ethos/Kconfig deleted file mode 100644 index 6ecd54307c39..000000000000 --- a/drivers/ethos/Kconfig +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright (c) 2022 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_ETHOS - bool "Ethernet-over-serial (ETHOS)" - depends on TEST_KCONFIG - depends on HAS_PERIPH_UART - select MODULE_IOLIST - select MODULE_NETDEV_ETH - select MODULE_NETDEV_LEGACY_API - select MODULE_PERIPH_UART - select MODULE_RANDOM - select MODULE_TSRB - -config MODULE_ETHOS_STDIO - bool - select MODULE_ISRPIPE - depends on MODULE_ETHOS diff --git a/drivers/feetech/Kconfig b/drivers/feetech/Kconfig deleted file mode 100644 index 89f1330abb63..000000000000 --- a/drivers/feetech/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# 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/ft5x06/Kconfig b/drivers/ft5x06/Kconfig deleted file mode 100644 index b83e032b1909..000000000000 --- a/drivers/ft5x06/Kconfig +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright (c) 2021 Inria -# -# 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_FT5X06 - bool "FT5X06 touch panel driver" - depends on TEST_KCONFIG - depends on HAS_PERIPH_GPIO_IRQ - depends on HAS_PERIPH_I2C - select MODULE_PERIPH_GPIO_IRQ - select MODULE_PERIPH_I2C - select MODULE_ZTIMER - select MODULE_ZTIMER_MSEC - help - This driver is compatible with the following controllers: ft5x06, ft5606, ft5x16, ft6x06, - ft6x36, ft5x06i, ft5336, ft3316, ft5436i, ft5336i and ft5x46. - -config HAVE_FT5X06 - bool - select MODULE_FT5X06 if MODULE_TOUCH_DEV - help - Indicates that an FT5X06 touch panel is present. diff --git a/drivers/fxos8700/Kconfig b/drivers/fxos8700/Kconfig index 21d6375db670..5438a3bba107 100644 --- a/drivers/fxos8700/Kconfig +++ b/drivers/fxos8700/Kconfig @@ -6,26 +6,8 @@ # 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 - -config HAVE_FXOS8700 - bool - select MODULE_FXOS8700 if MODULE_SAUL_DEFAULT - help - Indicates that a FXOS8700 accelerometer/magnetometer is present. - -menuconfig KCONFIG_USEMODULE_FXOS8700 - bool "Configure FXOS8700 driver" +menu "FXOS8700 driver" depends on USEMODULE_FXOS8700 - help - Configure the FXOS8700 driver using Kconfig. - -if KCONFIG_USEMODULE_FXOS8700 config FXOS8700_USE_ACC_RAW_VALUES bool "Enable raw ADC readings" @@ -33,4 +15,4 @@ config FXOS8700_USE_ACC_RAW_VALUES Enable this to return raw ADC readings. By default measurements are converted to mg. -endif # KCONFIG_USEMODULE_FXOS8700 +endmenu # FXOS8700 driver diff --git a/drivers/gp2y10xx/Kconfig b/drivers/gp2y10xx/Kconfig index d52eed2b47dc..fe6a11582fc6 100644 --- a/drivers/gp2y10xx/Kconfig +++ b/drivers/gp2y10xx/Kconfig @@ -5,28 +5,8 @@ # 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 - -config HAVE_GP2Y10XX - bool - select MODULE_GP2Y10XX if MODULE_SAUL_DEFAULT - help - Indicates that a GP2Y10xx Optical Dust Sensor is present. - -menuconfig KCONFIG_USEMODULE_GP2Y10XX - bool "Configure GP2Y10xx driver" +menu "GP2Y10xx driver" depends on USEMODULE_GP2Y10XX - help - Configure the GP2Y10XX driver using Kconfig. - -if KCONFIG_USEMODULE_GP2Y10XX config GP2Y10XX_MAX_READINGS int "Numbers of readings to use for average ADC value" @@ -35,4 +15,4 @@ config GP2Y10XX_MAX_READINGS This configures the maximum number of ADC readings to calculate the average ADC value. -endif # KCONFIG_USEMODULE_GP2Y10XX +endmenu # GP2Y10xx driver diff --git a/drivers/grove_ledbar/Kconfig b/drivers/grove_ledbar/Kconfig deleted file mode 100644 index 165b8c0e389f..000000000000 --- a/drivers/grove_ledbar/Kconfig +++ /dev/null @@ -1,19 +0,0 @@ -# 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 HAS_PERIPH_GPIO - depends on TEST_KCONFIG - select MODULE_PERIPH_GPIO - select MODULE_MY9221 - -config HAVE_GROVE_LEDBAR - bool - select MODULE_GROVE_LEDBAR if MODULE_SAUL_DEFAULT - help - Indicates that a Grove ledbar is present. diff --git a/drivers/hd44780/Kconfig b/drivers/hd44780/Kconfig deleted file mode 100644 index 9612cf3ffc17..000000000000 --- a/drivers/hd44780/Kconfig +++ /dev/null @@ -1,20 +0,0 @@ -# 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. - -config HAVE_HD44780 - bool - help - Indicates that a HD44780 LCD is present. diff --git a/drivers/hdc1000/Kconfig b/drivers/hdc1000/Kconfig index 7bf0c19a4146..2b2052c5d5d4 100644 --- a/drivers/hdc1000/Kconfig +++ b/drivers/hdc1000/Kconfig @@ -5,26 +5,8 @@ # 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 - -config HAVE_HDC1000 - bool - select MODULE_HDC1000 if MODULE_SAUL_DEFAULT - help - Indicates that a HDC1000 humidity and temperature sensor is present. - -menuconfig KCONFIG_USEMODULE_HDC1000 - bool "Configure HDC1000 driver" +menu "HDC1000 driver" depends on USEMODULE_HDC1000 - help - Configure the HDC1000 driver using Kconfig. - -if KCONFIG_USEMODULE_HDC1000 config HDC1000_I2C_ADDRESS hex "I2C default address" @@ -43,4 +25,4 @@ config HDC1000_CONVERSION_TIME conversions (worst case) to allow for timer imprecision: (convert temp + convert hum) * 2 -> (6.5ms + 6.5ms) * 2 := 26ms. -endif # KCONFIG_USEMODULE_HDC1000 +endmenu # HDC1000 driver diff --git a/drivers/hih6130/Kconfig b/drivers/hih6130/Kconfig deleted file mode 100644 index db3ee79a6699..000000000000 --- a/drivers/hih6130/Kconfig +++ /dev/null @@ -1,21 +0,0 @@ -# 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. - -config HAVE_HIH6130 - bool - help - Indicates that a HIH6130 humidity and temperature sensor is present. diff --git a/drivers/hm330x/Kconfig b/drivers/hm330x/Kconfig index 774bf1f71225..182101cb5c7e 100644 --- a/drivers/hm330x/Kconfig +++ b/drivers/hm330x/Kconfig @@ -5,44 +5,8 @@ # directory for more details. # -menuconfig MODULE_HM330X - bool - prompt "HM330x Particulate Matter Sensor" if !(MODULE_SAUL_DEFAULT && HAVE_HM330X) - default y if (MODULE_SAUL_DEFAULT && HAVE_HM330x) - depends on HAS_PERIPH_I2C - depends on HAS_PERIPH_GPIO - depends on TEST_KCONFIG - select MODULE_PERIPH_I2C - select MODULE_PERIPH_GPIO - help - HM330X Particulate Matter Sensor for HM3301/HM3302. Select a model. - -if MODULE_HM330X - -choice - bool "sensor variant" - default MODULE_HM3301 if HAVE_HM3301 - default MODULE_HM3302 if HAVE_HM3302 - help - Device driver for the HM330X Particulate Matter Sensor. - -config MODULE_HM3301 - bool "HM3301" - -config MODULE_HM3302 - bool "HM3302" - -endchoice - -endif # MODULE_HM330X - -menuconfig KCONFIG_USEMODULE_HM330X - bool "Configure HM330X driver" +menu "HM330X driver" depends on USEMODULE_HM330X - help - Configure the HM330X driver using Kconfig. - -if KCONFIG_USEMODULE_HM330X config HM330X_INDOOR_ENVIRONMENT bool "Indoor environment calibration" @@ -51,19 +15,5 @@ config HM330X_INDOOR_ENVIRONMENT The HM330X sensor outputs two set of PM* values, one calibrated for indoor environment and another one for atmospheric environment, set this value according to your deployment. -endif # KCONFIG_USEMODULE_HM330X - -config HAVE_HM330x - bool -config HAVE_HM3301 - bool - select HAVE_HM330X - help - Indicates that a HM3301 sensor is present. - -config HAVE_HM3302 - bool - select HAVE_HM330x - help - Indicates that a HM3302 sensor is present. +endmenu # HM330X driver diff --git a/drivers/hmc5883l/Kconfig b/drivers/hmc5883l/Kconfig deleted file mode 100644 index b1546a1fd8e5..000000000000 --- a/drivers/hmc5883l/Kconfig +++ /dev/null @@ -1,37 +0,0 @@ -# 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 - prompt "HMC5883L 3-axis digital compass" if !(MODULE_SAUL_DEFAULT && HAVE_HMC5883L) - default (MODULE_SAUL_DEFAULT && HAVE_HMC5883L) - 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 - default y if HAVE_HMC5883L_INT - help - Allows to configure an interrupt pin to get an event on data ready. - -config HAVE_HMC5883L - bool - help - Indicates that a HMC5883L 3-axis digital compass is present. - -config HAVE_HMC5883L_INT - bool - select HAVE_HMC5883L - help - Indicates that a HMC5883L 3-axis digital compass is present with - data-ready interrupt pin connected. diff --git a/drivers/hsc/Kconfig b/drivers/hsc/Kconfig index 46f646f8feba..7e2e1171e515 100644 --- a/drivers/hsc/Kconfig +++ b/drivers/hsc/Kconfig @@ -5,28 +5,8 @@ # directory for more details. # -config MODULE_HSC - bool "Driver for Honeywell HSC series pressure and temperature sensor" - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_PERIPH_I2C - help - This driver supports the Honeywell HSC series pressure and temperature - sensors that use an I2C interface. - -config HAVE_HSC - bool - select MODULE_HSC if MODULE_SAUL_DEFAULT - help - Indicates that a HSC series pressure and temperature sensor is present. - -menuconfig KCONFIG_USEMODULE_HSC - bool "Configure HSC pressure and temperature sensor driver" +menu "HSC pressure and temperature sensor driver" depends on USEMODULE_HSC - help - Configure the hsc driver using Kconfig. - -if KCONFIG_USEMODULE_HSC config HSC_I2C_ADDRESS hex "I2C address of the HSC pressure and temperature sensor" @@ -44,4 +24,4 @@ config HSC_RANGE The HSC sensors support a pressure range of 1.6 millibar to 10 bar, depending on the model. -endif # KCONFIG_USEMODULE_HSC +endmenu # HSC pressure and temperature sensor driver diff --git a/drivers/hts221/Kconfig b/drivers/hts221/Kconfig deleted file mode 100644 index c0d6f1bca38e..000000000000 --- a/drivers/hts221/Kconfig +++ /dev/null @@ -1,18 +0,0 @@ -# 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 - -config HAVE_HTS221 - bool - select MODULE_HTS221 if MODULE_SAUL_DEFAULT - help - Indicates that a ST HTS221 sensor is present. diff --git a/drivers/ili9341/Kconfig b/drivers/ili9341/Kconfig index fbe7285f0254..86fbbfa10b4d 100644 --- a/drivers/ili9341/Kconfig +++ b/drivers/ili9341/Kconfig @@ -5,30 +5,8 @@ # 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_LCD - select MODULE_ZTIMER - select MODULE_ZTIMER_MSEC - -config HAVE_ILI9341 - bool - select MODULE_ILI9341 if MODULE_DISP_DEV - help - Indicates that an ILI9341 display is present. - -menuconfig KCONFIG_USEMODULE_ILI9341 - bool "Configure ILI9341 driver" +menu "ILI9341 driver" depends on USEMODULE_ILI9341 - help - Configure the ILI9341 display driver using Kconfig. - -if KCONFIG_USEMODULE_ILI9341 config ILI9341_GVDD int "GVDD voltage level (in millivolts)" @@ -56,4 +34,4 @@ config ILI9341_VCOML match the capacitance and performance specifications of the TFT panel to maximize contrast and minimize flickering -endif # KCONFIG_USEMODULE_ILI9341 +endmenu # ILI9341 driver diff --git a/drivers/ina2xx/Kconfig b/drivers/ina2xx/Kconfig deleted file mode 100644 index 80e868039660..000000000000 --- a/drivers/ina2xx/Kconfig +++ /dev/null @@ -1,47 +0,0 @@ -# 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_INA2XX - bool - prompt "INA2XX current/power monitor" if !(MODULE_SAUL_DEFAULT && HAVE_INA2XX) - default (MODULE_SAUL_DEFAULT && HAVE_INA2XX) - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_PERIPH_I2C - -choice INA2XX_VARIANT - bool "Variant" - depends on MODULE_INA2XX - default MODULE_INA219 if HAVE_INA219 - default MODULE_INA220 if HAVE_INA220 - help - Select one of the supported models. - -config MODULE_INA219 - bool "INA219" - -config MODULE_INA220 - bool "INA220" - -endchoice - -config HAVE_INA2XX - bool - help - Indicates that a INA2XX current/power monitor is present. - -config HAVE_INA219 - bool - select HAVE_INA2XX - help - Indicates that a INA219 current/power monitor is present. - -config HAVE_INA220 - bool - select HAVE_INA2XX - help - Indicates that a INA220 current/power monitor is present. diff --git a/drivers/ina3221/Kconfig b/drivers/ina3221/Kconfig deleted file mode 100644 index 73d12ce72741..000000000000 --- a/drivers/ina3221/Kconfig +++ /dev/null @@ -1,36 +0,0 @@ -# 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 - prompt "INA3221 current/power monitor" if !(MODULE_SAUL_DEFAULT && HAVE_INA3221) - default (MODULE_SAUL_DEFAULT && HAVE_INA3221) - 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 "Alert pins" - depends on HAS_PERIPH_GPIO_IRQ - depends on MODULE_INA3221 - select MODULE_PERIPH_GPIO_IRQ - default HAVE_INA3221_ALERTS - help - Say y to enable the usage of alert pins. - -config HAVE_INA3221 - bool - help - Indicates that a INA3221 current/power monitor is present. - -config HAVE_INA3221_ALERTS - bool - select HAVE_INA3221 - help - Indicates that a INA3221 current/power monitor is present with alert pins wired. diff --git a/drivers/include/lsm6dsxx.h b/drivers/include/lsm6dsxx.h index 7b465e248c84..fdbe440ebb20 100644 --- a/drivers/include/lsm6dsxx.h +++ b/drivers/include/lsm6dsxx.h @@ -106,6 +106,7 @@ typedef struct { */ typedef struct { lsm6dsxx_params_t params; /**< driver parameters */ + uint8_t temperature_scaling_factor; /**< temperature scaling factor */ } lsm6dsxx_t; /** diff --git a/drivers/io1_xplained/Kconfig b/drivers/io1_xplained/Kconfig deleted file mode 100644 index ccb62cc8039e..000000000000 --- a/drivers/io1_xplained/Kconfig +++ /dev/null @@ -1,28 +0,0 @@ -# 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 HAS_PERIPH_I2C - depends on HAS_PERIPH_SPI - depends on TEST_KCONFIG - - select MODULE_PERIPH_ADC - select MODULE_PERIPH_GPIO - select MODULE_PERIPH_I2C - select MODULE_PERIPH_SPI - select MODULE_SDCARD_SPI - select MODULE_AT30TSE75X - - -config HAVE_IO1_XPLAINED - bool - select MODULE_IO1_XPLAINED if MODULE_SAUL_DEFAULT - help - Indicates that a Atmel IO1 Xplained Extension board is present. diff --git a/drivers/ir_nec/Kconfig b/drivers/ir_nec/Kconfig deleted file mode 100644 index f6165bab807f..000000000000 --- a/drivers/ir_nec/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright (c) 2022 Dario Petrillo -# -# 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_IR_NEC - bool "IR NEC Remote receiver" - depends on TEST_KCONFIG - select MODULE_ISRPIPE - select MODULE_PERIPH_GPIO_IRQ - select MODULE_ZTIMER - select MODULE_ZTIMER_USEC diff --git a/drivers/isl29020/Kconfig b/drivers/isl29020/Kconfig index 11cb02aee206..5c86e806d622 100644 --- a/drivers/isl29020/Kconfig +++ b/drivers/isl29020/Kconfig @@ -6,25 +6,8 @@ # directory for more details. # -config MODULE_ISL29020 - bool "ISL29020 light sensor" - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_PERIPH_I2C - -config HAVE_ISL29020 - bool - select MODULE_ISL29020 if MODULE_SAUL_DEFAULT - help - Indicates that a isl29020 sensor is present. - -menuconfig KCONFIG_USEMODULE_ISL29020 - bool "Configure ISL29020 driver" +menu "ISL29020 driver" depends on USEMODULE_ISL29020 - help - Configure the ISL29020 driver using Kconfig. - -if KCONFIG_USEMODULE_ISL29020 config ISL29020_DEFAULT_ADDRESS hex "Default I2C address" @@ -35,4 +18,4 @@ config ISL29020_DEFAULT_ADDRESS corresponds to A0 connected to GND. For more information refer to the section 'I2C Interface' in the datasheet. -endif # KCONFIG_USEMODULE_ISL29020 +endmenu # ISL29020 driver diff --git a/drivers/isl29125/Kconfig b/drivers/isl29125/Kconfig deleted file mode 100644 index da0cd5319bda..000000000000 --- a/drivers/isl29125/Kconfig +++ /dev/null @@ -1,21 +0,0 @@ -# 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 - -config HAVE_ISL29125 - bool - help - Indicates that a ISL29125 RGB light sensor is present. diff --git a/drivers/itg320x/Kconfig b/drivers/itg320x/Kconfig deleted file mode 100644 index 62e6e37c1eff..000000000000 --- a/drivers/itg320x/Kconfig +++ /dev/null @@ -1,38 +0,0 @@ -# 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 - prompt "ITG320X 3-axis gyroscope" if !(MODULE_SAUL_DEFAULT && HAVE_ITG320X) - default (MODULE_SAUL_DEFAULT && HAVE_ITG320X) - 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 MODULE_ITG320X - depends on HAS_PERIPH_GPIO_IRQ - select MODULE_PERIPH_GPIO_IRQ - default HAVE_ITG320X_INT - help - Say y to fetch the data when the data-ready interrupt is triggered. - -config HAVE_ITG320X - bool - help - Indicates that a ITG320X 3-axis gyroscope is present. - -config HAVE_ITG320X_INT - bool - select HAVE_ITG320X - help - Indicates that a ITG320X 3-axis gyroscope is present with interrupt pin - wired. diff --git a/drivers/jc42/Kconfig b/drivers/jc42/Kconfig deleted file mode 100644 index 5d223a846d8d..000000000000 --- a/drivers/jc42/Kconfig +++ /dev/null @@ -1,18 +0,0 @@ -# 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 - -config HAVE_JC42 - bool - select MODULE_JC42 if MODULE_SAUL_DEFAULT - help - Indicates that a JC42 compliant temperature sensor is present. diff --git a/drivers/kw2xrf/Kconfig b/drivers/kw2xrf/Kconfig deleted file mode 100644 index d09458912c32..000000000000 --- a/drivers/kw2xrf/Kconfig +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright (c) 2022 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_KW2XRF - bool - prompt "KW2XRF radio" if !(MODULE_NETDEV_DEFAULT && HAVE_KW2XRF) - default (MODULE_NETDEV_DEFAULT && HAVE_KW2XRF) - depends on TEST_KCONFIG - depends on HAS_PERIPH_GPIO - depends on HAS_PERIPH_GPIO_IRQ - depends on HAS_PERIPH_SPI - select MODULE_CORE_THREAD_FLAGS - select MODULE_IEEE802154 - select MODULE_LUID - select MODULE_PERIPH_GPIO - select MODULE_PERIPH_GPIO_IRQ - select MODULE_PERIPH_SPI - select MODULE_IOLIST - select HAVE_BHP_IRQ_HANDLER - select HAVE_IEEE802154_RADIO_HAL_INTERFACE - -config MODULE_KW2XRF_TESTMODE - bool "Test mode" - depends on MODULE_KW2XRF - help - Enables functionalities to help with module testing. - -config HAVE_KW2XRF - bool - help - Indicates that a KW2XRF radio is present. diff --git a/drivers/kw41zrf/Kconfig b/drivers/kw41zrf/Kconfig deleted file mode 100644 index 56350a1f9884..000000000000 --- a/drivers/kw41zrf/Kconfig +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright (c) 2022 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_KW41ZRF - bool "KW41ZRF radio" - depends on TEST_KCONFIG - depends on CPU_MODEL_MKW41Z256VHT4 || CPU_MODEL_MKW41Z512VHT4 - select MODULE_MCUX_XCVR_MKW41Z - select MODULE_IEEE802154 - select MODULE_NETDEV - select MODULE_NETDEV_IEEE802154 - select MODULE_CORE_THREAD_FLAGS - select MODULE_RANDOM - help - Device driver for the NXP KW41Z, KW21Z in-cpu transceiver. - -rsource "vendor/XCVR/MKW41Z4/Kconfig" - -config HAVE_KW41ZRF - bool - select MODULE_KW41ZRF if MODULE_NETDEV_DEFAULT - help - Indicates that a KW41ZRF radio is present. diff --git a/drivers/kw41zrf/vendor/XCVR/MKW41Z4/Kconfig b/drivers/kw41zrf/vendor/XCVR/MKW41Z4/Kconfig deleted file mode 100644 index 8560b6ccd10d..000000000000 --- a/drivers/kw41zrf/vendor/XCVR/MKW41Z4/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# Copyright (c) 2022 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_MCUX_XCVR_MKW41Z - bool - help - Vendor code for the kw41zrf driver. diff --git a/drivers/l3g4200d/Kconfig b/drivers/l3g4200d/Kconfig index c533bbabb94e..92135e9c4ff8 100644 --- a/drivers/l3g4200d/Kconfig +++ b/drivers/l3g4200d/Kconfig @@ -6,26 +6,8 @@ # directory for more details. # -config MODULE_L3G4200D - bool - prompt "L3G4200D gyroscope" if !(MODULE_SAUL_DEFAULT && HAVE_L3G4200D) - default y if (MODULE_SAUL_DEFAULT && HAVE_L3G4200D) - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_PERIPH_I2C - -config HAVE_L3G4200D - bool - help - Indicates that a l3g4200d sensor is present. - -menuconfig KCONFIG_USEMODULE_L3G4200D - bool "Configure L3G4200D driver" +menu "L3G4200D driver" depends on USEMODULE_L3G4200D - help - Configure the L3G4200D driver using Kconfig. - -if KCONFIG_USEMODULE_L3G4200D config L3G4200D_DEFAULT_ADDRESS hex "Default I2C address" @@ -37,4 +19,4 @@ config L3G4200D_DEFAULT_ADDRESS information refer to the section 'I2C Operation' in the datasheet. -endif # KCONFIG_USEMODULE_L3G4200D +endmenu # L3G4200D driver diff --git a/drivers/l3gxxxx/Kconfig b/drivers/l3gxxxx/Kconfig index 971310c256b6..4567fc672b05 100644 --- a/drivers/l3gxxxx/Kconfig +++ b/drivers/l3gxxxx/Kconfig @@ -5,113 +5,8 @@ # directory for more details. # -config HAVE_L3GD20H - bool - select MODULE_L3GXXXX if MODULE_SAUL_DEFAULT - help - Indicates that L3GD20H sensor is present. - -config HAVE_L3GD20 - bool - select MODULE_L3GXXXX if MODULE_SAUL_DEFAULT - help - Indicates that L3GD20 sensor is present. - -config HAVE_L3G4200D_NG - bool - select MODULE_L3GXXXX if MODULE_SAUL_DEFAULT - help - Indicates that L3G4200D sensor is present. - -config HAVE_A3G4250D - bool - select MODULE_L3GXXXX if MODULE_SAUL_DEFAULT - help - Indicates that A3G4250D sensor is present. - -config HAVE_I3G4250D - bool - select MODULE_L3GXXXX if MODULE_SAUL_DEFAULT - help - Indicates that A3G4250D sensor is present. - -config HAVE_L3GXXXX_I2C - bool - -config HAVE_L3GXXXX_SPI - bool - -menuconfig MODULE_L3GXXXX - bool "L3GXXX 3-axis gyroscope sensor" - depends on TEST_KCONFIG - help - Driver for ST L3GXXXX 3-axis gyroscope sensor family. - The driver supports L3GD20H, L3GD20, L3G4200D, I3G4250D and A3G4250D. - -if MODULE_L3GXXXX - -menu "Sensor variants used" - - config MODULE_L3GD20H - bool "L3GD20H" - default y if HAVE_L3GD20H - default y if !MODULE_L3GD20 && !MODULE_L3G4200D_NG && !MODULE_A3G4250D && !MODULE_I3G4250D - - help - Enables the support for L3GD20H. +if USEMODULE_L3GXXXX - config MODULE_L3GD20 - bool "L3GD20" - default y if HAVE_L3GD20 - help - Enables the support for L3GD20. - - config MODULE_L3G4200D_NG - bool "L3G4200D" - default y if HAVE_L3G4200D_NG - help - Enables the support for L3G4200D. - - config MODULE_A3G4250D - bool "A3G4250D" - default y if HAVE_A3G4250D - help - Enables the support for A3G4250D. - - config MODULE_I3G4250D - bool "I3G4250D" - default y if HAVE_I3G4250D - help - Enables the support for I3G4250D. - -endmenu - -choice - bool "Device interface" - default MODULE_L3GXXXX_I2C if HAVE_L3GXXXX_I2C - default MODULE_L3GXXXX_SPI if HAVE_L3GXXXX_SPI - help - The device can be connected via I2C or SPI, select the right one. - -config MODULE_L3GXXXX_I2C - bool "I2C" - depends on HAS_PERIPH_I2C - select MODULE_PERIPH_I2C - -config MODULE_L3GXXXX_SPI - bool "SPI" - depends on HAS_PERIPH_SPI - depends on HAS_PERIPH_GPIO - select MODULE_PERIPH_SPI - select MODULE_PERIPH_GPIO - -endchoice - -config MODULE_L3GXXXX_LOW_ODR - bool "Support of low output data rates" - depends on MODULE_L3GD20H - help - Low data rates are only supported on L3GD20H. choice bool "Output data rate (ODR)" @@ -122,45 +17,45 @@ choice an the cutoff frequency of the LPF2 filter. The cutoff frequency of LPF1 is fix for a given output data rate. -config L3GXXXX_ODR_100_12 - bool "High ODR 100 Hz, LPF2 cutoff 12.5 Hz (LPF1 cutoff 32 Hz)" -config L3GXXXX_ODR_100_25 - bool "High ODR 100 Hz, LPF2 cutoff 25 Hz (LPF1 cutoff 32 Hz)" -config L3GXXXX_ODR_200_12 - bool "High ODR 200 Hz, LPF1 cutoff 63.3 Hz, LPF2 cutoff 12.5 Hz" -config L3GXXXX_ODR_200_25 - bool "High ODR 200 Hz, LPF1 cutoff 63.3 Hz, LPF2 cutoff 25 Hz" -config L3GXXXX_ODR_200_50 - bool "High ODR 200 Hz, LPF1 cutoff 63.3 Hz, LPF2 cutoff 50 Hz" -config L3GXXXX_ODR_200_70 - bool "High ODR 200 Hz, LPF1 cutoff 63.3 Hz, LPF2 cutoff 70 Hz" -config L3GXXXX_ODR_400_20 - bool "High ODR 400 Hz, LPF1 cutoff 128 Hz, LPF2 cutoff 20 Hz" -config L3GXXXX_ODR_400_25 - bool "High ODR 400 Hz, LPF1 cutoff 128 Hz, LPF2 cutoff 25 Hz" -config L3GXXXX_ODR_400_50 - bool "High ODR 400 Hz, LPF1 cutoff 128 Hz, LPF2 cutoff 50 Hz" -config L3GXXXX_ODR_400_110 - bool "High ODR 400 Hz, LPF1 cutoff 128 Hz, LPF2 cutoff 110 Hz" -config L3GXXXX_ODR_800_30 - bool "High ODR 800 Hz, LPF1 cutoff 211 Hz, LPF2 cutoff 30 Hz" -config L3GXXXX_ODR_800_35 - bool "High ODR 800 Hz, LPF1 cutoff 211 Hz, LPF2 cutoff 35 Hz" -config L3GXXXX_ODR_800_50 - bool "High ODR 800 Hz, LPF1 cutoff 211 Hz, LPF2 cutoff 50 Hz" -config L3GXXXX_ODR_800_100 - bool "High ODR 800 Hz, LPF1 cutoff 211 Hz, LPF2 cutoff 100 Hz" - -if MODULE_L3GXXXX_LOW_ODR - -config L3GXXXX_ODR_12 - bool "Low ODR 12.5 Hz, LPF1 cutoff 3.9 Hz, LPF2 not used" -config L3GXXXX_ODR_25 - bool "Low ODR 25 Hz, LPF1 cutoff 7.8 Hz, LPF2 not used" -config L3GXXXX_ODR_50 - bool "Low ODR 50 Hz, LPF1 cutoff 16 Hz, LPF2 cutoff 16.6 Hz" - -endif # MODULE_L3GXXXX_LOW_ODR + config L3GXXXX_ODR_100_12 + bool "High ODR 100 Hz, LPF2 cutoff 12.5 Hz (LPF1 cutoff 32 Hz)" + config L3GXXXX_ODR_100_25 + bool "High ODR 100 Hz, LPF2 cutoff 25 Hz (LPF1 cutoff 32 Hz)" + config L3GXXXX_ODR_200_12 + bool "High ODR 200 Hz, LPF1 cutoff 63.3 Hz, LPF2 cutoff 12.5 Hz" + config L3GXXXX_ODR_200_25 + bool "High ODR 200 Hz, LPF1 cutoff 63.3 Hz, LPF2 cutoff 25 Hz" + config L3GXXXX_ODR_200_50 + bool "High ODR 200 Hz, LPF1 cutoff 63.3 Hz, LPF2 cutoff 50 Hz" + config L3GXXXX_ODR_200_70 + bool "High ODR 200 Hz, LPF1 cutoff 63.3 Hz, LPF2 cutoff 70 Hz" + config L3GXXXX_ODR_400_20 + bool "High ODR 400 Hz, LPF1 cutoff 128 Hz, LPF2 cutoff 20 Hz" + config L3GXXXX_ODR_400_25 + bool "High ODR 400 Hz, LPF1 cutoff 128 Hz, LPF2 cutoff 25 Hz" + config L3GXXXX_ODR_400_50 + bool "High ODR 400 Hz, LPF1 cutoff 128 Hz, LPF2 cutoff 50 Hz" + config L3GXXXX_ODR_400_110 + bool "High ODR 400 Hz, LPF1 cutoff 128 Hz, LPF2 cutoff 110 Hz" + config L3GXXXX_ODR_800_30 + bool "High ODR 800 Hz, LPF1 cutoff 211 Hz, LPF2 cutoff 30 Hz" + config L3GXXXX_ODR_800_35 + bool "High ODR 800 Hz, LPF1 cutoff 211 Hz, LPF2 cutoff 35 Hz" + config L3GXXXX_ODR_800_50 + bool "High ODR 800 Hz, LPF1 cutoff 211 Hz, LPF2 cutoff 50 Hz" + config L3GXXXX_ODR_800_100 + bool "High ODR 800 Hz, LPF1 cutoff 211 Hz, LPF2 cutoff 100 Hz" + +if USEMODULE_L3GXXXX_LOW_ODR + + config L3GXXXX_ODR_12 + bool "Low ODR 12.5 Hz, LPF1 cutoff 3.9 Hz, LPF2 not used" + config L3GXXXX_ODR_25 + bool "Low ODR 25 Hz, LPF1 cutoff 7.8 Hz, LPF2 not used" + config L3GXXXX_ODR_50 + bool "Low ODR 50 Hz, LPF1 cutoff 16 Hz, LPF2 cutoff 16.6 Hz" + +endif # USEMODULE_L3GXXXX_LOW_ODR endchoice @@ -172,24 +67,24 @@ choice the range and resolution of the sensor's output data. The resolution of the output data is about Full Scale/INT16_MAX. -config L3GXXXX_SCALE_245_DPS - bool "±245 dps" - help - The typical sensitivity is 8.75 mdps. + config L3GXXXX_SCALE_245_DPS + bool "±245 dps" + help + The typical sensitivity is 8.75 mdps. -if !MODULE_A3G4250D +if !USEMODULE_A3G4250D -config L3GXXXX_SCALE_500_DPS - bool "±500 dps" - help - The Typical sensitivity is 17.5 mdps. + config L3GXXXX_SCALE_500_DPS + bool "±500 dps" + help + The Typical sensitivity is 17.5 mdps. -config L3GXXXX_SCALE_2000_DPS - bool "±2000 dps" - help - The typical sensitivity is 70 mdps. + config L3GXXXX_SCALE_2000_DPS + bool "±2000 dps" + help + The typical sensitivity is 70 mdps. -endif # !MODULE_A3G4250D +endif # !USEMODULE_A3G4250D endchoice @@ -209,17 +104,17 @@ choice sensor data used for interrupt generation if the LPF2 is enabled for interrupt generation. -config L3GXXXX_NO_FILTER - bool "HPF and LPF2 are not used" + config L3GXXXX_NO_FILTER + bool "HPF and LPF2 are not used" -config L3GXXXX_HPF_ONLY - bool "only HPF is used" + config L3GXXXX_HPF_ONLY + bool "only HPF is used" -config L3GXXXX_LPF2_ONLY - bool "only LPF2 used" + config L3GXXXX_LPF2_ONLY + bool "only LPF2 used" -config L3GXXXX_HPF_AND_LPF2 - bool "HPF and LPF2 are used" + config L3GXXXX_HPF_AND_LPF2 + bool "HPF and LPF2 are used" endchoice @@ -231,22 +126,22 @@ choice The high pass filter (HPF) can be used in different modes. Select the right one. -config L3GXXXX_HPF_NORMAL - bool "Normal mode" - help - In Normal mode, the HPF is reset by reading REFERENCE register. + config L3GXXXX_HPF_NORMAL + bool "Normal mode" + help + In Normal mode, the HPF is reset by reading REFERENCE register. -config L3GXXXX_HPF_REFERENCE - bool "Reference mode" - help - In Reference mode, the output data are the difference to the - value written to the REFERENCE register. + config L3GXXXX_HPF_REFERENCE + bool "Reference mode" + help + In Reference mode, the output data are the difference to the + value written to the REFERENCE register. -config L3GXXXX_HPF_AUTORESET - bool "Autoreset mode" - help - In Autoreset mode, the HPF is automatically reset when a configured - interrupt event occurs. + config L3GXXXX_HPF_AUTORESET + bool "Autoreset mode" + help + In Autoreset mode, the HPF is automatically reset when a configured + interrupt event occurs. endchoice @@ -262,13 +157,7 @@ config L3GXXXX_HPF_CUTOFF endif # L3GXXXX_HPF_ONLY || L3GXXXX_HPF_AND_LPF2 || L3GXXXX_INT1_HPF_ONLY || L3GXXXX_INT1_HPF_AND_LPF2 -config MODULE_L3GXXXX_FIFO - bool "Support for the 32 level FIFO" - help - The 32 level FIFO is used to collect a number of sensor - data samples before the data have to be fetched by the MCU. - -if MODULE_L3GXXXX_FIFO +if USEMODULE_L3GXXXX_FIFO choice bool "FIFO mode" @@ -278,45 +167,45 @@ choice data samples before the data have to be fetched by the MCU. Select the right mode of the FIFO. -config L3GXXXX_FIFO_MODE_BYPASS - bool "Bypass mode (FIFO is not used)" - help - The FIFO is not used. + config L3GXXXX_FIFO_MODE_BYPASS + bool "Bypass mode (FIFO is not used)" + help + The FIFO is not used. -config L3GXXXX_FIFO_MODE_FIFO - bool "FIFO mode" - help - Data samples are stored in the FIFO until it is full. + config L3GXXXX_FIFO_MODE_FIFO + bool "FIFO mode" + help + Data samples are stored in the FIFO until it is full. -config L3GXXXX_FIFO_MODE_STREAM - bool "Stream mode" - help - The FIFO is used as ring buffer and newest data samples are stored. - continuously + config L3GXXXX_FIFO_MODE_STREAM + bool "Stream mode" + help + The FIFO is used as ring buffer and newest data samples are stored. + continuously -config L3GXXXX_FIFO_MODE_DYNAMIC_STREAM - bool "Dynamic Stream mode" - help - Like the Stream mode, but differs in reading the first data sample - after emptying. + config L3GXXXX_FIFO_MODE_DYNAMIC_STREAM + bool "Dynamic Stream mode" + help + Like the Stream mode, but differs in reading the first data sample + after emptying. -config L3GXXXX_FIFO_MODE_STREAM_TO_FIFO - bool "Stream-to-FIFO mode" - help - The FIFO is used in stream mode until an event interrupt is triggered - and then switches to FIFO mode. + config L3GXXXX_FIFO_MODE_STREAM_TO_FIFO + bool "Stream-to-FIFO mode" + help + The FIFO is used in stream mode until an event interrupt is triggered + and then switches to FIFO mode. -config L3GXXXX_FIFO_MODE_BYPASS_TO_STREAM - bool "Bypass-to-Stream mode" - help - The FIFO is not used until an event interrupt is triggered - and then switches to Stream mode + config L3GXXXX_FIFO_MODE_BYPASS_TO_STREAM + bool "Bypass-to-Stream mode" + help + The FIFO is not used until an event interrupt is triggered + and then switches to Stream mode -config L3GXXXX_FIFO_MODE_BYPASS_TO_FIFO - bool "Bypass-to-FIFO mode" - help - The FIFO is not used until an event interrupt is triggered - and then switches to FIFO mode. + config L3GXXXX_FIFO_MODE_BYPASS_TO_FIFO + bool "Bypass-to-FIFO mode" + help + The FIFO is not used until an event interrupt is triggered + and then switches to FIFO mode. endchoice @@ -330,17 +219,9 @@ config L3GXXXX_FIFO_WATERMARK is set and an interrupt can be triggered on signal INT2/DRDY if data ready and FIFO status interrupts is enabled. -endif # MODULE_L3GXXXX_FIFO - -config MODULE_L3GXXXX_IRQ_EVENT - bool "Support for event interrupts on signal INT1" - depends on HAS_PERIPH_GPIO_IRQ - select MODULE_PERIPH_GPIO_IRQ - help - Event interrupts on signal INT2/DRDY can be used to recognize - axes movements or wake-up. +endif # USEMODULE_L3GXXXX_FIFO -if MODULE_L3GXXXX_IRQ_EVENT +if USEMODULE_L3GXXXX_IRQ_EVENT config L3GXXXX_INT1_X_THRESH int "Threshold for X axis events" @@ -411,17 +292,17 @@ choice for interrupt generation, it is also active for filtering the output data if the LPF2 is enabled for output data. -config L3GXXXX_INT1_NO_FILTER - bool "HPF and LPF2 are not used" + config L3GXXXX_INT1_NO_FILTER + bool "HPF and LPF2 are not used" -config L3GXXXX_INT1_HPF_ONLY - bool "only HPF is used" + config L3GXXXX_INT1_HPF_ONLY + bool "only HPF is used" -config L3GXXXX_INT1_LPF2_ONLY - bool "only LPF2 used" + config L3GXXXX_INT1_LPF2_ONLY + bool "only LPF2 used" -config L3GXXXX_INT1_HPF_AND_LPF2 - bool "HPF and LPF2 are used" + config L3GXXXX_INT1_HPF_AND_LPF2 + bool "HPF and LPF2 are used" endchoice @@ -439,21 +320,6 @@ config L3GXXXX_INT1_LATCH If enabled, the interrupt is latched until the interrupt source has been read. -endif # MODULE_L3GXXXX_IRQ_EVENT - -config MODULE_L3GXXXX_IRQ_DATA - bool "Support for data interrupts on signal INT2/DRDY (Data Ready and FIFO status)" - depends on HAS_PERIPH_GPIO_IRQ - select MODULE_PERIPH_GPIO_IRQ - help - Data ready and FIFO status interrupts on signal INT2/DRDY - can be used to determine when data are ready to be read or when the - status of the FIFO changes. - -config MODULE_L3GXXXX_SLEEP - bool "Support for sleep and wake-up function" - -config MODULE_L3GXXXX_CONFIG - bool "Support for configuration of the sensor at runtime" +endif # USEMODULE_L3GXXXX_IRQ_EVENT -endif # MODULE_L3GXXXX +endif # USEMODULE_L3GXXXX diff --git a/drivers/lc709203f/Kconfig b/drivers/lc709203f/Kconfig deleted file mode 100644 index b2fb0ac5d95c..000000000000 --- a/drivers/lc709203f/Kconfig +++ /dev/null @@ -1,21 +0,0 @@ -# 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_LC709203F - bool "LC709203F Battery Fuel Gauge" - depends on HAS_PERIPH_I2C - depends on HAS_PERIPH_GPIO - depends on HAS_PERIPH_GPIO_IRQ - depends on TEST_KCONFIG - select MODULE_PERIPH_I2C - select MODULE_PERIPH_GPIO - select MODULE_PERIPH_GPIO_IRQ - -config HAVE_LC709203F - bool - help - Indicates that a LC709203F Battery Fuel Gauge is present. diff --git a/drivers/lcd/Kconfig b/drivers/lcd/Kconfig index 64ce2a557108..551fe9645f34 100644 --- a/drivers/lcd/Kconfig +++ b/drivers/lcd/Kconfig @@ -5,80 +5,8 @@ # directory for more details. # -config MODULE_LCD - bool "LCD display driver" - depends on HAS_PERIPH_GPIO - depends on TEST_KCONFIG - select MODULE_PERIPH_GPIO - -if MODULE_LCD - -config MODULE_LCD_MULTI_CNTRL - bool - help - The controller-specific driver supports multiple controller variants. - -config MODULE_LCD_SPI - bool - default y if !MODULE_LCD_PARALLEL && !MODULE_LCD_PARALLEL_16BIT - default y if HAVE_LCD_SPI - depends on HAS_PERIPH_SPI - select MODULE_PERIPH_SPI - help - SPI serial interface is used - -config MODULE_LCD_PARALLEL - bool - default y if HAVE_LCD_PARALLEL || HAVE_LCD_PARALLEL_16BIT - help - MCU 8080 8-/16-bit parallel interface is used - -config MODULE_LCD_PARALLEL_16BIT - bool - default y if HAVE_LCD_PARALLEL_16BIT - help - MCU 8080 16-bit paralell interface is used - -config MODULE_LCD_PARALLEL_LL_MCU - bool - default y if HAVE_LCD_PARALLEL_LL_MCU - depends on MODULE_LCD_PARALLEL - help - MCU 8080 8-/16-bit low-level parallel interface is provided by the MCU. - -endif - -config HAVE_LCD_SPI - bool - help - Indicates that a display with MCU 8080 8-/16-bit parallel interface - is present - -config HAVE_LCD_PARALLEL - bool - help - Indicates that a display with MCU 8080 8-/16-bit parallel interface - is present - -config HAVE_LCD_PARALLEL_16BIT - bool - help - Indicates that a display with MCU 8080 16-bit parallel interface - is present - -config HAVE_LCD_PARALLEL_LL_MCU - bool - help - Indicates that the MCU provides the MCU 8080 8-/16-bit low-level - parallel interface implementation. - -menuconfig KCONFIG_USEMODULE_LCD - bool "Configure LCD driver" +menu "LCD" depends on USEMODULE_LCD - help - Configure the LCD display driver using Kconfig. - -if KCONFIG_USEMODULE_LCD config LCD_LE_MODE bool "Enable little endian to big endian conversion" @@ -88,4 +16,4 @@ config LCD_LE_MODE Enabling this option allows for little endian colors. Enabling this however will slow down the driver as it cannot use DMA anymore. -endif # KCONFIG_USEMODULE_LCD +endmenu # LCD diff --git a/drivers/lis2dh12/Kconfig b/drivers/lis2dh12/Kconfig deleted file mode 100644 index 24b7663de76d..000000000000 --- a/drivers/lis2dh12/Kconfig +++ /dev/null @@ -1,65 +0,0 @@ -# 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_LIS2DH12 - bool - prompt "LIS2DH12 Accelerometer" if !(MODULE_SAUL_DEFAULT && HAVE_LIS2DH12) - default (MODULE_SAUL_DEFAULT && HAVE_LIS2DH12) - depends on TEST_KCONFIG - -if MODULE_LIS2DH12 - -choice - bool "Device interface" - default MODULE_LIS2DH12_I2C if HAVE_LIS2DH12_I2C - default MODULE_LIS2DH12_SPI if HAVE_LIS2DH12_SPI - -config MODULE_LIS2DH12_I2C - bool "I2C" - depends on HAS_PERIPH_I2C - select MODULE_PERIPH_I2C - -config MODULE_LIS2DH12_SPI - bool "SPI" - depends on HAS_PERIPH_GPIO - depends on HAS_PERIPH_SPI - select MODULE_PERIPH_SPI - select MODULE_PERIPH_GPIO - -endchoice # Device interface - -config MODULE_LIS2DH12_INT - bool "Interrupt lines support" - depends on HAS_PERIPH_GPIO_IRQ - select MODULE_PERIPH_GPIO_IRQ - default HAVE_LIS2DH12_INT - -endif # MODULE_LIS2DH12 - -config HAVE_LIS2DH12 - bool - help - Indicates that a LIS2DH12 Accelerometer is present. - -config HAVE_LIS2DH12_I2C - bool - select HAVE_LIS2DH12 - help - Indicates that a LIS2DH12 Accelerometer on the I2C bus is present. - -config HAVE_LIS2DH12_SPI - bool - select HAVE_LIS2DH12 - help - Indicates that a LIS2DH12 Accelerometer on the SPI bus is present. - -config HAVE_LIS2DH12_INT - bool - select HAVE_LIS2DH12 - help - Indicates that a LIS2DH12 Accelerometer is present with the interrupt - pin wired. diff --git a/drivers/lis3dh/Kconfig b/drivers/lis3dh/Kconfig deleted file mode 100644 index 2a95669df440..000000000000 --- a/drivers/lis3dh/Kconfig +++ /dev/null @@ -1,20 +0,0 @@ -# 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_LIS3DH - bool "LIS3DH accelerometer" - depends on HAS_PERIPH_GPIO - depends on HAS_PERIPH_SPI - depends on TEST_KCONFIG - select MODULE_PERIPH_GPIO - select MODULE_PERIPH_SPI - -config HAVE_LIS3DH - bool - select MODULE_LIS3DH if MODULE_SAUL_DEFAULT - help - Indicates that a lis3dh accelerometer is present. diff --git a/drivers/lis3mdl/Kconfig b/drivers/lis3mdl/Kconfig deleted file mode 100644 index 92dcb7e59443..000000000000 --- a/drivers/lis3mdl/Kconfig +++ /dev/null @@ -1,18 +0,0 @@ -# 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_LIS3MDL - bool "LIS3MDL 3-axis magnetometer" - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_PERIPH_I2C - -config HAVE_LIS3MDL - bool - select MODULE_LIS3MDL if MODULE_SAUL_DEFAULT - help - Indicates that a lismdl sensor is present. diff --git a/drivers/lm75/Kconfig b/drivers/lm75/Kconfig index 2abbc2b9f577..ca5ef6fa2d56 100644 --- a/drivers/lm75/Kconfig +++ b/drivers/lm75/Kconfig @@ -1,58 +1,5 @@ -menuconfig MODULE_LM75 - bool - prompt "LM75A/TMP1075 Temperatire Sensors" if !(MODULE_SAUL_DEFAULT && HAVE_LM75) - default y if (MODULE_SAUL_DEFAULT && HAVE_LM75) - depends on TEST_KCONFIG - depends on HAS_PERIPH_I2C - depends on HAS_PERIPH_GPIO - depends on HAS_PERIPH_GPIO_IRQ - select MODULE_PERIPH_I2C - select MODULE_PERIPH_GPIO - select MODULE_PERIPH_GPIO_IRQ - -if MODULE_LM75 - -choice - bool "sensor variant" - default MODULE_LM75A if HAVE_LM75A - default MODULE_TMP1075 if HAVE_TMP1075 - help - Only the LM75A and TMP1075 temperature sensors are supported at the time. - -config MODULE_LM75A - bool "LM75A temperature sensor" - -config MODULE_TMP1075 - bool "TMP1075 extended driver" - -endchoice - -endif # MODULE_LM75 - -config HAVE_LM75 - bool - help - Indicates that a lm75a/tmp1075 sensor is present. - -config HAVE_LM75A - bool - select HAVE_LM75 - help - Indicates that a lm75a sensor is present. - -config HAVE_TMP1075 - bool - select HAVE_LM75 - help - Indicates that a tmp1075 sensor is present. - -menuconfig KCONFIG_USEMODULE_LM75 - bool "Configure LM75 driver" +menu "LM75 driver" depends on USEMODULE_LM75 - help - Configure the LM75 driver using Kconfig. - -if KCONFIG_USEMODULE_LM75 config LM75_I2C_ADDR hex "Default I2C Address" @@ -139,7 +86,7 @@ config FAULT_6 endchoice -if MODULE_TMP1075 +if USEMODULE_TMP1075 choice bool "Conversion rate" @@ -162,6 +109,6 @@ config TMP1075_CONV_RATE_REG_220 endchoice -endif # MODULE_TMP1075 +endif # USEMODULE_TMP1075 -endif # KCONFIG_USEMODULE_LM75 +endmenu # LM75 driver diff --git a/drivers/lpd8808/Kconfig b/drivers/lpd8808/Kconfig deleted file mode 100644 index 3c75840564c6..000000000000 --- a/drivers/lpd8808/Kconfig +++ /dev/null @@ -1,18 +0,0 @@ -# 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_LPD8808 - bool "LPD8808 based LED Strip" - depends on HAS_PERIPH_GPIO - depends on TEST_KCONFIG - select MODULE_PERIPH_GPIO - select MODULE_COLOR - -config HAVE_LPD8808 - bool - help - Indicates that a LPD8808 based LED Strip is present. diff --git a/drivers/lpsxxx/Kconfig b/drivers/lpsxxx/Kconfig index d4eaaddb80d2..438a14aba0de 100644 --- a/drivers/lpsxxx/Kconfig +++ b/drivers/lpsxxx/Kconfig @@ -6,56 +6,8 @@ # directory for more details. # -menuconfig MODULE_LPSXXX - bool - prompt "LPSXXX Pressure Sensors" if !(MODULE_SAUL_DEFAULT && HAVE_LPSXXX) - default y if (MODULE_SAUL_DEFAULT && HAVE_LPSXXX) - depends on TEST_KCONFIG - depends on HAS_PERIPH_I2C - select MODULE_PERIPH_I2C - help - Device driver for the LPSXXX pressure sensor family - (LPS331AP/LPS25HB/LPS22HB/LPS22HH/LPS22CH). Select a model. - -if MODULE_LPSXXX - -choice - bool "sensor variant" - default MODULE_LPS331AP if HAVE_LPS331AP - default MODULE_LPS22HB if HAVE_LPS22HB - default MODULE_LPS22HH if HAVE_LPS22HH - default MODULE_LPS25HB if HAVE_LPS25HB - default MODULE_LPS22CH if HAVE_LPS22CH - help - Device driver for the LPSXXX pressure sensor family - (LPS331AP/LPS25HB/LPS22HB/LPS22HH/LPS22CH). Select a model. - -config MODULE_LPS331AP - bool "LPS331AP" - -config MODULE_LPS22HB - bool "LPS22HB" - -config MODULE_LPS22HH - bool "LPS22HH" - -config MODULE_LPS25HB - bool "LPS25HB" - -config MODULE_LPS22CH - bool "LPS22CH" - -endchoice - -endif # MODULE_LPSXXX - -menuconfig KCONFIG_USEMODULE_LPSXXX - bool "Configure LPSXXX driver" +menu "LPSXXX driver" depends on USEMODULE_LPSXXX - help - Configure the LPSXXX driver using Kconfig. - -if KCONFIG_USEMODULE_LPSXXX config LPSXXX_DEFAULT_ADDRESS hex "Default I2C address" @@ -67,37 +19,4 @@ config LPSXXX_DEFAULT_ADDRESS information refer to the section 'I2C operation' in the datasheet. -endif # KCONFIG_USEMODULE_LPSXXX - -config HAVE_LPSXXX - bool - -config HAVE_LPS331AP - bool - select HAVE_LPSXXX - help - Indicates that a LPS331AP sensor is present. - -config HAVE_LPS22HB - bool - select HAVE_LPSXXX - help - Indicates that a LPS22HB sensor is present. - -config HAVE_LPS22HH - bool - select HAVE_LPSXXX - help - Indicates that a LPS22HH sensor is present. - -config HAVE_LPS25HB - bool - select HAVE_LPSXXX - help - Indicates that a LPS25HB sensor is present. - -config HAVE_LPS22CH - bool - select HAVE_LPSXXX - help - Indicates that a LPS22CH sensor is present. +endmenu # LPSXXX driver diff --git a/drivers/lsm303agr/Kconfig b/drivers/lsm303agr/Kconfig deleted file mode 100644 index 089158ac31b9..000000000000 --- a/drivers/lsm303agr/Kconfig +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright (c) 2022 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_LSM303AGR - bool - prompt "LSM303AGR 3D accelerometer/magnetometer" if !(MODULE_SAUL_DEFAULT && HAVE_LSM303AGR) - default y if (MODULE_SAUL_DEFAULT && HAVE_LSM303AGR) - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_RUST_RIOTMODULES - select MODULE_PERIPH_I2C - -config HAVE_LSM303AGR - bool - help - Indicates that a lsm303agr sensor is present. diff --git a/drivers/lsm303dlhc/Kconfig b/drivers/lsm303dlhc/Kconfig deleted file mode 100644 index 83d70b8d2b37..000000000000 --- a/drivers/lsm303dlhc/Kconfig +++ /dev/null @@ -1,19 +0,0 @@ -# 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_LSM303DLHC - bool - prompt "LSM303DLHC 3D accelerometer/magnetometer" if !(MODULE_SAUL_DEFAULT && HAVE_LSM303DLHC) - default y if (MODULE_SAUL_DEFAULT && HAVE_LSM303DLHC) - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_PERIPH_I2C - -config HAVE_LSM303DLHC - bool - help - Indicates that a lsm303dlhc sensor is present. diff --git a/drivers/lsm6dsxx/Kconfig b/drivers/lsm6dsxx/Kconfig deleted file mode 100644 index 583caf887898..000000000000 --- a/drivers/lsm6dsxx/Kconfig +++ /dev/null @@ -1,21 +0,0 @@ -# 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_LSM6DSXX - bool - prompt "LSM6DSXX 3D accelerometer/gyroscope" if !(MODULE_SAUL_DEFAULT && HAVE_LSM6DSXX) - default y if (MODULE_SAUL_DEFAULT && HAVE_LSM6DSXX) - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_PERIPH_I2C - select MODULE_ZTIMER - select MODULE_ZTIMER_MSEC - -config HAVE_LSM6DSXX - bool - help - Indicates that a lsm6dsxx sensor is present. diff --git a/drivers/lsm6dsxx/include/lsm6dsxx_internal.h b/drivers/lsm6dsxx/include/lsm6dsxx_internal.h index 09997e2f0597..1685335f9219 100644 --- a/drivers/lsm6dsxx/include/lsm6dsxx_internal.h +++ b/drivers/lsm6dsxx/include/lsm6dsxx_internal.h @@ -93,70 +93,64 @@ extern "C" { #define LSM6DSXX_REG_MD2_CFG (0x5F) /** @} */ -#if MODULE_LSM6DSL /** - * @name LSM6DSL specific registers not used in implemnetation + * @name LSM6DSL and LSM6DS3TR-C specific registers * @{ */ -#define LSM6DSXX_REG_SENSOR_SYNC_TIME_FRAME (0x04) -#define LSM6DSXX_REG_SENSOR_SYC_RES_RATIO (0x05) -#define LSM6DSXX_REG_DRDY_PULSE_CFG_G (0x0B) -#define LSM6DSXX_REG_MASTER_CONFIG (0x1A) -#define LSM6DSXX_REG_SENSORHUB1_REG (0x2E) -#define LSM6DSXX_REG_SENSORHUB2_REG (0x2F) -#define LSM6DSXX_REG_SENSORHUB3_REG (0x30) -#define LSM6DSXX_REG_SENSORHUB4_REG (0x31) -#define LSM6DSXX_REG_SENSORHUB5_REG (0x32) -#define LSM6DSXX_REG_SENSORHUB6_REG (0x33) -#define LSM6DSXX_REG_SENSORHUB7_REG (0x34) -#define LSM6DSXX_REG_SENSORHUB8_REG (0x35) -#define LSM6DSXX_REG_SENSORHUB9_REG (0x36) -#define LSM6DSXX_REG_SENSORHUB10_REG (0x37) -#define LSM6DSXX_REG_SENSORHUB11_REG (0x38) -#define LSM6DSXX_REG_SENSORHUB12_REG (0x39) -#define LSM6DSXX_REG_SENSORHUB13_REG (0x4D) -#define LSM6DSXX_REG_SENSORHUB14_REG (0x4E) -#define LSM6DSXX_REG_SENSORHUB15_REG (0x4F) -#define LSM6DSXX_REG_SENSORHUB16_REG (0x50) -#define LSM6DSXX_REG_SENSORHUB17_REG (0x51) -#define LSM6DSXX_REG_SENSORHUB18_REG (0x52) -#define LSM6DSXX_REG_FUNC_SRC_2 (0x54) -#define LSM6DSXX_REG_WRIST_TILT_IA (0x55) -#define LSM6DSXX_REG_MASTER_CMD_CODE (0x60) -#define LSM6DSXX_REG_SENS_SYNC_SPI_ERR_CODE (0x61) -#define LSM6DSXX_REG_OUT_MAG_RAW_X_L (0x66) -#define LSM6DSXX_REG_OUT_MAG_RAW_X_H (0x67) -#define LSM6DSXX_REG_OUT_MAG_RAW_Y_L (0x68) -#define LSM6DSXX_REG_OUT_MAG_RAW_Y_H (0x69) -#define LSM6DSXX_REG_OUT_MAG_RAW_Z_L (0x6A) -#define LSM6DSXX_REG_OUT_MAG_RAW_Z_H (0x6B) -#define LSM6DSXX_REG_X_OFS_USR (0x73) -#define LSM6DSXX_REG_Y_OFS_USR (0x74) -#define LSM6DSXX_REG_Z_OFS_USR (0x75) +#define LSM6DSL_REG_SENSOR_SYNC_TIME_FRAME (0x04) +#define LSM6DSL_REG_SENSOR_SYC_RES_RATIO (0x05) +#define LSM6DSL_REG_DRDY_PULSE_CFG_G (0x0B) +#define LSM6DSL_REG_MASTER_CONFIG (0x1A) +#define LSM6DSL_REG_SENSORHUB1_REG (0x2E) +#define LSM6DSL_REG_SENSORHUB2_REG (0x2F) +#define LSM6DSL_REG_SENSORHUB3_REG (0x30) +#define LSM6DSL_REG_SENSORHUB4_REG (0x31) +#define LSM6DSL_REG_SENSORHUB5_REG (0x32) +#define LSM6DSL_REG_SENSORHUB6_REG (0x33) +#define LSM6DSL_REG_SENSORHUB7_REG (0x34) +#define LSM6DSL_REG_SENSORHUB8_REG (0x35) +#define LSM6DSL_REG_SENSORHUB9_REG (0x36) +#define LSM6DSL_REG_SENSORHUB10_REG (0x37) +#define LSM6DSL_REG_SENSORHUB11_REG (0x38) +#define LSM6DSL_REG_SENSORHUB12_REG (0x39) +#define LSM6DSL_REG_SENSORHUB13_REG (0x4D) +#define LSM6DSL_REG_SENSORHUB14_REG (0x4E) +#define LSM6DSL_REG_SENSORHUB15_REG (0x4F) +#define LSM6DSL_REG_SENSORHUB16_REG (0x50) +#define LSM6DSL_REG_SENSORHUB17_REG (0x51) +#define LSM6DSL_REG_SENSORHUB18_REG (0x52) +#define LSM6DSL_REG_FUNC_SRC_2 (0x54) +#define LSM6DSL_REG_WRIST_TILT_IA (0x55) +#define LSM6DSL_REG_MASTER_CMD_CODE (0x60) +#define LSM6DSL_REG_SENS_SYNC_SPI_ERR_CODE (0x61) +#define LSM6DSL_REG_OUT_MAG_RAW_X_L (0x66) +#define LSM6DSL_REG_OUT_MAG_RAW_X_H (0x67) +#define LSM6DSL_REG_OUT_MAG_RAW_Y_L (0x68) +#define LSM6DSL_REG_OUT_MAG_RAW_Y_H (0x69) +#define LSM6DSL_REG_OUT_MAG_RAW_Z_L (0x6A) +#define LSM6DSL_REG_OUT_MAG_RAW_Z_H (0x6B) +#define LSM6DSL_REG_X_OFS_USR (0x73) +#define LSM6DSL_REG_Y_OFS_USR (0x74) +#define LSM6DSL_REG_Z_OFS_USR (0x75) /** @} */ /** - * @brief WHO_AM_I value for the LSM6DSL - */ -#define LSM6DSXX_WHO_AM_I (0b01101010) - - - -#elif MODULE_LSM6DS33 -/** - * @name LSM6DS33 specific registers not used in implementation + * @name LSM6DS33 specific registers * @{ */ -#define LSM6DSXX_REG_ORIENT_CFG_G (0x0B) +#define LSM6DS33_REG_ORIENT_CFG_G (0x0B) /** @} */ /** * @brief WHO_AM_I value for the LSM6DS33 */ -#define LSM6DSXX_WHO_AM_I (0b01101001) +#define LSM6DS33_WHO_AM_I (0b01101001) -#endif +/** + * @brief WHO_AM_I value for the LSM6DSL and LSM6DS3TR-C + */ +#define LSM6DSL_WHO_AM_I (0b01101010) /** * @name CTRL_x registers @@ -183,7 +177,7 @@ extern "C" { /** * @brief Offset for temperature calculation */ -#define LSM6DSXX_TEMP_OFFSET (0x1900) +#define LSM6DSXX_TEMP_OFFSET (25) /** * @brief Reboot wait interval in ms (15ms) diff --git a/drivers/lsm6dsxx/lsm6dsxx.c b/drivers/lsm6dsxx/lsm6dsxx.c index f96c0d7c9606..0c1c5ffe25b2 100644 --- a/drivers/lsm6dsxx/lsm6dsxx.c +++ b/drivers/lsm6dsxx/lsm6dsxx.c @@ -71,7 +71,13 @@ int lsm6dsxx_init(lsm6dsxx_t *dev, const lsm6dsxx_params_t *params) return -LSM6DSXX_ERROR_BUS; } - if (tmp != LSM6DSXX_WHO_AM_I) { + if (tmp == LSM6DS33_WHO_AM_I) { + dev->temperature_scaling_factor = 4; + } + else if (tmp == LSM6DSL_WHO_AM_I) { + dev->temperature_scaling_factor = 8; + } + else { DEBUG("[ERROR] lsm6dsxx_init: WHO_AM_I\n"); return -LSM6DSXX_ERROR_DEV; } @@ -192,8 +198,8 @@ int lsm6dsxx_read_temp(const lsm6dsxx_t *dev, int16_t *data) traw |= (uint16_t)tmp << 8; i2c_release(BUS); /* convert temperature to degC x 100 */ - traw += LSM6DSXX_TEMP_OFFSET; - *data = (int16_t)(((int32_t)traw * 100) / 256); + traw += LSM6DSXX_TEMP_OFFSET << dev->temperature_scaling_factor; + *data = (int16_t)(((int32_t)traw * 100) >> dev->temperature_scaling_factor); return LSM6DSXX_OK; } diff --git a/drivers/ltc4150/Kconfig b/drivers/ltc4150/Kconfig deleted file mode 100644 index 5ddb9d4590d5..000000000000 --- a/drivers/ltc4150/Kconfig +++ /dev/null @@ -1,24 +0,0 @@ -# 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_LTC4150 - bool "LTC4150 coulomb 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 ZTIMER64_USEC - help - Driver for the Linear Tech LTC4150 Coulomb Counter (a.k.a. battery - gauge sensor or power consumption sensor). - -config HAVE_LTC4150 - bool - select MODULE_LTC4150 if MODULE_SAUL_DEFAULT - help - Indicates that an ltc4150 coulomb counter is present. diff --git a/drivers/mag3110/Kconfig b/drivers/mag3110/Kconfig index 18ea141949aa..8c1e8ba558ba 100644 --- a/drivers/mag3110/Kconfig +++ b/drivers/mag3110/Kconfig @@ -6,25 +6,8 @@ # directory for more details. # -config MODULE_MAG3110 - bool "MAG3110 3-Axis Digital Magnetometer" - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_PERIPH_I2C - -config HAVE_MAG3110 - bool - select MODULE_MAG3110 if MODULE_SAUL_DEFAULT - help - Indicates that a mag3110 magnetometer is present. - -menuconfig KCONFIG_USEMODULE_MAG3110 - bool "Configure MAG3110 driver" +menu "MAG3110 driver" depends on USEMODULE_MAG3110 - help - Configure the MAG3110 driver using Kconfig. - -if KCONFIG_USEMODULE_MAG3110 config MAG3110_I2C_ADDRESS hex "I2C default address" @@ -34,4 +17,4 @@ config MAG3110_I2C_ADDRESS The address depends on part number of MAG3110. For more information refer to the datasheet. -endif # KCONFIG_USEMODULE_MAG3110 +endmenu # MAG3110 driver diff --git a/drivers/matrix_keypad/Kconfig b/drivers/matrix_keypad/Kconfig index 5f8357ae033b..499bc82de14a 100644 --- a/drivers/matrix_keypad/Kconfig +++ b/drivers/matrix_keypad/Kconfig @@ -4,13 +4,7 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. -menuconfig MODULE_MATRIX_KEYPAD - bool "Matrix Keypad" - depends on TEST_KCONFIG - depends on HAS_PERIPH_GPIO - select MODULE_PERIPH_GPIO - -if MODULE_MATRIX_KEYPAD +if USEMODULE_MATRIX_KEYPAD config MATRIX_KEYPAD_NUM_ROWS int "Number of rows on the matrix keypad" @@ -39,9 +33,4 @@ config MATRIX_KEYPAD_ROWS_USE_OPEN_DRAIN using matrix keypad modules without diodes in the switches. When diodes are installed with the switches this can safely be set off. -endif # MODULE_MATRIX_KEYPAD - -config HAVE_MATRIX_KEYPAD - bool - help - Indicates that a matrix-style keypad is present. +endif # USEMODULE_MATRIX_KEYPAD diff --git a/drivers/mcp2515/Kconfig b/drivers/mcp2515/Kconfig deleted file mode 100644 index a3874d0d3f24..000000000000 --- a/drivers/mcp2515/Kconfig +++ /dev/null @@ -1,22 +0,0 @@ -# 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_MCP2515 - bool "MCP2515 CAN controller" - 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 ZTIMER_USEC - -config HAVE_MCP2515 - bool - help - Indicates that a MCP2515 CAN controller is present. diff --git a/drivers/mcp47xx/Kconfig b/drivers/mcp47xx/Kconfig deleted file mode 100644 index cce4ad076e79..000000000000 --- a/drivers/mcp47xx/Kconfig +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2021 Gunar Schorcht -# -# 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_MCP47XX - bool "MCP47xx DAC with I2C interface" - depends on HAS_PERIPH_I2C - select MODULE_PERIPH_I2C - help - Driver for Microchip MCP47xx DAC devices with I2C interfaces. The - driver supports MCP4706, MCP4716, MCP4725, MCP4726 and MCP4728. diff --git a/drivers/mfrc522/Kconfig b/drivers/mfrc522/Kconfig deleted file mode 100644 index da37cff479fd..000000000000 --- a/drivers/mfrc522/Kconfig +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright (c) 2022 Freie Universität Berlin -# -# 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_MFRC522 - bool "MFRC522 RFID controller" - depends on HAS_PERIPH_GPIO - depends on HAS_PERIPH_SPI - depends on TEST_KCONFIG - select MODULE_PERIPH_GPIO - select MODULE_PERIPH_SPI - select MODULE_ZTIMER - select MODULE_ZTIMER_USEC - select MODULE_ZTIMER_MSEC - help - Device driver for the NXP MFRC522 RFID controller diff --git a/drivers/mhz19/Kconfig b/drivers/mhz19/Kconfig deleted file mode 100644 index 1bd2970e5ea2..000000000000 --- a/drivers/mhz19/Kconfig +++ /dev/null @@ -1,45 +0,0 @@ -# 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_MHZ19 - bool - prompt "MH-Z19 CO2 sensor" if !(MODULE_SAUL_DEFAULT && HAVE_MHZ19) - default (MODULE_SAUL_DEFAULT && HAVE_MHZ19) - depends on TEST_KCONFIG - select MODULE_ZTIMER - select MODULE_ZTIMER_MSEC - -if MODULE_MHZ19 - -config MODULE_MHZ19_PWM - bool "MH-Z19 over PWM" - default HAVE_MHZ19_PWM - depends on HAS_PERIPH_GPIO - select MODULE_PERIPH_GPIO - -config MODULE_MHZ19_UART - bool "MH-Z19 over UART" - default HAVE_MHZ19_UART - depends on HAS_PERIPH_UART - select MODULE_PERIPH_UART - -endif # MODULE_MHZ19 - -config HAVE_MHZ19 - bool - help - Indicates that a MH-Z19 CO2 sensor is present. - -config HAVE_MHZ19_PWM - bool - help - Indicates that a MH-Z19 CO2 sensor is present on the pwm. - -config HAVE_MHZ19_UART - bool - help - Indicates that a MH-Z19 CO2 sensor is present on the uart. diff --git a/drivers/mma7660/Kconfig b/drivers/mma7660/Kconfig deleted file mode 100644 index a41b293807b7..000000000000 --- a/drivers/mma7660/Kconfig +++ /dev/null @@ -1,18 +0,0 @@ -# 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_MMA7660 - bool "MMA7660 Accelerometer" - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_PERIPH_I2C - -config HAVE_MMA7660 - bool - select MODULE_MMA7660 if MODULE_SAUL_DEFAULT - help - Indicates that a MMA7660 Accelerometer is present. diff --git a/drivers/mma8x5x/Kconfig b/drivers/mma8x5x/Kconfig index bcae9ef0599f..989921a72484 100644 --- a/drivers/mma8x5x/Kconfig +++ b/drivers/mma8x5x/Kconfig @@ -6,25 +6,8 @@ # directory for more details. # -config MODULE_MMA8X5X - bool "MMA8x5x Accelerometer" - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_PERIPH_I2C - -config HAVE_MMA8X5X - bool - select MODULE_MMA8X5X if MODULE_SAUL_DEFAULT - help - Indicates that an mma8x5x accelerometer is present. - -menuconfig KCONFIG_USEMODULE_MMA8X5X - bool "Configure MMA8X5X driver" +menu "MMA8X5X driver" depends on USEMODULE_MMA8X5X - help - Configure the MMA8X5X driver using Kconfig. - -if KCONFIG_USEMODULE_MMA8X5X config MMA8X5X_I2C_ADDRESS hex "Default I2C address" @@ -37,10 +20,4 @@ config MMA8X5X_I2C_ADDRESS (MMA8451Q/MMA8452Q/MMA8453Q) Default value corresponds to SA0 connected to VCC. -endif # KCONFIG_USEMODULE_MMA8X5X - -config HAVE_MMA8X5X - bool - select MODULE_MMA8X5X if MODULE_SAUL_DEFAULT - help - Indicates that a MMA8x5x is present +endmenu # MMA8X5X driver diff --git a/drivers/motor_driver/Kconfig b/drivers/motor_driver/Kconfig index 4a0e4c987fb6..15e5ab04ebbb 100644 --- a/drivers/motor_driver/Kconfig +++ b/drivers/motor_driver/Kconfig @@ -6,20 +6,8 @@ # directory for more details. # -config MODULE_MOTOR_DRIVER - bool "High-level driver for DC motors" - depends on HAS_PERIPH_PWM - depends on HAS_MOTOR_DRIVER - depends on TEST_KCONFIG - select MODULE_PERIPH_PWM - -menuconfig KCONFIG_USEMODULE_MOTOR_DRIVER - bool "Configure the DC Motor driver" +menu "MOTOR_DRIVER: DC Motor driver" depends on USEMODULE_MOTOR_DRIVER - help - Configure the DC Motor driver using Kconfig. - -if KCONFIG_USEMODULE_MOTOR_DRIVER config MOTOR_DRIVER_MAX int "Maximum number of motors" @@ -29,4 +17,4 @@ config MOTOR_DRIVER_MAX The value should not exceed the number of PWM channels Default value is set to 2. -endif # KCONFIG_USEMODULE_MOTOR_DRIVER +endmenu # Configure the DC Motor driver diff --git a/drivers/mpl3115a2/Kconfig b/drivers/mpl3115a2/Kconfig deleted file mode 100644 index 54a40040bcfd..000000000000 --- a/drivers/mpl3115a2/Kconfig +++ /dev/null @@ -1,18 +0,0 @@ -# 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_MPL3115A2 - bool "MPL3115A2 Pressure Sensor" - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_PERIPH_I2C - -config HAVE_MPL3115A2 - bool - select MODULE_MPL3115A2 if MODULE_SAUL_DEFAULT - help - Indicates that an mpl3115a2 pressure sensor is present. diff --git a/drivers/mpu9x50/Kconfig b/drivers/mpu9x50/Kconfig deleted file mode 100644 index f98828e105df..000000000000 --- a/drivers/mpu9x50/Kconfig +++ /dev/null @@ -1,50 +0,0 @@ -# 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_MPU9X50 - bool - prompt "MPU-9X50 accelerometer/magnetometer/gyroscope" if !(MODULE_SAUL_DEFAULT && HAVE_MPU9X50) - default y if (MODULE_SAUL_DEFAULT && HAVE_MPU9X50) - depends on TEST_KCONFIG - depends on HAS_PERIPH_I2C - select MODULE_PERIPH_I2C - select MODULE_ZTIMER - select MODULE_ZTIMER_MSEC - -choice - bool "Sensor variant" - default MODULE_MPU9150 if HAVE_MPU9150 - default MODULE_MPU9250 if HAVE_MPU9250 - depends on MODULE_MPU9X50 - help - This driver supports both MPU9150 and MPU9250. Choose one model. - -config MODULE_MPU9150 - bool "MPU-9150" - -config MODULE_MPU9250 - bool "MPU-9250" - -endchoice - -config HAVE_MPU9150 - bool - select HAVE_MPU9X50 - help - Indicates that a mpu9150 sensor is present. - -config HAVE_MPU9250 - bool - select HAVE_MPU9X50 - help - Indicates that a mpu9250 sensor is present. - -config HAVE_MPU9X50 - bool - help - Indicates that a mpu9X50 sensor is present. diff --git a/drivers/mq3/Kconfig b/drivers/mq3/Kconfig deleted file mode 100644 index 598b25e768e4..000000000000 --- a/drivers/mq3/Kconfig +++ /dev/null @@ -1,17 +0,0 @@ -# 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_MQ3 - bool "MQ-3 Alcohol Tester" - depends on HAS_PERIPH_ADC - depends on TEST_KCONFIG - select MODULE_PERIPH_ADC - -config HAVE_MQ3 - bool - help - Indicates that a MQ-3 Alcohol Tester is present. diff --git a/drivers/mrf24j40/Kconfig b/drivers/mrf24j40/Kconfig index c818218a2d46..549ca7919d1d 100644 --- a/drivers/mrf24j40/Kconfig +++ b/drivers/mrf24j40/Kconfig @@ -5,119 +5,11 @@ # directory for more details. # -menuconfig MODULE_MRF24J40 - bool - prompt "MRF24J40 radio" if !(MODULE_NETDEV_DEFAULT && HAVE_MRF24J40) - default (MODULE_NETDEV_DEFAULT && HAVE_MRF24J40) - depends on TEST_KCONFIG - depends on HAS_PERIPH_GPIO - depends on HAS_PERIPH_GPIO_IRQ - depends on HAS_PERIPH_SPI - select MODULE_PERIPH_GPIO - select MODULE_PERIPH_GPIO_IRQ - select MODULE_PERIPH_SPI - select MODULE_IEEE802154 - select MODULE_ZTIMER_USEC - select HAVE_BHP_IRQ_HANDLER - select HAVE_IEEE802154_RADIO_HAL_INTERFACE - select MRF24J40_OQPSK if MODULE_NETDEV - -if MODULE_MRF24J40 - -choice MRF24J40_VARIANT - bool "Variant" - default MODULE_MRF24J40MA if HAVE_MRF24J40MA - default MODULE_MRF24J40MB if HAVE_MRF24J40MB - default MODULE_MRF24J40MC if HAVE_MRF24J40MC - default MODULE_MRF24J40MD if HAVE_MRF24J40MD - default MODULE_MRF24J40ME if HAVE_MRF24J40ME - -# the generic module matches this variant -config MRF24J40 - bool "MRF24J40" - -config MODULE_MRF24J40MA - bool "MRF24J40MA" - -config MODULE_MRF24J40MB - bool "MRF24J40MB" - -config MODULE_MRF24J40MC - bool "MRF24J40MC" - -config MODULE_MRF24J40MD - bool "MRF24J40MD" - -config MODULE_MRF24J40ME - bool "MRF24J40ME" - -endchoice +menu "MRF24J40 driver" + depends on USEMODULE_MRF24J40 config MRF24J40_OQPSK bool "OQPSK support" - default y if !MRF24J40 - select MODULE_NETDEV_IEEE802154_OQPSK - -config MRF24J40_USE_EXT_PA_LNA - bool "Enable external PA/LNA control" - default y - depends on !MODULE_MRF24J40MA - help - Increase RSSI for MRF24J40MC/MD/ME devices. No effect on MRF24J40MA. - For more information, please refer to section 4.2 of MRF24J40 datasheet. - -config MRF24J40_TEST_SPI_CONNECTION - bool "Enable basic self-test on init" - help - Perform a write / read to a known register on startup to detect if the - device is connected. Enable this if you want the boot not to hang if the - device is not connected / there are SPI errors. - -endif # MODULE_MRF24J40 - -config HAVE_MRF24J40 - bool - help - Indicates that a MRF24J40 radio is present. - -config HAVE_MRF24J40MA - bool - select HAVE_MRF24J40 - help - Indicates that a MRF24J40MA radio is present. - -config HAVE_MRF24J40MB - bool - select HAVE_MRF24J40 - help - Indicates that a MRF24J40MB radio is present. - -config HAVE_MRF24J40MC - bool - select HAVE_MRF24J40 - help - Indicates that a MRF24J40MC radio is present. - -config HAVE_MRF24J40MD - bool - select HAVE_MRF24J40 - help - Indicates that a MRF24J40MD radio is present. - -config HAVE_MRF24J40ME - bool - select HAVE_MRF24J40 - help - Indicates that a MRF24J40ME radio is present. - - -menuconfig KCONFIG_USEMODULE_MRF24J40 - bool "Configure MRF24J40 driver" - depends on USEMODULE_MRF24J40 - help - Configure the MRF24J40 driver using Kconfig. - -if KCONFIG_USEMODULE_MRF24J40 config MRF24J40_USE_EXT_PA_LNA bool "Enable external PA/LNA control" @@ -134,4 +26,4 @@ config MRF24J40_TEST_SPI_CONNECTION device is connected. Enable this if you want the boot not to hang if the device is not connected / there are SPI errors. -endif # KCONFIG_USEMODULE_MRF24J40 +endmenu # MRF24J40 driver diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig deleted file mode 100644 index d6c254e25777..000000000000 --- a/drivers/mtd/Kconfig +++ /dev/null @@ -1,147 +0,0 @@ -# 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 HAVE_MTD_AT24CXXX - bool - imply MODULE_MTD_AT24CXXX if MODULE_MTD - help - Indicates that a at24cxxx EEPROM MTD is present - -config HAVE_MTD_AT25XXX - bool - imply MODULE_MTD_AT25XXX if MODULE_MTD - help - Indicates that a at25xxx SPI-EEPROM MTD is present - -config HAVE_MTD_NATIVE - bool - imply MODULE_MTD_NATIVE if MODULE_MTD - help - Indicates that a native MTD is present. - -config HAVE_MTD_SDCARD_DEFAULT - bool - imply MODULE_MTD_SDCARD if MODULE_MTD - imply MODULE_MTD_SDCARD_DEFAULT if MODULE_MTD - imply MODULE_SDCARD_SPI if MODULE_MTD - select HAS_SDCARD_SPI - help - Indicates that a sdcard MTD is present with generic configuration - -config HAVE_MTD_SDCARD - bool - imply MODULE_MTD_SDCARD if MODULE_MTD - help - Indicates that a sdcard MTD is present - -config HAVE_MTD_SDMMC_DEFAULT - bool - depends on HAS_PERIPH_SDMMC - imply MODULE_MTD_SDMMC if MODULE_MTD - imply MODULE_MTD_SDMMC_DEFAULT if MODULE_MTD - imply MODULE_SDMMC if MODULE_MTD - help - Indicates that a SD/MMC MTD is present with generic configuration - -config HAVE_MTD_SDMMC - bool - depends on HAS_PERIPH_SDMMC - imply MODULE_MTD_SDMMC if MODULE_MTD - help - Indicates that a SD/MMC MTD is present - -config HAVE_MTD_SPI_NOR - bool - imply MODULE_MTD_SPI_NOR if MODULE_MTD - help - Indicates that a spi-nor MTD is present - -config HAVE_SAM0_SDHC - bool - imply MODULE_SAM0_SDHC if MODULE_MTD && !MODULE_MTD_SDMMC - help - Indicates that a SAM0 SD Host Controller MTD is present - -config HAVE_MTD_SPI_MCI - bool - imply MODULE_MTD_MCI if MODULE_MTD && !MODULE_MTD_SDMMC - help - Indicates that a Multimedia Card Interface (MCI) MTD is present - -menuconfig MODULE_MTD - bool "Memory Technology Device interface (MTD)" - depends on TEST_KCONFIG - -if MODULE_MTD - -menu "MTD Interfaces" - -config MODULE_MTD_SPI_NOR - bool "MTD interface for SPI NOR Flash" - depends on HAS_PERIPH_SPI - select MODULE_PERIPH_SPI - -config MODULE_MTD_FLASHPAGE - bool "MTD interface for Flashpage" - depends on HAS_PERIPH_FLASHPAGE - depends on HAS_PERIPH_FLASHPAGE_PAGEWISE - select MODULE_PERIPH_FLASHPAGE - select MODULE_PERIPH_FLASHPAGE_PAGEWISE - help - Driver for internal flash devices implementing flashpage interface. - -config MODULE_MTD_NATIVE - bool "MTD native driver" - depends on NATIVE_OS_LINUX - -config MODULE_MTD_AT24CXXX - bool "MTD implementation for AT24CXXX" - depends on MODULE_AT24CXXX - -config MODULE_MTD_AT25XXX - bool "MTD implementation for AT25XXX" - depends on MODULE_AT25XXX - -config MODULE_MTD_MCI - bool "MTD interface for LPC23XX MCI" - depends on CPU_FAM_LPC23XX - select MODULE_MCI - -config MODULE_MTD_SDCARD - bool "MTD interface for SPI SD-Card" - depends on MODULE_SDCARD_SPI - -config MODULE_MTD_SDCARD_DEFAULT - bool "Use Generic SD card configuration" - depends on MODULE_MTD_SDCARD - help - Automatically create a MTD device and mount point for the SD card. - -config MODULE_MTD_SDMMC - bool "MTD interface for SD/MMC" - depends on HAS_PERIPH_SDMMC - select MODULE_PERIPH_SDMMC - -config MODULE_MTD_SDMMC_DEFAULT - bool "Use Generic SD/MMC card configuration" - depends on MODULE_MTD_SDMMC - help - Automatically create a MTD device and mount point for the SD/MMC card. - -config MODULE_MTD_EMULATED - bool "MTD interface for MTD emulated in RAM" - -config MODULE_SAM0_SDHC - bool "MTD interface for SAM0 SD Host Controller" - depends on CPU_COMMON_SAM0 && HAVE_SAM0_SDHC && !MODULE_PERIPH_SDMMC - -endmenu # MTD Interfacs - -config MODULE_MTD_WRITE_PAGE - bool "MTD write page API" - -endif diff --git a/drivers/mtd_mapper/Kconfig b/drivers/mtd_mapper/Kconfig deleted file mode 100644 index 87a1fb6dabe0..000000000000 --- a/drivers/mtd_mapper/Kconfig +++ /dev/null @@ -1,18 +0,0 @@ -# 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_MAPPER - bool "MTD address mapper" - depends on TEST_KCONFIG - select MODULE_MTD - help - Driver for address remap for flash devices. - - This MTD module allows for remapping multiple different regions on a single - MTD device and present them as separate MTD devices. This is similar to - partitions on a hard drive, although this system only allows hardcoded - partitions and lacks a partition table. diff --git a/drivers/mtd_sdcard/Kconfig b/drivers/mtd_sdcard/Kconfig index 3878e22e6250..0963ae32347d 100644 --- a/drivers/mtd_sdcard/Kconfig +++ b/drivers/mtd_sdcard/Kconfig @@ -5,18 +5,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_MTD_SDCARD - bool "Configure MTD_SDCARD driver" +menu "MTD_SDCARD driver" depends on USEMODULE_MTD_SDCARD - help - Configure the MTD_SDCARD driver using Kconfig. - -if KCONFIG_USEMODULE_MTD_SDCARD config SDCARD_GENERIC_MTD_OFFSET - depends on MODULE_MTD_SDCARD_DEFAULT + depends on USEMODULE_MTD_SDCARD_DEFAULT int "Index of first auto-configured MTD SDcard device" - default 0 + default 1 help If you have other MTD devices defined, set this number so that the auto-configured SD Card(s) from mtd_sdcard_default will come after them. @@ -25,8 +20,8 @@ config MTD_SDCARD_ERASE bool "Enable SD card erase" help Enable this to erase sector before a data write operation. - SDCards handle sector erase internally so it's + SDCards handle sector erase internally so its possible to directly write to the card without erasing the sector first hence this feature is disabled by default. -endif # KCONFIG_USEMODULE_MTD_SDCARD +endmenu # MTD_SDCARD driver diff --git a/drivers/mtd_sdmmc/Kconfig b/drivers/mtd_sdmmc/Kconfig index 692a441e3440..45e02017270d 100644 --- a/drivers/mtd_sdmmc/Kconfig +++ b/drivers/mtd_sdmmc/Kconfig @@ -6,16 +6,11 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_MTD_SDMMC - bool "Configure MTD_SDMMC driver" +menu "MTD_SDMMC driver" depends on USEMODULE_MTD_SDMMC - help - Configure the MTD_SDMMC driver using Kconfig. - -if KCONFIG_USEMODULE_MTD_SDMMC config SDMMC_GENERIC_MTD_OFFSET - depends on MODULE_MTD_SDMMC_DEFAULT + depends on USEMODULE_MTD_SDMMC_DEFAULT int "Index of first auto-configured MTD SD/MMC device" default 0 help @@ -23,4 +18,4 @@ config SDMMC_GENERIC_MTD_OFFSET the auto-configured SD Memory Card(s) or MMCs/eMMCs from mtd_sdmmc_default will come after them. -endif # KCONFIG_USEMODULE_MTD_SDMMC +endmenu # MTD_SDMMC driver diff --git a/drivers/my9221/Kconfig b/drivers/my9221/Kconfig deleted file mode 100644 index 492d3d6eca81..000000000000 --- a/drivers/my9221/Kconfig +++ /dev/null @@ -1,18 +0,0 @@ -# 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 - -config HAVE_MY9221 - bool - help - Indicates that a MY9221 LED controller is present. diff --git a/drivers/ncv7356/Kconfig b/drivers/ncv7356/Kconfig deleted file mode 100644 index 73bf8347b74a..000000000000 --- a/drivers/ncv7356/Kconfig +++ /dev/null @@ -1,18 +0,0 @@ -# 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_NCV7356 - bool "NCV7356 Single Wire CAN Transceiver" - depends on HAS_PERIPH_GPIO - depends on TEST_KCONFIG - select MODULE_PERIPH_GPIO - select MODULE_CAN_TRX - -config HAVE_NCV7356 - bool - help - Indicates that a NCV7356 Single Wire CAN Transceiver is present. diff --git a/drivers/netdev/Kconfig b/drivers/netdev/Kconfig index 4bd545f1a269..ac24e3ba8365 100644 --- a/drivers/netdev/Kconfig +++ b/drivers/netdev/Kconfig @@ -5,109 +5,9 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. -if TEST_KCONFIG - -config MODULE_NETDEV_DEFAULT - bool "Enable default network devices on the platform" - help - Say y to enable the drivers for the default network devices present on - your platform. - -config MODULE_NETDEV - bool - prompt "Use netdev interface for networking devices" if HAVE_NON_NETDEV_INTERFACE - select MODULE_EUI_PROVIDER - help - Network device driver API. Netdev is a generic low-level network - interface that provides a uniform API for network stacks to interact - with network device drivers. - -config MODULE_NETDEV_ETH - bool - select MODULE_NETDEV - select MODULE_NETDEV_REGISTER - help - Common code for netdev ethernet drivers. - -if MODULE_NETDEV +if USEMODULE_NETDEV config NETDEV_REGISTER_SIGNAL bool "Signal when a network device is registered" -menu "IEEE 802.15.4 Device Drivers" - visible if MODULE_NETDEV_IEEE802154 - -config MODULE_NETDEV_IEEE802154_RX_TIMESTAMP - bool "Timestamp received frames" - -endmenu # IEEE 802.15.4 Device Drivers - -config MODULE_NETDEV_IEEE802154 - bool - select MODULE_NETDEV_REGISTER - select MODULE_IEEE802154 - select MODULE_RANDOM - help - Common code for netdev IEEE 802.15.4 drivers. - -config MODULE_NETDEV_IEEE802154_OQPSK - bool - help - Support for OQPSK modulation in netdev IEEE 802.15.4. - -config MODULE_NETDEV_IEEE802154_MR_FSK - bool - help - Support for MR-FSK modulation in netdev IEEE 802.15.4. - -config MODULE_NETDEV_IEEE802154_MR_OFDM - bool - help - Support for MR-OFDM modulation in netdev IEEE 802.15.4. - -config MODULE_NETDEV_IEEE802154_MR_OQPSK - bool - help - Support for MR-OQPSK modulation in netdev IEEE 802.15.4. - -config MODULE_NETDEV_IEEE802154_MULTIMODE - bool - help - Allow for multiple physical layer modes. - -config MODULE_NETDEV_REGISTER - bool - help - Network device registration. - -endif # MODULE_NETDEV - -# This does not depend on MODULE_NETDEV, as it is merely a flag to say if a -# given network driver is used via the netdev API, it provides the new netdev -# API. However, the driver may also provide a API other than netdev that might -# be used directly. -config MODULE_NETDEV_NEW_API - bool - help - Support for new API (non-blocking send). With this, netdev - drivers implementing `netdev_driver_t::confirm_send()` can be used. - -# Comment above MODULE_NETDEV_NEW_API also applies here. -config MODULE_NETDEV_LEGACY_API - bool - help - Support for legacy netdev API (blocking send). With this, netdev drivers - **NOT** implementing `netdev_driver_t::confirm_send()` can be used. - -endif # TEST_KCONFIG - -config HAVE_NON_NETDEV_INTERFACE - bool - help - Indicates that a non-netdev interface is exposed by selected drivers. - -config HAVE_IEEE802154_RADIO_HAL_INTERFACE - bool - select HAVE_NON_NETDEV_INTERFACE - help - Indicates that a device driver implements the IEEE 802.15.4 radio HAL interface. +endif # USEMODULE_NETDEV diff --git a/drivers/netdev_ieee802154_submac/Kconfig b/drivers/netdev_ieee802154_submac/Kconfig deleted file mode 100644 index f435ac75297c..000000000000 --- a/drivers/netdev_ieee802154_submac/Kconfig +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright (c) 2022 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_NETDEV_IEEE802154_SUBMAC - bool - depends on TEST_KCONFIG - depends on MODULE_NETDEV - default y if HAVE_IEEE802154_RADIO_HAL_INTERFACE - select MODULE_IEEE802154 - select MODULE_IEEE802154_SUBMAC - select MODULE_NETDEV_IEEE802154 - select MODULE_NETDEV_LEGACY_API - help - This module implements the netdev API on top of the IEEE 802.15.4 radio - HAL. diff --git a/drivers/nrf24l01p/Kconfig b/drivers/nrf24l01p/Kconfig deleted file mode 100644 index ce970122d814..000000000000 --- a/drivers/nrf24l01p/Kconfig +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright (c) 2023 Inria -# 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_NRF24L01P - bool - prompt "nrf24l01p radio" if !(MODULE_NETDEV_DEFAULT && HAVE_NRF24L01P) - default (MODULE_NETDEV_DEFAULT && HAVE_NRF24L01P) - depends on TEST_KCONFIG - select MODULE_PERIPH_GPIO - select MODULE_PERIPH_GPIO_IRQ - select MODULE_PERIPH_SPI - select ZTIMER_USEC - -config HAVE_NRF24L01P - bool - help - Indicates that a NRF24L01P radio is present. diff --git a/drivers/nvram/Kconfig b/drivers/nvram/Kconfig deleted file mode 100644 index 7bbbe4c1d73e..000000000000 --- a/drivers/nvram/Kconfig +++ /dev/null @@ -1,16 +0,0 @@ -# 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_NVRAM - bool "Non-volatile RAM" - depends on TEST_KCONFIG - help - This API is designed around non-volatile memories which do not need - blockwise erase, such as ferro-electric RAM (FRAM) or magneto-resistive - RAM (MRAM). - - This interface is not suitable for flash memories. diff --git a/drivers/nvram_spi/Kconfig b/drivers/nvram_spi/Kconfig deleted file mode 100644 index 9d0af2163a90..000000000000 --- a/drivers/nvram_spi/Kconfig +++ /dev/null @@ -1,14 +0,0 @@ -# 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_NVRAM_SPI - bool "Interface for various SPI NVRAM" - depends on HAS_PERIPH_SPI - depends on TEST_KCONFIG - select MODULE_NVRAM - select MODULE_PERIPH_SPI - select ZTIMER_USEC diff --git a/drivers/opt3001/Kconfig b/drivers/opt3001/Kconfig index 05b5608be985..f1f3bf48c6d5 100644 --- a/drivers/opt3001/Kconfig +++ b/drivers/opt3001/Kconfig @@ -6,26 +6,8 @@ # 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 - -config HAVE_OPT3001 - bool - select MODULE_OPT3001 if MODULE_SAUL_DEFAULT - help - Indicates that a OPT3001 Ambient Light Sensor is present. - -menuconfig KCONFIG_USEMODULE_OPT3001 - bool "Configure OPT3001 driver" +menu "OPT3001 driver" depends on USEMODULE_OPT3001 - help - Configure the OPT3001 driver using Kconfig. - -if KCONFIG_USEMODULE_OPT3001 config OPT3001_I2C_ADDRESS hex "Default I2C address" @@ -53,4 +35,4 @@ config OPT3001_CONVERSION_TIME_800 endchoice -endif # KCONFIG_USEMODULE_OPT3001 +endmenu # OPT3001 driver diff --git a/drivers/pca9633/Kconfig b/drivers/pca9633/Kconfig deleted file mode 100644 index e306bdc330d5..000000000000 --- a/drivers/pca9633/Kconfig +++ /dev/null @@ -1,17 +0,0 @@ -# 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 - -config HAVE_PCA9633 - bool - help - Indicates that a PCA9633 I2C PWM controller is present. diff --git a/drivers/pca9685/Kconfig b/drivers/pca9685/Kconfig deleted file mode 100644 index bbf7b565bd51..000000000000 --- a/drivers/pca9685/Kconfig +++ /dev/null @@ -1,22 +0,0 @@ -# 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 - -config HAVE_PCA9685 - bool - select MODULE_PCA9685 if MODULE_SAUL_DEFAULT - help - Indicates that a PCA9685 I2C PWM controller controller is present. diff --git a/drivers/pcd8544/Kconfig b/drivers/pcd8544/Kconfig deleted file mode 100644 index e0ca09203515..000000000000 --- a/drivers/pcd8544/Kconfig +++ /dev/null @@ -1,20 +0,0 @@ -# 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 - -config HAVE_PCD8544 - bool - help - Indicates that a PCD8544 LCD is present. diff --git a/drivers/pcf857x/Kconfig b/drivers/pcf857x/Kconfig deleted file mode 100644 index f20a392d7155..000000000000 --- a/drivers/pcf857x/Kconfig +++ /dev/null @@ -1,100 +0,0 @@ -# Copyright (c) 2021 Gunar Schorcht -# -# 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_PCF857X - bool - prompt "PCF857x Remote I/O Expander for I2C Bus" if !(MODULE_SAUL_DEFAULT && HAVE_PCF857X) - default (MODULE_SAUL_DEFAULT && HAVE_PCF857X) - depends on HAS_PERIPH_GPIO - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_PERIPH_GPIO - select MODULE_PERIPH_I2C - help - Driver for Texas Instruments PCF857X I2C I/O expanders. - The driver supports the PCF8574, PCF8574A, and PCF8575 variants. - Select the variants used by your application. - -if MODULE_PCF857X - -config MODULE_PCF8574 - bool "PCF8574 Remote 8-Bit I/O is used" - default HAVE_PCF8574 - -config MODULE_PCF8574A - bool "PCF8574A Remote 8-Bit I/O is used" - default HAVE_PCF8574A - -config MODULE_PCF8575 - bool "PCF8575 Remote 16-Bit I/O is used" - default (!(HAVE_PCF8574A || HAVE_PCF8574) || HAVE_PCF8575) - -config MODULE_PCF857X_IRQ - bool "Interrupt support for PCF857x I/O Expander pins" - default PCF857X_IRQ - depends on MODULE_PCF857X - depends on HAS_PERIPH_GPIO_IRQ - select MODULE_PERIPH_GPIO_IRQ - select MODULE_EVENT - select MODULE_EVENT_THREAD - help - To use the IRQs the MODULE_EVENT_THREAD symbol should be set. - -choice - bool "Thread priority" - depends on MODULE_PCF857X_IRQ - default MODULE_PCF857X_IRQ_MEDIUM - help - To process IRQs an event thread is used. The MODULE_EVENT_THREAD - symbol should be set. Choose a priority for the thread that - processes the IRQs. The default is medium priority. - -config MODULE_PCF857X_IRQ_LOW - bool "Low" - select MODULE_EVENT_THREAD_LOW - -config MODULE_PCF857X_IRQ_MEDIUM - bool "Medium" - select MODULE_EVENT_THREAD_MEDIUM - -config MODULE_PCF857X_IRQ_HIGHEST - bool "Highest" - select MODULE_EVENT_THREAD_HIGHEST - -endchoice - -endif # MODULE_PCF857X - -config HAVE_PCF857X - bool - help - Indicates that a PCF857x Remote I/O Expander is present. - -config HAVE_PCF8574 - bool - select HAVE_PCF857X - help - Indicates that a PCF8574 Remote I/O Expander is present. - -config HAVE_PCF8574A - bool - select HAVE_PCF857X - help - Indicates that a PCF8574A Remote I/O Expander is present. - -config HAVE_PCF8575 - bool - select HAVE_PCF857X - help - Indicates that a PCF8575 Remote I/O Expander is present. - -config HAVE_PCF857X_IRQ - bool - select HAVE_PCF857X - help - Indicates that a PCF857x Remote I/O Expander is present with the - interrupt pin wired. diff --git a/drivers/periph_common/Kconfig b/drivers/periph_common/Kconfig index c9eae6d7e9a3..0fca5fe5fc94 100644 --- a/drivers/periph_common/Kconfig +++ b/drivers/periph_common/Kconfig @@ -4,191 +4,15 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. -if TEST_KCONFIG - -config MODULE_PERIPH_COMMON - bool - help - Common peripherals module. - -config MODULE_PERIPH_INIT - bool "Peripherals auto-initialization" - default y - help - Auto-initialization of all used peripherals. - -# Common peripheral modules and auto-init -config MODULE_PERIPH_ADC - bool "ADC peripheral driver" - depends on HAS_PERIPH_ADC - select MODULE_PERIPH_COMMON - -config MODULE_PERIPH_INIT_ADC - bool "Auto initialize ADC peripheral" - default y if MODULE_PERIPH_INIT - depends on MODULE_PERIPH_ADC - -config MODULE_PERIPH_INIT_BUTTONS - bool - depends on TEST_KCONFIG - help - Enable auto initialization of on-board buttons - -config MODULE_PERIPH_CPUID - bool "CPU unique ID" - depends on HAS_PERIPH_CPUID - select MODULE_PERIPH_COMMON - -config MODULE_PERIPH_INIT_CPUID - bool "Auto initialize CPU unique ID driver" - default y if MODULE_PERIPH_INIT - depends on MODULE_PERIPH_CPUID - -config MODULE_PERIPH_DAC - bool "DAC peripheral driver" - depends on HAS_PERIPH_DAC - select MODULE_PERIPH_COMMON - -config MODULE_PERIPH_INIT_DAC - bool "Auto initialize DAC peripheral" - default y if MODULE_PERIPH_INIT - depends on MODULE_PERIPH_DAC - -config MODULE_PERIPH_DMA - bool "DMA peripheral driver" - depends on HAS_PERIPH_DMA - select MODULE_PERIPH_COMMON - -config MODULE_PERIPH_INIT_DMA - bool "Auto initialize DMA peripheral" - default y if MODULE_PERIPH_INIT - depends on MODULE_PERIPH_DMA - -config MODULE_PERIPH_EEPROM - bool "EEPROM peripheral driver" - depends on HAS_PERIPH_EEPROM - select MODULE_PERIPH_COMMON - -config MODULE_PERIPH_INIT_EEPROM - bool "Auto initialize EEPROM peripheral" - default y if MODULE_PERIPH_INIT - depends on MODULE_PERIPH_EEPROM - -rsource "Kconfig.flashpage" - rsource "Kconfig.gpio" -rsource "Kconfig.gpio_ll" - -config MODULE_PERIPH_HWRNG - bool "HWRNG peripheral driver" - depends on HAS_PERIPH_HWRNG - select MODULE_PERIPH_COMMON - -config MODULE_PERIPH_INIT_HWRNG - bool "Auto initialize HWRNG peripheral" - default y if MODULE_PERIPH_INIT - depends on MODULE_PERIPH_HWRNG - rsource "Kconfig.i2c" -config MODULE_PERIPH_PIO - bool "Programmable IO (PIO) peripheral driver" - depends on HAS_PERIPH_PIO - select MODULE_PERIPH_COMMON - -config MODULE_PERIPH_INIT_PIO - bool "Auto initialize programmable IO (PIO) peripheral driver" - default y if MODULE_PERIPH_INIT - depends on MODULE_PERIPH_PIO - -config MODULE_PERIPH_PM - bool "Power Management (PM) peripheral driver" - default y - depends on HAS_PERIPH_PM - select MODULE_PERIPH_COMMON - -config MODULE_PERIPH_INIT_PM - bool "Auto initialize Power Management (PM) peripheral" - default y if MODULE_PERIPH_INIT - depends on MODULE_PERIPH_PM - -config MODULE_PERIPH_PWM - bool "PWM peripheral driver" - depends on HAS_PERIPH_PWM - select MODULE_PERIPH_COMMON - -config MODULE_PERIPH_INIT_PWM - bool "Auto initialize PWM peripheral" - default y if MODULE_PERIPH_INIT - depends on MODULE_PERIPH_PWM - -config MODULE_PERIPH_QDEC - bool "Quadrature Decoder (QDEC) peripheral driver" - depends on HAS_PERIPH_QDEC - select MODULE_PERIPH_COMMON - -config MODULE_PERIPH_INIT_QDEC - bool "Auto initialize Quadrature Decoder (QDEC) peripheral" - default y if MODULE_PERIPH_INIT - depends on MODULE_PERIPH_QDEC - -rsource "Kconfig.leds" rsource "Kconfig.rtc" -config MODULE_PERIPH_RTT - bool "RTT peripheral driver" - depends on HAS_PERIPH_RTT - select MODULE_PERIPH_COMMON - -config MODULE_PERIPH_FREQM - bool "Frequency Meter driver" - depends on HAS_PERIPH_FREQM - -config MODULE_PERIPH_RTT_SET_COUNTER - bool "rtc_set_counter() implementation in the RTT peripheral driver" - depends on HAS_PERIPH_RTT_SET_COUNTER && MODULE_PERIPH_RTT - -config MODULE_PERIPH_INIT_RTT_SET_COUNTER - bool "Auto initialize rtc_set_counter() with RTT" - default y if MODULE_PERIPH_INIT - depends on MODULE_PERIPH_RTT_SET_COUNTER - -config MODULE_PERIPH_INIT_RTT - bool "Auto initialize RTT peripheral" - default y if MODULE_PERIPH_INIT - depends on MODULE_PERIPH_RTT - -config MODULE_PERIPH_TIMER_POLL - bool "Timer poll" - depends on HAS_PERIPH_TIMER_POLL - help - Enables the timer_poll_channel function. - -rsource "Kconfig.sdmmc" rsource "Kconfig.spi" -config MODULE_PERIPH_TEMPERATURE - bool "Temperature peripheral driver" - depends on HAS_PERIPH_TEMPERATURE - select MODULE_PERIPH_COMMON - -config MODULE_PERIPH_INIT_TEMPERATURE - bool "Auto initialize temperature peripheral" - default y if MODULE_PERIPH_INIT - depends on MODULE_PERIPH_TEMPERATURE - rsource "Kconfig.timer" -rsource "Kconfig.uart" -rsource "Kconfig.usbdev" - -endif # TEST_KCONFIG - -config HAVE_SHARED_PERIPH_RTT_PERIPH_RTC - bool - help - The periph_rtc module or the periph_rtt module share hardware, thus, - only one can be selected. rsource "Kconfig.vbat" rsource "Kconfig.wdt" diff --git a/drivers/periph_common/Kconfig.flashpage b/drivers/periph_common/Kconfig.flashpage deleted file mode 100644 index 50dca8048067..000000000000 --- a/drivers/periph_common/Kconfig.flashpage +++ /dev/null @@ -1,45 +0,0 @@ -# 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_PERIPH_FLASHPAGE - bool "Flashpage peripheral driver" - depends on HAS_PERIPH_FLASHPAGE - select MODULE_PERIPH_COMMON - -# TODO: the 'init' modules are actually just artifacts from the way -# periph_init_% modules are handled in Makefile. We need to define them to keep -# the list the same for now. We should be able to remove them later on. - -config MODULE_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE - bool "Static memory sections can fundamentally be turned into flash pages" - depends on HAS_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE - depends on MODULE_PERIPH_FLASHPAGE_PAGEWISE - -config MODULE_PERIPH_INIT_FLASHPAGE - bool "Auto initialize Flashpage peripheral" - default y if MODULE_PERIPH_INIT - depends on MODULE_PERIPH_FLASHPAGE - -config MODULE_PERIPH_FLASHPAGE_PAGEWISE - bool "Pagewise writing support" - depends on HAS_PERIPH_FLASHPAGE_PAGEWISE - depends on MODULE_PERIPH_FLASHPAGE - -config MODULE_PERIPH_INIT_FLASHPAGE_PAGEWISE - bool "Auto initialize Flashpage pagewise" - default y if MODULE_PERIPH_INIT - depends on MODULE_PERIPH_FLASHPAGE_PAGEWISE - -config MODULE_PERIPH_FLASHPAGE_RWEE - bool "Read while Write support" - depends on HAS_PERIPH_FLASHPAGE_RWEE - depends on MODULE_PERIPH_FLASHPAGE - -config MODULE_PERIPH_INIT_FLASHPAGE_RWEE - bool "Auto initialize Flashpage RWEE" - default y if MODULE_PERIPH_INIT - depends on MODULE_PERIPH_FLASHPAGE_RWEE diff --git a/drivers/periph_common/Kconfig.gpio b/drivers/periph_common/Kconfig.gpio index 33a2f6d37f7d..0a504ce0d5a5 100644 --- a/drivers/periph_common/Kconfig.gpio +++ b/drivers/periph_common/Kconfig.gpio @@ -5,57 +5,12 @@ # directory for more details. # -menuconfig MODULE_PERIPH_GPIO - bool "GPIO peripheral driver" - default y - depends on HAS_PERIPH_GPIO - select MODULE_PERIPH_COMMON - -if MODULE_PERIPH_GPIO - -config MODULE_PERIPH_INIT_GPIO - bool "Auto initialize GPIO peripheral" - default y if MODULE_PERIPH_INIT - -config MODULE_PERIPH_GPIO_IRQ - bool "GPIO interrupt peripheral driver" - depends on HAS_PERIPH_GPIO_IRQ - select MODULE_PERIPH_COMMON - -config MODULE_PERIPH_GPIO_FAST_READ - bool "GPIO fast read" - depends on HAS_PERIPH_GPIO_FAST_READ - help - This trades an increase in power consumption for a decrease in GPIO pin - read latency. - -config MODULE_PERIPH_GPIO_TAMPER_WAKE - bool "enable wake from Deep Sleep by RTC tamper pins" - depends on HAS_PERIPH_GPIO_TAMPER_WAKE - help - If you enable this, a RTC tamper pin that has been configured as an - interrupt can wake the CPU from Deep Sleep. Only RTC tamper pins - (and the RTC alarm) can wake the CPU from Deep Sleep. +if USEMODULE_PERIPH_GPIO # TODO: this module is actually jus t an artifact from the way periph_init_% # modules are handled in Makefile. We need to define it to keep the list the # same for now. We should be able to remove it later on. -config MODULE_PERIPH_INIT_GPIO_IRQ - bool "Auto initialize GPIO interrupt peripheral" - default y if MODULE_PERIPH_INIT - depends on MODULE_PERIPH_GPIO_IRQ - -config MODULE_PERIPH_INIT_GPIO_FAST_READ - bool "Auto initialize GPIO fast read" - default y if MODULE_PERIPH_INIT - depends on MODULE_PERIPH_GPIO_FAST_READ - -config MODULE_PERIPH_INIT_GPIO_TAMPER_WAKE - bool "Auto initialize tamper detection" - default y if MODULE_PERIPH_INIT - depends on MODULE_PERIPH_GPIO_TAMPER_WAKE - -endif # MODULE_PERIPH_GPIO +endif # USEMODULE_PERIPH_GPIO osource "$(RIOTCPU)/$(CPU)/periph/Kconfig.gpio" diff --git a/drivers/periph_common/Kconfig.gpio_ll b/drivers/periph_common/Kconfig.gpio_ll deleted file mode 100644 index 55e0b2263147..000000000000 --- a/drivers/periph_common/Kconfig.gpio_ll +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright (c) 2023 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_PERIPH_GPIO_LL - bool "Low-level GPIO peripheral driver" - depends on HAS_PERIPH_GPIO_LL - -if MODULE_PERIPH_GPIO_LL - -config MODULE_PERIPH_GPIO_LL_IRQ_UNMASK - bool "Unmask GPIO peripheral interrupts" - default y - depends on HAS_PERIPH_GPIO_LL_IRQ_UNMASK - help - Enables GPIO peripheral unmasking interrupts without - clearing pending IRQs that came in while masked. - -endif # MODULE_PERIPH_GPIO_LL diff --git a/drivers/periph_common/Kconfig.i2c b/drivers/periph_common/Kconfig.i2c index f5a081c8939d..350517a7bc45 100644 --- a/drivers/periph_common/Kconfig.i2c +++ b/drivers/periph_common/Kconfig.i2c @@ -5,30 +5,12 @@ # directory for more details. # -menuconfig MODULE_PERIPH_I2C - bool "I2C peripheral driver" - depends on HAS_PERIPH_I2C - select MODULE_PERIPH_COMMON - -if MODULE_PERIPH_I2C - -config MODULE_PERIPH_INIT_I2C - bool "Auto initialize I2C peripheral" - default y if MODULE_PERIPH_INIT - -config MODULE_PERIPH_I2C_RECONFIGURE - bool "Pin reconfiguration support" - depends on HAS_PERIPH_I2C_RECONFIGURE +if USEMODULE_PERIPH_I2C # TODO: this module is actually just an artifact from the way periph_init_% # modules are handled in Makefile. We need to define it to keep the list the # same for now. We should be able to remove it later on. -config MODULE_PERIPH_INIT_I2C_RECONFIGURE - bool "Auto initialize I2C pin reconfiguration support" - default y if MODULE_PERIPH_INIT - depends on MODULE_PERIPH_I2C_RECONFIGURE - -endif # MODULE_PERIPH_I2C +endif # USEMODULE_PERIPH_I2C osource "$(RIOTCPU)/$(CPU)/periph/Kconfig.i2c" diff --git a/drivers/periph_common/Kconfig.leds b/drivers/periph_common/Kconfig.leds deleted file mode 100644 index d779573ef9c6..000000000000 --- a/drivers/periph_common/Kconfig.leds +++ /dev/null @@ -1,69 +0,0 @@ -# Copyright (c) 2022 Inria -# -# 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_PERIPH_INIT_LEDS - bool - default y - depends on TEST_KCONFIG - help - Enable auto initialization of board leds - -config MODULE_PERIPH_INIT_LED0 - bool - default y - depends on MODULE_PERIPH_INIT_LEDS - help - Enable auto initialization of LED0 if present - -config MODULE_PERIPH_INIT_LED1 - bool - default y - depends on MODULE_PERIPH_INIT_LEDS - help - Enable auto initialization of LED1 if present - -config MODULE_PERIPH_INIT_LED2 - bool - default y - depends on MODULE_PERIPH_INIT_LEDS - help - Enable auto initialization of LED2 if present - -config MODULE_PERIPH_INIT_LED3 - bool - default y - depends on MODULE_PERIPH_INIT_LEDS - help - Enable auto initialization of LED3 if present - -config MODULE_PERIPH_INIT_LED4 - bool - default y - depends on MODULE_PERIPH_INIT_LEDS - help - Enable auto initialization of LED4 if present - -config MODULE_PERIPH_INIT_LED5 - bool - default y - depends on MODULE_PERIPH_INIT_LEDS - help - Enable auto initialization of LED5 if present - -config MODULE_PERIPH_INIT_LED6 - bool - default y - depends on MODULE_PERIPH_INIT_LEDS - help - Enable auto initialization of LED6 if present - -config MODULE_PERIPH_INIT_LED7 - bool - default y - depends on MODULE_PERIPH_INIT_LEDS - help - Enable auto initialization of LED7 if present diff --git a/drivers/periph_common/Kconfig.rtc b/drivers/periph_common/Kconfig.rtc index 5aa46f0d74b3..6436982da396 100644 --- a/drivers/periph_common/Kconfig.rtc +++ b/drivers/periph_common/Kconfig.rtc @@ -5,42 +5,13 @@ # directory for more details. # -menuconfig MODULE_PERIPH_RTC - bool "RTC peripheral driver" - depends on HAS_PERIPH_RTC - select MODULE_PERIPH_COMMON - select MODULE_RTC_UTILS - -if MODULE_PERIPH_RTC - -config MODULE_PERIPH_INIT_RTC - bool "Auto initialize RTC peripheral" - default y if MODULE_PERIPH_INIT - -config MODULE_PERIPH_RTC_MS - bool "Support for time with sub-second component" - depends on HAS_PERIPH_RTC_MS - help - Provides an interface to access the RTC time with a sub-second - component. +if USEMODULE_PERIPH_RTC endif #MODULE_PERIPH_RTC -config MODULE_PERIPH_RTC_MEM - bool "Low-Power RTC Memory" - depends on HAS_PERIPH_RTC_MEM - help - Provides an interface to access low-power memory present on some RTCs. - This memory is retained even when the rest of the system is powered off. - # TODO: this module is actually just an artifact from the way periph_init_% # modules are handled in Makefile. We need to define it to keep the list the # same for now. We should be able to remove it later on. -config MODULE_PERIPH_INIT_RTC_MEM - bool - default y if MODULE_PERIPH_INIT - depends on MODULE_PERIPH_RTC_MEM - # Include CPU specific configurations osource "$(RIOTCPU)/$(CPU)/periph/Kconfig.rtc" diff --git a/drivers/periph_common/Kconfig.sdmmc b/drivers/periph_common/Kconfig.sdmmc deleted file mode 100644 index d0f7af26d9f0..000000000000 --- a/drivers/periph_common/Kconfig.sdmmc +++ /dev/null @@ -1,90 +0,0 @@ -# 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_PERIPH_SDMMC - bool "SDIO/SD/MMC peripheral driver" - depends on HAS_PERIPH_SDMMC - select MODULE_PERIPH_COMMON - -if MODULE_PERIPH_SDMMC - -config MODULE_PERIPH_INIT_SDMMC - bool "Auto initialize SDIO/SD/MMC peripheral" - default y if MODULE_PERIPH_INIT - -config MODULE_PERIPH_SDMMC_8BIT - bool "8 Bit data bus support" - depends on HAS_PERIPH_SDMMC_8BIT - default y - help - If the SDIO/SD/MMC peripheral supports the 8-bit bus width, it can be - used by enabling this option. If the option is disabled, the driver - requires less RAM and ROM. - -config MODULE_PERIPH_INIT_SDMMC_8BIT - bool - depends on MODULE_PERIPH_SDMMC_8BIT - default y if MODULE_PERIPH_INIT - -config MODULE_PERIPH_SDMMC_HS - bool "High speed access" - depends on HAS_PERIPH_SDMMC_HS - default y - help - If the SDIO/SD/MMC peripheral supports the high speed access, i.e. 50 - MHz for SD and 52 MHz for MMC, it can be used by enabling this option. - If the option is disabled, the driver requires less RAM and ROM. - -config MODULE_PERIPH_INIT_SDMMC_HS - bool - depends on MODULE_PERIPH_SDMMC_HS - default y if MODULE_PERIPH_INIT - -config MODULE_PERIPH_SDMMC_AUTO_CLK - bool - depends on HAS_PERIPH_SDMMC_AUTO_CLK - default y - help - If the SDIO/SD/MMC peripheral supports the Auto-CLK feature, i.e. - the automatic activation and deactivation of the SD CLK signal, - it is enabled automatically by this option. Otherwise, the activation - and deactivation is controlled by SDIO/SD/MMC high-level functions. - -config MODULE_PERIPH_INIT_SDMMC_AUTO_CLK - bool - depends on MODULE_PERIPH_SDMMC_AUTO_CLK - default y if MODULE_PERIPH_INIT - -config MODULE_PERIPH_SDMMC_AUTO_CMD12 - bool - depends on HAS_PERIPH_SDMMC_AUTO_CMD12 - default y - help - If the SDIO/SD/MMC peripheral supports the Auto-CMD12 feature is - enabled, i.e. CMD12 is sent automatically to stop the transmission in - multiple block operations. - -config MODULE_PERIPH_INIT_SDMMC_AUTO_CMD12 - bool - depends on MODULE_PERIPH_SDMMC_AUTO_CMD12 - default y if MODULE_PERIPH_INIT - -config MODULE_PERIPH_SDMMC_SDHC - bool - depends on HAS_PERIPH_SDMMC_SDHC - default y - help - If the SDIO/SD/MMC peripheral is compliant with the SD Host Controller - Specification, the low-level SD Host Controller (SDHC) peripheral - driver is used. - -config MODULE_PERIPH_INIT_SDMMC_SDHC - bool - depends on MODULE_PERIPH_SDMMC_SDHC - default y if MODULE_PERIPH_INIT - -endif # MODULE_PERIPH_SDMMC diff --git a/drivers/periph_common/Kconfig.spi b/drivers/periph_common/Kconfig.spi index d928196d7825..3296c792abac 100644 --- a/drivers/periph_common/Kconfig.spi +++ b/drivers/periph_common/Kconfig.spi @@ -5,47 +5,13 @@ # directory for more details. # -menuconfig MODULE_PERIPH_SPI - bool "SPI peripheral driver" - depends on HAS_PERIPH_SPI - select MODULE_PERIPH_COMMON - -if MODULE_PERIPH_SPI - -config MODULE_PERIPH_INIT_SPI - bool "Auto initialize SPI peripheral" - default y if MODULE_PERIPH_INIT - -config MODULE_PERIPH_SPI_RECONFIGURE - bool "Pin reconfiguration support" - depends on HAS_PERIPH_SPI_RECONFIGURE - -config MODULE_PERIPH_SPI_ON_QSPI - bool "Use QSPI peripherial in SPI mode" - depends on HAS_PERIPH_SPI_ON_QSPI - -config MODULE_PERIPH_SPI_GPIO_MODE - bool "Support initializing SPI pins with adapted GPIO modes" - depends on HAS_PERIPH_SPI_GPIO_MODE - help - Say y to call `spi_init_with_gpio_mode`, which allows to initialize the SPI pins in - with an specific GPIO mode. +if USEMODULE_PERIPH_SPI # TODO: these modules are actually just artifacts from the way periph_init_% # modules are handled in Makefile. We need to define them to keep the list the # same for now. We should be able to remove them later on. -config MODULE_PERIPH_INIT_SPI_RECONFIGURE - bool "Auto initialize SPI pin reconfiguration support" - default y if MODULE_PERIPH_INIT - depends on MODULE_PERIPH_SPI_RECONFIGURE - -config MODULE_PERIPH_INIT_SPI_GPIO_MODE - bool - default y if MODULE_PERIPH_INIT - depends on MODULE_PERIPH_SPI_GPIO_MODE - # Include CPU specific configurations osource "$(RIOTCPU)/$(CPU)/periph/Kconfig.spi" -endif # MODULE_PERIPH_SPI +endif # USEMODULE_PERIPH_SPI diff --git a/drivers/periph_common/Kconfig.timer b/drivers/periph_common/Kconfig.timer index 9778f52535a6..5e4f61d3689c 100644 --- a/drivers/periph_common/Kconfig.timer +++ b/drivers/periph_common/Kconfig.timer @@ -4,47 +4,11 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. -if TEST_KCONFIG - -menuconfig MODULE_PERIPH_TIMER - bool "Timer peripheral driver" - depends on HAS_PERIPH_TIMER - select MODULE_PERIPH_COMMON - -if MODULE_PERIPH_TIMER - -# TODO: the 'init' modules are actually just artifacts from the way -# periph_init_% modules are handled in Makefile. We need to define them to keep -# the list the same for now. We should be able to remove them later on. - -config MODULE_PERIPH_INIT_TIMER - bool "Auto initialize Timer peripheral" - default y if MODULE_PERIPH_INIT - -config MODULE_PERIPH_TIMER_PERIODIC - bool "Periodic timeout support" - depends on HAS_PERIPH_TIMER_PERIODIC - -config MODULE_PERIPH_INIT_TIMER_PERIODIC - bool - depends on MODULE_PERIPH_TIMER_PERIODIC - default y if MODULE_PERIPH_INIT - -config MODULE_PERIPH_TIMER_QUERY_FREQS - bool "Support for querying supported timer frequencies" - depends on HAS_PERIPH_TIMER_QUERY_FREQS - -endif # MODULE_PERIPH_TIMER - -endif # TEST_KCONFIG - -menuconfig KCONFIG_USEMODULE_PERIPH_TIMER - bool "Configure timer peripheral driver" - depends on USEMODULE_PERIPH_TIMER - help - Configure Timer peripheral using Kconfig. - # Include CPU specific configurations -if KCONFIG_USEMODULE_PERIPH_TIMER +if USEMODULE_PERIPH_TIMER +menu "timer peripheral driver" + osource "$(RIOTCPU)/$(CPU)/periph/Kconfig.timer" -endif + +endmenu # timer peripheral driver +endif # USEMODULE_PERIPH_TIMER diff --git a/drivers/periph_common/Kconfig.uart b/drivers/periph_common/Kconfig.uart deleted file mode 100644 index 31ca0d7c913d..000000000000 --- a/drivers/periph_common/Kconfig.uart +++ /dev/null @@ -1,67 +0,0 @@ -# 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_PERIPH_UART - bool "UART peripheral driver" - depends on HAS_PERIPH_UART - select MODULE_PERIPH_COMMON - -if MODULE_PERIPH_UART - -# TODO: the 'init' modules are actually just artifacts from the way -# periph_init_% modules are handled in Makefile. We need to define them to keep -# the list the same for now. We should be able to remove them later on. - -config MODULE_PERIPH_INIT_UART - bool "Auto initialize UART peripheral" - default y if MODULE_PERIPH_INIT - -config MODULE_PERIPH_UART_MODECFG - bool "Mode configuration support" - depends on HAS_PERIPH_UART_MODECFG - -config MODULE_PERIPH_LPUART - bool "Enable Low Power UART (LPUART)" - depends on HAS_PERIPH_LPUART - -config MODULE_PERIPH_UART_COLLISION - bool "Enable UART collision detection" - depends on HAS_PERIPH_UART_COLLISION - -config MODULE_PERIPH_UART_NONBLOCKING - bool "Non-blocking support" - depends on HAS_PERIPH_UART_NONBLOCKING - -config MODULE_PERIPH_UART_RXSTART_IRQ - bool "Enable Start Condition Interrupt" - depends on HAS_PERIPH_UART_RXSTART_IRQ - -config MODULE_PERIPH_INIT_UART_MODECFG - bool - depends on MODULE_PERIPH_UART_MODECFG - default y if MODULE_PERIPH_INIT - -config MODULE_PERIPH_INIT_UART_NONBLOCKING - bool - depends on MODULE_PERIPH_UART_NONBLOCKING - default y if MODULE_PERIPH_INIT - -config MODULE_PERIPH_INIT_LPUART - bool - depends on MODULE_PERIPH_LPUART - default y if MODULE_PERIPH_INIT - -config MODULE_PERIPH_UART_HW_FC - bool - depends on HAS_PERIPH_UART_HW_FC - -config MODULE_PERIPH_INIT_UART_HW_FC - bool - depends on MODULE_PERIPH_UART_HW_FC - default y if MODULE_PERIPH_INIT - -endif # MODULE_PERIPH_UART diff --git a/drivers/periph_common/Kconfig.usbdev b/drivers/periph_common/Kconfig.usbdev deleted file mode 100644 index 32a364b558ea..000000000000 --- a/drivers/periph_common/Kconfig.usbdev +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright (c) 2020 HAW Hamburg -# 2022 Gunar Schorcht -# -# 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_PERIPH_USBDEV - bool "USBDEV peripheral driver" - depends on HAS_PERIPH_USBDEV - select MODULE_PERIPH_COMMON - select MODULE_PERIPH_USBDEV_CLK - -if MODULE_PERIPH_USBDEV - -# TODO: the 'init' modules are actually just artifacts from the way -# periph_init_% modules are handled in Makefile. We need to define them to keep -# the list the same for now. We should be able to remove them later on. - -config MODULE_PERIPH_INIT_USBDEV - bool "Auto initialize USBDEV peripheral" - default y if MODULE_PERIPH_INIT - -config MODULE_PERIPH_USBDEV_HS - bool "Use USB HS peripheral" - depends on HAS_PERIPH_USBDEV_HS - default y if MODULE_PERIPH_INIT_USBDEV_HS_ULPI || MODULE_PERIPH_USBDEV_HS_UTMI - -config MODULE_PERIPH_INIT_USBDEV_HS - bool - depends on MODULE_PERIPH_USBDEV_HS - default y if MODULE_PERIPH_INIT - -config MODULE_PERIPH_USBDEV_HS_ULPI - bool "Use USB HS peripheral with ULPI HS PHY" - depends on HAS_PERIPH_USBDEV_HS_ULPI - -config MODULE_PERIPH_INIT_USBDEV_HS_ULPI - bool - depends on MODULE_PERIPH_USBDEV_HS_ULPI - default y if MODULE_PERIPH_INIT - -config MODULE_PERIPH_USBDEV_HS_UTMI - bool "Use USB HS peripheral with internal UTMI+ HS PHY" - depends on HAS_PERIPH_USBDEV_HS_UTMI - -config MODULE_PERIPH_INIT_USBDEV_HS_UTMI - bool - depends on MODULE_PERIPH_USBDEV_HS_UTMI - default y if MODULE_PERIPH_INIT - -endif - -config MODULE_PERIPH_USBDEV_CLK - bool - help - Enable the USB device specific clock settings, if there are any - -config MODULE_PERIPH_INIT_USBDEV_CLK - bool - depends on MODULE_PERIPH_USBDEV_CLK - default y if MODULE_PERIPH_INIT diff --git a/drivers/periph_common/Kconfig.vbat b/drivers/periph_common/Kconfig.vbat index 0df040285a3b..95b06ad50faa 100644 --- a/drivers/periph_common/Kconfig.vbat +++ b/drivers/periph_common/Kconfig.vbat @@ -5,35 +5,14 @@ # directory for more details. # -menuconfig MODULE_PERIPH_VBAT - bool "Backup Battery monitoring driver" - depends on HAS_PERIPH_VBAT - depends on HAS_PERIPH_ADC - depends on TEST_KCONFIG - select MODULE_PERIPH_ADC - -if MODULE_PERIPH_VBAT - -config MODULE_PERIPH_INIT_VBAT - bool "Auto initialize VBAT ADC line" - default y if MODULE_PERIPH_INIT - -config VBAT_ADC_VREF_MV - int "ADC reference voltage in mV" - default 3300 - -endif # MODULE_PERIPH_VBAT - -menuconfig KCONFIG_USEMODULE_PERIPH_VBAT - bool "Configure backup battery monitoring peripheral driver" +menu "PERIPH_VBAT backup battery monitoring peripheral driver" depends on USEMODULE_PERIPH_VBAT - help - Configure backup battery monitoring peripheral driver using Kconfig. config VBAT_ADC_VREF_MV int "ADC reference voltage in mV" default 3300 - depends on KCONFIG_USEMODULE_PERIPH_VBAT help This is the reference voltage (VREF) of the ADC. Often VREF is connected with VDDA, which is equal to VDD. + +endmenu # PERIPH_VBAT backup battery monitoring peripheral driver diff --git a/drivers/periph_common/Kconfig.wdt b/drivers/periph_common/Kconfig.wdt index 3b7eba431a5a..f61fac6d0f1a 100644 --- a/drivers/periph_common/Kconfig.wdt +++ b/drivers/periph_common/Kconfig.wdt @@ -4,37 +4,8 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. -if TEST_KCONFIG - -menuconfig MODULE_PERIPH_WDT - bool "Watchdog Timer peripheral driver" - depends on HAS_PERIPH_WDT - select MODULE_PERIPH_COMMON - -config MODULE_PERIPH_INIT_WDT - bool "Auto initialize the Watchdog Timer peripheral" - default y if MODULE_PERIPH_INIT - depends on MODULE_PERIPH_WDT - -endif # TEST_KCONFIG - -menuconfig KCONFIG_USEMODULE_PERIPH_WDT - bool "Configure Watchdog peripheral" - depends on USEMODULE_PERIPH_WDT - help - Configure Watchdog peripheral using Kconfig. - -if KCONFIG_USEMODULE_PERIPH_WDT - config WDT_WARNING_PERIOD int "Warning period (in ms)" - depends on HAS_PERIPH_WDT_WARNING_PERIOD + depends on USEMODULE_PERIPH_WDT_WARNING_PERIOD help Period in ms before reboot where wdt_cb() is executed. - -endif # KCONFIG_USEMODULE_PERIPH_WDT - -config HAS_PERIPH_WDT_WARNING_PERIOD - bool - help - Indicates that a CPU provides a warning period configuration option. diff --git a/drivers/ph_oem/Kconfig b/drivers/ph_oem/Kconfig deleted file mode 100644 index a2b0108ebf6f..000000000000 --- a/drivers/ph_oem/Kconfig +++ /dev/null @@ -1,23 +0,0 @@ -# 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 - -config HAVE_PH_OEM - bool - select MODULE_PH_OEM if MODULE_SAUL_DEFAULT - help - Indicates that a Atlas Scientific pH OEM sensor is present. diff --git a/drivers/pir/Kconfig b/drivers/pir/Kconfig deleted file mode 100644 index d676cdff6632..000000000000 --- a/drivers/pir/Kconfig +++ /dev/null @@ -1,21 +0,0 @@ -# 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 ZTIMER64_USEC - -config HAVE_PIR - bool - select MODULE_PIR if MODULE_SAUL_DEFAULT - help - Indicates that a pir motion sensor is present. diff --git a/drivers/pn532/Kconfig b/drivers/pn532/Kconfig index d2ca1ecafaad..1883f2573f9c 100644 --- a/drivers/pn532/Kconfig +++ b/drivers/pn532/Kconfig @@ -6,58 +6,8 @@ # directory for more details. # -menuconfig MODULE_PN532 - bool - prompt "PN532 NFC reader" if !(MODULE_SAUL_DEFAULT && HAVE_PN532) - default (MODULE_SAUL_DEFAULT && HAVE_PN532) - depends on TEST_KCONFIG - depends on HAS_PERIPH_GPIO - depends on HAS_PERIPH_GPIO_IRQ - select MODULE_PERIPH_GPIO - select MODULE_PERIPH_GPIO_IRQ - select MODULE_ZTIMER - select MODULE_ZTIMER_MSEC - -if MODULE_PN532 - -config MODULE_PN532_I2C - bool "PN532 with I2C support" - default HAVE_PN532_I2C - depends on HAS_PERIPH_I2C - select MODULE_PERIPH_I2C - -config MODULE_PN532_SPI - bool "PN532 with SPI support" - default HAVE_PN532_SPI - depends on HAS_PERIPH_SPI - select MODULE_PERIPH_SPI - -endif # MODULE_PN532 - -config HAVE_PN532 - bool - help - Indicates that a PN532 NFC reader is present. - -config HAVE_PN532_I2C - bool - select HAVE_PN532 - help - Indicates that a PN532 NFC reader is present on the i2c bus. - -config HAVE_PN532_SPI - bool - select HAVE_PN532 - help - Indicates that a PN532 NFC reader is present on the spi bus. - -menuconfig KCONFIG_USEMODULE_PN532 - bool "Configure PN532 driver" +menu "PN532 driver" depends on USEMODULE_PN532 - help - Configure the PN532 driver using Kconfig. - -if KCONFIG_USEMODULE_PN532 config PN532_BUFFER_LEN int "Internal buffer size" @@ -67,4 +17,4 @@ config PN532_BUFFER_LEN For large NDEF files, the buffer size may be increased. Otherwise the files may be written in chunks. -endif # KCONFIG_USEMODULE_PN532 +endmenu # PN532 driver diff --git a/drivers/pulse_counter/Kconfig b/drivers/pulse_counter/Kconfig deleted file mode 100644 index 0209580088b4..000000000000 --- a/drivers/pulse_counter/Kconfig +++ /dev/null @@ -1,20 +0,0 @@ -# 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 - -config HAVE_PULSE_COUNTER - bool - select MODULE_PULSE_COUNTER if MODULE_SAUL_DEFAULT - help - Indicates that a pulse counter is present. diff --git a/drivers/qmc5883l/Kconfig b/drivers/qmc5883l/Kconfig deleted file mode 100644 index 7e855ae12bf6..000000000000 --- a/drivers/qmc5883l/Kconfig +++ /dev/null @@ -1,35 +0,0 @@ -# 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 - prompt "QMC5883L 3-Axis Digital Magnetic sensor" if !(MODULE_SAUL_DEFAULT && HAVE_QMC5883L) - default (MODULE_SAUL_DEFAULT && HAVE_QMC5883L) - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_PERIPH_I2C - -config MODULE_QMC5883L_INT - bool "Interrupt support" - default HAVE_QMC5883L_INT - depends on HAS_PERIPH_GPIO - depends on HAS_PERIPH_GPIO_IRQ - depends on MODULE_QMC5883L - select MODULE_PERIPH_GPIO - select MODULE_PERIPH_GPIO_IRQ - -config HAVE_QMC5883L - bool - help - Indicates that a QMC5883L 3-Axis Digital Magnetic sensor is present. - -config HAVE_QMC5883L_INT - bool - select HAVE_QMC5883L - help - Indicates that a QMC5883L 3-Axis Digital Magnetic sensor is present with - the interrupt wired. diff --git a/drivers/rn2xx3/Kconfig b/drivers/rn2xx3/Kconfig index 5d8b2390bddf..5d3327b35056 100644 --- a/drivers/rn2xx3/Kconfig +++ b/drivers/rn2xx3/Kconfig @@ -4,49 +4,9 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # +if USEMODULE_RN2XX3 -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_FMT - select MODULE_NETDEV_LEGACY_API - select MODULE_PERIPH_GPIO - select MODULE_PERIPH_UART - select MODULE_ZTIMER - select MODULE_ZTIMER_MSEC - -endif # TEST_KCONFIG - -config USEMODULE_RN2XX3 - bool - select HAVE_LORAWAN - -menuconfig KCONFIG_USEMODULE_RN2XX3 - bool "Configure RN2XX3 driver" - depends on USEMODULE_RN2XX3 - help - Configure the RN2XX3 driver using Kconfig. - -if KCONFIG_USEMODULE_RN2XX3 +menu "RN2XX3 driver configuration" config RN2XX3_DEFAULT_SLEEP int "Sleep duration in milliseconds [ms]" @@ -65,4 +25,6 @@ config RN2XX3_DEFAULT_AR Frame Pending bit has been set by the server. Refer RN2483 LoRa™ Technology Module Command Reference User’s Guide for more information. -endif # KCONFIG_USEMODULE_RN2XX3 +endmenu # RN2XX3 driver configuration + +endif # USEMODULE_RN2XX3 diff --git a/drivers/rtt_rtc/Kconfig b/drivers/rtt_rtc/Kconfig deleted file mode 100644 index 93c0227600c0..000000000000 --- a/drivers/rtt_rtc/Kconfig +++ /dev/null @@ -1,15 +0,0 @@ -# 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 MODULE_RTC_UTILS - help - Basic RTC implementation based on a RTT. diff --git a/drivers/saul/Kconfig b/drivers/saul/Kconfig deleted file mode 100644 index f537445cb844..000000000000 --- a/drivers/saul/Kconfig +++ /dev/null @@ -1,70 +0,0 @@ -# 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_SAUL - bool "[S]ensor [A]ctuator [U]ber [L]ayer" - select MODULE_PHYDAT - depends on TEST_KCONFIG - help - SAUL is a generic actuator/sensor interface in RIOT. Its purpose is to - enable unified interaction with a wide range of sensors and actuators - through a set of defined access functions and a common data structure. - -if MODULE_SAUL - -config MODULE_SAUL_DEFAULT - bool "Enable the default sensors and actuators of the platform" - depends on MODULE_SAUL_REG - -config MODULE_SAUL_ADC - bool "SAUL wrapper for direct access to analog pins" - depends on HAS_PERIPH_ADC - select MODULE_PERIPH_ADC - -config MODULE_SAUL_GPIO - bool "SAUL wrapper for direct access to GPIO pins" - depends on HAS_PERIPH_GPIO - select MODULE_PERIPH_GPIO - -config MODULE_SAUL_PWM - bool "SAUL wrapper PWM enabled GPIO pins" - depends on HAS_PERIPH_PWM - select MODULE_PERIPH_PWM - -config MODULE_SAUL_NRF_TEMPERATURE - bool "SAUL wrapper for direct access to the temperature peripheral" - depends on HAS_PERIPH_TEMPERATURE - select MODULE_PERIPH_TEMPERATURE - -config MODULE_AUTO_INIT_SAUL - bool "Auto initialize the SAUL subsystem" - depends on MODULE_AUTO_INIT - select MODULE_SAUL_INIT_DEVS - default y - -config MODULE_SAUL_INIT_DEVS - bool - -endif # MODULE_SAUL - -config HAVE_SAUL_ADC - bool - select MODULE_SAUL_ADC if MODULE_SAUL_DEFAULT - help - Indicates that configuration for ADC access via SAUL is available. - -config HAVE_SAUL_GPIO - bool - select MODULE_SAUL_GPIO if MODULE_SAUL_DEFAULT - help - Indicates that configuration for GPIO access via SAUL is available. - -config HAVE_SAUL_PWM - bool - select MODULE_SAUL_PWM if MODULE_SAUL_DEFAULT - help - Indicates that configuration for PWM access via SAUL is available. diff --git a/drivers/scd30/Kconfig b/drivers/scd30/Kconfig deleted file mode 100644 index b2ca540b45c0..000000000000 --- a/drivers/scd30/Kconfig +++ /dev/null @@ -1,20 +0,0 @@ -# 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_SCD30 - bool "SCD30 CO2, temperature and humidity sensor" - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_PERIPH_I2C - select MODULE_CHECKSUM - select MODULE_XTIMER - -config HAVE_SCD30 - bool - select MODULE_SCD30 if MODULE_SAUL_DEFAULT - help - Indicates that a SCD30 CO2, temperature and humidity sensor is present. diff --git a/drivers/sdcard_spi/Kconfig b/drivers/sdcard_spi/Kconfig deleted file mode 100644 index 35fdb1ef5eba..000000000000 --- a/drivers/sdcard_spi/Kconfig +++ /dev/null @@ -1,23 +0,0 @@ -# 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_CHECKSUM - select MODULE_ZTIMER - select ZTIMER_USEC - -config HAVE_SDCARD_SPI - bool - help - Indicates that a SPI SD-Card is present. diff --git a/drivers/sdmmc/Kconfig b/drivers/sdmmc/Kconfig deleted file mode 100644 index 4b9efa06f8ab..000000000000 --- a/drivers/sdmmc/Kconfig +++ /dev/null @@ -1,31 +0,0 @@ -# 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_SDMMC - bool "SDIO/SD/MMC interface" - depends on HAS_PERIPH_SDMMC - select MODULE_PERIPH_SDMMC - select MODULE_ZTIMER_MSEC - -if MODULE_SDMMC - -config MODULE_SDMMC_MMC - bool "MMC support" - depends on HAS_PERIPH_SDMMC_MMC - help - Say y to support MMCs/eMMCs. - -config MODULE_SDMMC_SDHC - bool - depends on HAS_PERIPH_SDMMC_SDHC - default y - help - SDHC driver is used as low-level SDIO/SD/MMC implementation for - peripherals that are compliant with SD Host Controller Simplified - Specification, Version 3.00. - -endif # MODULE_SDMMC diff --git a/drivers/sdp3x/Kconfig b/drivers/sdp3x/Kconfig deleted file mode 100644 index 0725f82c4673..000000000000 --- a/drivers/sdp3x/Kconfig +++ /dev/null @@ -1,37 +0,0 @@ -# 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_SDP3X - bool - prompt "SDP3X temperature and differential pressure sensor" if !(MODULE_SAUL_DEFAULT && HAVE_SDP3X) - default (MODULE_SAUL_DEFAULT && HAVE_SDP3X) - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_PERIPH_I2C - select MODULE_CHECKSUM - select MODULE_XTIMER - -config MODULE_SDP3X_IRQ - bool "GPIO interrupt support" - default HAVE_SDP3X_IRQ - depends on HAS_PERIPH_GPIO - depends on HAS_PERIPH_GPIO_IRQ - depends on MODULE_SDP3X - select MODULE_PERIPH_GPIO - select MODULE_PERIPH_GPIO_IRQ - -config HAVE_SDP3X - bool - help - Indicates that a SDP3X temperature and differential pressure sensor is present. - -config HAVE_SDP3X_IRQ - bool - select HAVE_SDP3X - help - Indicates that a SDP3X temperature and differential pressure sensor is - present with the interrupt pin wired. diff --git a/drivers/sds011/Kconfig b/drivers/sds011/Kconfig deleted file mode 100644 index 093de7685ffb..000000000000 --- a/drivers/sds011/Kconfig +++ /dev/null @@ -1,18 +0,0 @@ -# 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_SDS011 - bool "SDS011 Laser Dust Sensor" - depends on HAS_PERIPH_UART - depends on TEST_KCONFIG - select MODULE_PERIPH_UART - -config HAVE_SDP3X - bool - select MODULE_SDS011 if MODULE_SAUL_DEFAULT - help - Indicates that a SDS011 Laser Dust Sensor is present. diff --git a/drivers/seesaw_soil/Kconfig b/drivers/seesaw_soil/Kconfig index a69008864e7a..03cbe2b56e56 100644 --- a/drivers/seesaw_soil/Kconfig +++ b/drivers/seesaw_soil/Kconfig @@ -6,26 +6,8 @@ # directory for more details. # -config MODULE_SEESAW_SOIL - bool "Adafruit Seesaw Soil Moisture and Temperature Sensor" - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_PERIPH_I2C - select MODULE_XTIMER - -config HAVE_SEESAW_SOIL - bool - select MODULE_SEESAW_SOIL if MODULE_SAUL_DEFAULT - help - Indicates that a Adafruit Seesaw Soil Moisture and Temperature Sensor is present. - -menuconfig KCONFIG_MODULE_SEESAW_SOIL - bool "Configure SEESAW_SOIL driver" - depends on MODULE_SEESAW_SOIL - help - Configure the SEESAW_SOIL driver using Kconfig. - -if KCONFIG_MODULE_SEESAW_SOIL +menu "SEESAW_SOIL driver" + depends on USEMODULE_SEESAW_SOIL config SEESAW_SOIL_I2C_ADDRESS hex "I2C default address" @@ -35,4 +17,4 @@ config SEESAW_SOIL_I2C_ADDRESS SEESAW_SOIL allows for up to 4 devices on single bus. The value depends on the state of AD1 and AD0 pins. -endif # KCONFIG_MODULE_SEESAW_SOIL +endmenu # SEESAW_SOIL driver diff --git a/drivers/servo/Kconfig b/drivers/servo/Kconfig deleted file mode 100644 index 21ce76e1d7de..000000000000 --- a/drivers/servo/Kconfig +++ /dev/null @@ -1,41 +0,0 @@ -# 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_SERVO - bool "Servo motor driver" - depends on TEST_KCONFIG - select MODULE_SERVO_SAUL if MODULE_SAUL_DEFAULT - -config MODULE_SERVO_SAUL - bool "SAUL integration of the servo motor driver" - depends on TEST_KCONFIG - -choice SERVO_DRIVER_BACKEND - bool "Servo motor driver backend" - depends on MODULE_SERVO - default MODULE_SERVO_PWM if HAS_PERIPH_PWM - default MODULE_SERVO_TIMER if !HAS_PERIPH_PWM && HAS_PERIPH_TIMER_PERIODIC - -config MODULE_SERVO_PWM - bool "periph_pwm based Servo Motor driver backend (preferred)" - depends on HAS_PERIPH_PWM - # PWM prescaler on nRF5x MCUs cannot generate a 50 Hz signal - depends on !HAS_CPU_NRF51 - depends on !HAS_CPU_NRF52 - depends on !HAS_CPU_NRF53 - depends on !HAS_CPU_NRF9160 - select MODULE_PERIPH_PWM - select SERVO_DRIVER_BACKEND - -config MODULE_SERVO_TIMER - bool "periph_timer based Servo Motor driver backend" - depends on HAS_PERIPH_TIMER - depends on HAS_PERIPH_TIMER_PERIODIC - select MODULE_PERIPH_TIMER - select MODULE_PERIPH_TIMER_PERIODIC - select SERVO_DRIVER_BACKEND -endchoice diff --git a/drivers/sgp30/Kconfig b/drivers/sgp30/Kconfig deleted file mode 100644 index 9e93004d1511..000000000000 --- a/drivers/sgp30/Kconfig +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright (c) 2021 Inria -# -# 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_SGP30 - bool - prompt "SGP30 Particulate Matter Sensor" if !(MODULE_SAUL_DEFAULT && HAVE_SGP30) - default (MODULE_SAUL_DEFAULT && HAVE_SGP30) - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_CHECKSUM - select MODULE_PERIPH_I2C - select MODULE_ZTIMER - select MODULE_ZTIMER_PERIPH_TIMER - select ZTIMER_USEC - -config MODULE_SGP30_STRICT - bool "Strict reading period" - depends on MODULE_SGP30 - default y - help - If this module is enabled regular measurements will be performed - every second and no values will be returned before the 15s warmup - period, see the datasheet for more. - -config HAVE_SGP30 - bool - help - Indicates that a SGP30 Particulate Matter Sensor is present. diff --git a/drivers/sht1x/Kconfig b/drivers/sht1x/Kconfig deleted file mode 100644 index b3dfe10e4d76..000000000000 --- a/drivers/sht1x/Kconfig +++ /dev/null @@ -1,56 +0,0 @@ -# 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_SHT1X - bool - prompt "SHT10/SHT11/SHT15 Humidity and Temperature Sensor" if !(HAVE_SHT1X && MODULE_SAUL_DEFAULT) - default y if HAVE_SHT1X && MODULE_SAUL_DEFAULT - depends on HAS_PERIPH_GPIO - depends on TEST_KCONFIG - select MODULE_PERIPH_GPIO - select MODULE_XTIMER - -choice SHT1X_VARIANT - bool "Select sensor variant" - depends on MODULE_SHT1X - default MODULE_SHT10 if HAVE_SHT10 - default MODULE_SHT11 if HAVE_SHT11 - default MODULE_SHT15 if HAVE_SHT15 - -config MODULE_SHT10 - bool "SHT10" - -config MODULE_SHT11 - bool "SHT11" - -config MODULE_SHT15 - bool "SHT15" - -endchoice - -config HAVE_SHT10 - bool - select HAVE_SHT1X - help - Indicates that an sht10 humidity and temperature sensor is present. - -config HAVE_SHT11 - bool - select HAVE_SHT1X - help - Indicates that an sht11 humidity and temperature sensor is present. - -config HAVE_SHT15 - bool - select HAVE_SHT1X - help - Indicates that an sht15 humidity and temperature sensor is present. - -config HAVE_SHT1X - bool - help - Indicates that an sht1x humidity and temperature sensor is present. diff --git a/drivers/sht2x/Kconfig b/drivers/sht2x/Kconfig index 72e952ce0663..71462d6ad19a 100644 --- a/drivers/sht2x/Kconfig +++ b/drivers/sht2x/Kconfig @@ -5,21 +5,7 @@ # directory for more details. # -config HAVE_SHT2X - bool - select MODULE_SHT2X if MODULE_SAUL_DEFAULT - help - Indicates that a SHT2x humidity and temperature sensor is present. - -menuconfig MODULE_SHT2X - bool "SHT2x humidity and temperature sensor" - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_CHECKSUM - select MODULE_PERIPH_I2C - select MODULE_ZTIMER_MSEC - -if MODULE_SHT2X +if USEMODULE_SHT2X choice bool "Measurement Resolution" @@ -67,4 +53,4 @@ config SHT2X_CRC_MODE help Enable to check the CRC of measurement data. -endif # MODULE_SHT2X +endif # USEMODULE_SHT2X diff --git a/drivers/sht3x/Kconfig b/drivers/sht3x/Kconfig deleted file mode 100644 index f6ff45718c44..000000000000 --- a/drivers/sht3x/Kconfig +++ /dev/null @@ -1,20 +0,0 @@ -# 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_SHT3X - bool "Sensirion SHT30/SHT31/SHT35 Humidity and Temperature Sensors" - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_PERIPH_I2C - select MODULE_CHECKSUM - select MODULE_ZTIMER_MSEC - -config HAVE_SHT3X - bool - select MODULE_SHT3X if MODULE_SAUL_DEFAULT - help - Indicates that a SHT30/SHT31/SHT35 sensor is present. diff --git a/drivers/shtcx/Kconfig b/drivers/shtcx/Kconfig deleted file mode 100644 index a25fd84e8b43..000000000000 --- a/drivers/shtcx/Kconfig +++ /dev/null @@ -1,59 +0,0 @@ -# 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_SHTCX - bool - prompt "SHTCX Temperature and humidity sensors" if !(MODULE_SAUL_DEFAULT && HAVE_SHTCX) - default y if (MODULE_SAUL_DEFAULT && HAVE_SHTCX) - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_PERIPH_I2C - select MODULE_CHECKSUM - help - Device driver for the Sensirion SHTCX Temperature and Humidity sensor family - (SHTC1/SHTC3). Select a model. - -if MODULE_SHTCX - -choice - bool "sensor variant" - default MODULE_SHTC1 if HAVE_SHTC1 - default MODULE_SHTC3 if HAVE_SHTC3 - help - Device driver for the SHTCX pressure sensor family - (SHTC1/SHTC3). Select a model. - -config MODULE_SHTC1 - bool "SHTC1" - -config MODULE_SHTC3 - bool "SHTC3" - -endchoice - -endif # MODULE_SHTCX - -menuconfig KCONFIG_USEMODULE_SHTCX - bool "Configure SHTCX driver" - depends on USEMODULE_SHTCX - help - Configure the SHTCX driver using Kconfig. - -config HAVE_SHTCX - bool - -config HAVE_SHTC1 - bool - select HAVE_SHTCX - help - Indicates that an SHTC1 sensor is present. - -config HAVE_SHTC3 - bool - select HAVE_SHTCX - help - Indicates that an SHTC3 sensor is present. diff --git a/drivers/si1133/Kconfig b/drivers/si1133/Kconfig deleted file mode 100644 index 5f15ed555468..000000000000 --- a/drivers/si1133/Kconfig +++ /dev/null @@ -1,20 +0,0 @@ -# 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_SI1133 - bool "Si1133 UV Index/Ambient Light Sensor with I2C" - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_PERIPH_I2C - select MODULE_ZTIMER - select ZTIMER_USEC - -config HAVE_SI1133 - bool - select MODULE_SI1133 if MODULE_SAUL_DEFAULT - help - Indicates that a Si1133 UV Index/Ambient Light Sensor is present. diff --git a/drivers/si114x/Kconfig b/drivers/si114x/Kconfig deleted file mode 100644 index 9c77c819190b..000000000000 --- a/drivers/si114x/Kconfig +++ /dev/null @@ -1,57 +0,0 @@ -# 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_SI114X - bool - prompt "Si1145/6/7 UV/Ambient light/Proximity sensors" if !(MODULE_SAUL_DEFAULT && HAVE_SI114X) - default (MODULE_SAUL_DEFAULT && HAVE_SI114X) - depends on TEST_KCONFIG - depends on HAS_PERIPH_I2C - select MODULE_PERIPH_I2C - select MODULE_ZTIMER - select MODULE_ZTIMER_MSEC - -choice SI114X_VARIANT - bool "variant" - depends on MODULE_SI114X - default MODULE_SI1145 if HAVE_SI1145 - default MODULE_SI1146 if HAVE_SI1146 - default MODULE_SI1147 if HAVE_SI1147 - -config MODULE_SI1145 - bool "SI1145" - -config MODULE_SI1146 - bool "SI1146" - -config MODULE_SI1147 - bool "SI1147" - -endchoice - -config HAVE_SI114X - bool - help - Indicates that a Si114X UV/Ambient light/Proximity sensor is present. - -config HAVE_SI1145 - bool - select HAVE_SI114X - help - Indicates that a Si1145 UV/Ambient light/Proximity sensor is present. - -config HAVE_SI1146 - bool - select HAVE_SI114X - help - Indicates that a Si1146 UV/Ambient light/Proximity sensor is present. - -config HAVE_SI1147 - bool - select HAVE_SI114X - help - Indicates that a Si1147 UV/Ambient light/Proximity sensor is present. diff --git a/drivers/si70xx/Kconfig b/drivers/si70xx/Kconfig deleted file mode 100644 index cb5486d6ce73..000000000000 --- a/drivers/si70xx/Kconfig +++ /dev/null @@ -1,67 +0,0 @@ -# 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_SI70XX - bool - prompt "Si7006/13/20/21 temperature and humidity sensors" if !(MODULE_SAUL_DEFAULT && HAVE_SI70XX) - default (MODULE_SAUL_DEFAULT && HAVE_SI70XX) - depends on TEST_KCONFIG - depends on HAS_PERIPH_I2C - select MODULE_PERIPH_I2C - select MODULE_ZTIMER - select MODULE_ZTIMER_MSEC - -choice SI70XX_VARIANT - bool "Sensor variant" - depends on MODULE_SI70XX - default MODULE_SI7006 if HAVE_SI7006 - default MODULE_SI7013 if HAVE_SI7013 - default MODULE_SI7020 if HAVE_SI7020 - default MODULE_SI7021 if HAVE_SI7021 - -config MODULE_SI7006 - bool "SI7006" - -config MODULE_SI7013 - bool "SI7013" - -config MODULE_SI7020 - bool "SI7020" - -config MODULE_SI7021 - bool "SI7021" - -endchoice - -config HAVE_SI70XX - bool - help - Indicates that a si70XX sensor is present. - -config HAVE_SI7006 - bool - select HAVE_SI70XX - help - Indicates that a si7006 sensor is present. - -config HAVE_SI7013 - bool - select HAVE_SI70XX - help - Indicates that a si7013 sensor is present. - -config HAVE_SI7020 - bool - select HAVE_SI70XX - help - Indicates that a si7020 sensor is present. - -config HAVE_SI7021 - bool - select HAVE_SI70XX - help - Indicates that a si7021 sensor is present. diff --git a/drivers/slipdev/Kconfig b/drivers/slipdev/Kconfig index 3ac6de666f0c..fea3d5599980 100644 --- a/drivers/slipdev/Kconfig +++ b/drivers/slipdev/Kconfig @@ -6,21 +6,8 @@ # directory for more details. # -menuconfig MODULE_SLIPDEV - bool "SLIP over UART network device" - depends on HAS_PERIPH_UART - depends on TEST_KCONFIG - select MODULE_NETDEV_LEGACY_API - select MODULE_CHUNKED_RINGBUFFER - select MODULE_PERIPH_UART - -menuconfig KCONFIG_USEMODULE_SLIPDEV - bool "Configure SLIPDEV driver" +menu "SLIPDEV driver" depends on USEMODULE_SLIPDEV - help - Configure the SLIPDEV driver using Kconfig. - -if KCONFIG_USEMODULE_SLIPDEV config SLIPDEV_BUFSIZE_EXP int "Buffer size (as exponent of 2^n)" @@ -32,4 +19,4 @@ config SLIPDEV_BUFSIZE_EXP not include full IPv6 MTU. Value represents the exponent n of 2^n. -endif # KCONFIG_USEMODULE_SLIPDEV +endmenu # SLIPDEV driver diff --git a/drivers/sm_pwm_01c/Kconfig b/drivers/sm_pwm_01c/Kconfig index d52c46e716cc..9a8537558e35 100644 --- a/drivers/sm_pwm_01c/Kconfig +++ b/drivers/sm_pwm_01c/Kconfig @@ -1,40 +1,6 @@ -# Copyright (c) 2021 Inria -# -# 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_SM_PWM_01C - bool - prompt "SM_PWM_01C Amphenol infrared dust sensor" if !(MODULE_SAUL_DEFAULT && HAVE_SM_PWM_01C) - default (MODULE_SAUL_DEFAULT && HAVE_SM_PWM_01C) - 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_ZTIMER - select ZTIMER_USEC - select MODULE_ZTIMER_PERIPH_TIMER -config MODULE_SM_PWM_01C_MA - bool "Use a moving average for sensor values" - depends on MODULE_SM_PWM_01C - default y - -config HAVE_SM_PWM_01C - bool - help - Indicates that a SM_PWM_01C Amphenol infrared dust sensor is present. - - -menuconfig KCONFIG_USEMODULE_SM_PWM_01C - bool "Configure SM_PWM_01C driver" +menu "SM_PWM_01C driver" depends on USEMODULE_SM_PWM_01C - help - Configure the SM_PWM_01C driver using Kconfig. - -if KCONFIG_USEMODULE_SM_PWM_01C config SM_PWM_01C_WINDOW_TIME int "Measuring Window length" @@ -64,4 +30,4 @@ config SM_PWM_01C_EXP_WEIGHT endif # USEMODULE_SM_PWM_01C_MA -endif # KCONFIG_USEMODULE_SM_PWM_01C +endmenu # SM_PWM_01C driver diff --git a/drivers/soft_spi/Kconfig b/drivers/soft_spi/Kconfig deleted file mode 100644 index 5ba30b749a38..000000000000 --- a/drivers/soft_spi/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# 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_SOFT_SPI - bool "Software-implemented SPI" - depends on HAS_PERIPH_GPIO - depends on TEST_KCONFIG - select MODULE_PERIPH_GPIO - select MODULE_XTIMER diff --git a/drivers/soft_uart/Kconfig b/drivers/soft_uart/Kconfig deleted file mode 100644 index 1f0d24f5bddf..000000000000 --- a/drivers/soft_uart/Kconfig +++ /dev/null @@ -1,22 +0,0 @@ -# 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_SOFT_UART - bool "Software-implemented UART" - depends on HAS_PERIPH_GPIO - depends on HAS_PERIPH_GPIO_IRQ - depends on HAS_PERIPH_TIMER - depends on HAS_PERIPH_TIMER_PERIODIC - depends on TEST_KCONFIG - select MODULE_PERIPH_GPIO - select MODULE_PERIPH_GPIO_IRQ - select MODULE_PERIPH_TIMER - select MODULE_PERIPH_TIMER_PERIODIC - -config MODULE_SOFT_UART_MODECFG - bool "Mode configuration support" - depends on MODULE_SOFT_UART diff --git a/drivers/sps30/Kconfig b/drivers/sps30/Kconfig index 5967f849c1a4..697500ac5ae9 100644 --- a/drivers/sps30/Kconfig +++ b/drivers/sps30/Kconfig @@ -6,26 +6,8 @@ # directory for more details. # -config MODULE_SPS30 - bool "SPS30 Particulate Matter Sensor" - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_CHECKSUM - select MODULE_PERIPH_I2C - -config HAVE_SPS30 - bool - select MODULE_SPS30 if MODULE_SAUL_DEFAULT - help - Indicates that a SPS30 Particulate Matter Sensor is present. - -menuconfig KCONFIG_USEMODULE_SPS30 - bool "Configure SPS30 driver" +menu "SPS30 driver" depends on USEMODULE_SPS30 - help - Configure the SPS30 driver using Kconfig. - -if KCONFIG_USEMODULE_SPS30 config SPS30_ERROR_RETRY int "Maximum number of error retries" @@ -36,4 +18,4 @@ config SPS30_ERROR_RETRY The value may be increased if the device is connected over suboptimal wiring. -endif # KCONFIG_USEMODULE_SPS30 +endmenu # SPS30 driver diff --git a/drivers/srf02/Kconfig b/drivers/srf02/Kconfig deleted file mode 100644 index 33d9925e64b6..000000000000 --- a/drivers/srf02/Kconfig +++ /dev/null @@ -1,18 +0,0 @@ -# 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_SRF02 - bool "SRF02 ultrasonic range sensor" - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_PERIPH_I2C - select MODULE_XTIMER - -config HAVE_SRF02 - bool - help - Indicates that a SRF02 ultrasonic range sensor is present. diff --git a/drivers/srf04/Kconfig b/drivers/srf04/Kconfig deleted file mode 100644 index 4f73e1bad297..000000000000 --- a/drivers/srf04/Kconfig +++ /dev/null @@ -1,20 +0,0 @@ -# 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_SRF04 - bool "SRF04 ultrasonic range finder" - 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 - -config HAVE_SRF04 - bool - help - Indicates that a SRF04 ultrasonic range finder is present. diff --git a/drivers/srf08/Kconfig b/drivers/srf08/Kconfig deleted file mode 100644 index 849dafa042c2..000000000000 --- a/drivers/srf08/Kconfig +++ /dev/null @@ -1,18 +0,0 @@ -# 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_SRF08 - bool "SRF08 ultrasonic range sensor" - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_PERIPH_I2C - select MODULE_XTIMER - -config HAVE_SRF08 - bool - help - Indicates that a SRF08 ultrasonic range finder is present. diff --git a/drivers/st77xx/Kconfig b/drivers/st77xx/Kconfig index 72a6748cd808..e7cbfe4cc30c 100644 --- a/drivers/st77xx/Kconfig +++ b/drivers/st77xx/Kconfig @@ -5,42 +5,6 @@ # directory for more details. # -menuconfig MODULE_ST77XX - bool "ST77xx display driver" - default y if MODULE_DISP_DEV && HAVE_ST77XX - depends on HAS_PERIPH_SPI - depends on HAS_PERIPH_GPIO - depends on TEST_KCONFIG - select MODULE_PERIPH_SPI - select MODULE_PERIPH_GPIO - select MODULE_LCD - select MODULE_LCD_MULTI_CNTRL - select MODULE_ZTIMER - select MODULE_ZTIMER_MSEC - rsource "Kconfig.st7735" rsource "Kconfig.st7789" rsource "Kconfig.st7796" - -config HAVE_ST77XX - bool - help - Indicates that a ST77XX display is present. - -config HAVE_ST7735 - bool - select HAVE_ST77XX - help - Indicates that a ST7735 display is present. - -config HAVE_ST7789 - bool - select HAVE_ST77XX - help - Indicates that a ST7789 display is present. - -config HAVE_ST7796 - bool - select HAVE_ST77XX - help - Indicates that a ST7796 display is present. diff --git a/drivers/st77xx/Kconfig.st7735 b/drivers/st77xx/Kconfig.st7735 index ac2a80d6adea..1b51be92c2a0 100644 --- a/drivers/st77xx/Kconfig.st7735 +++ b/drivers/st77xx/Kconfig.st7735 @@ -5,15 +5,9 @@ # directory for more details. # -if MODULE_ST77XX +if USEMODULE_ST77XX -config MODULE_ST7735 - bool "ST7735 display" - default y if !MODULE_ST7789 && !MODULE_ST7796 - help - ST7735 display controller is used - -if MODULE_ST7735 +if USEMODULE_ST7735 menuconfig ST7735_CUSTOM_CONFIG bool "ST7735 Custom Configuration" @@ -80,5 +74,5 @@ config ST7735_VGL in steps of 2500. endif # ST7735_CUSTOM_CONFIG -endif # MODULE_ST7735 -endif # MODULE_ST77XX +endif # USEMODULE_ST7735 +endif # USEMODULE_ST77XX diff --git a/drivers/st77xx/Kconfig.st7789 b/drivers/st77xx/Kconfig.st7789 index ba1e4a72094d..c16ea424d3bf 100644 --- a/drivers/st77xx/Kconfig.st7789 +++ b/drivers/st77xx/Kconfig.st7789 @@ -5,15 +5,9 @@ # directory for more details. # -if MODULE_ST77XX +if USEMODULE_ST77XX -config MODULE_ST7789 - bool "ST7789 display" - default y if HAVE_ST7789 - help - ST7789 display controller is used - -if MODULE_ST7789 +if USEMODULE_ST7789 menuconfig ST7789_CUSTOM_CONFIG bool "ST7789 Custom Configuration" @@ -106,5 +100,5 @@ config ST7789_VRH # TODO ST7789_VGH and ST7789_VGL (non linear values) endif # ST7789_CUSTOM_CONFIG -endif # MODULE_ST7789 -endif # MODULE_ST77XX +endif # USEMODULE_ST7789 +endif # USEMODULE_ST77XX diff --git a/drivers/st77xx/Kconfig.st7796 b/drivers/st77xx/Kconfig.st7796 index 295f3ea2bf02..11b57b6c5374 100644 --- a/drivers/st77xx/Kconfig.st7796 +++ b/drivers/st77xx/Kconfig.st7796 @@ -5,15 +5,9 @@ # directory for more details. # -if MODULE_ST77XX +if USEMODULE_ST77XX -config MODULE_ST7796 - bool "ST7796 display" - default y if HAVE_ST7796 - help - ST7796 display controller is used - -if MODULE_ST7796 +if USEMODULE_ST7796 menuconfig ST7796_CUSTOM_CONFIG bool "ST7796 Custom Configuration" @@ -91,5 +85,5 @@ config ST7796_VRH # TODO ST7796_VGH and ST7796_VGL (non linear values) endif # ST7796_CUSTOM_CONFIG -endif # MODULE_ST7796 -endif # MODULE_ST77XX +endif # USEMODULE_ST7796 +endif # USEMODULE_ST77XX diff --git a/drivers/stmpe811/Kconfig b/drivers/stmpe811/Kconfig deleted file mode 100644 index 27d68b3a03e5..000000000000 --- a/drivers/stmpe811/Kconfig +++ /dev/null @@ -1,60 +0,0 @@ -# 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_STMPE811 - bool - prompt "STMPE811 Touchscreen Controller" if !(MODULE_TOUCH_DEV && HAVE_STMPE811) - default (MODULE_TOUCH_DEV && HAVE_STMPE811) - 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_ZTIMER - select MODULE_ZTIMER_MSEC - -if MODULE_STMPE811 - -choice STMPE811_VARIANT - bool "Model" - default MODULE_STMPE811_I2C if HAVE_STMPE811_I2C - default MODULE_STMPE811_SPI if HAVE_STMPE811_SPI - help - The driver supports both stmpe811 connected either via SPI or - I2C bus. Select one combination. - -config MODULE_STMPE811_I2C - bool "STMPE811 on I2C" - depends on HAS_PERIPH_I2C - select MODULE_PERIPH_I2C - -config MODULE_STMPE811_SPI - bool "STMPE811 on SPI" - depends on HAS_PERIPH_SPI - depends on HAS_PERIPH_GPIO - select MODULE_PERIPH_SPI - select MODULE_PERIPH_GPIO -endchoice - -endif # MODULE_STMPE811 - -config HAVE_STMPE811 - bool - help - Indicates that an STMPE811 is present. - -config HAVE_STMPE811_I2C - bool - select HAVE_STMPE811 - help - Indicates that an STMPE811 over I2C touch panel is present. - -config HAVE_STMPE811_SPI - bool - select HAVE_STMPE811 - help - Indicates that an STMPE811 over SPI touch panel is present. diff --git a/drivers/sx126x/Kconfig b/drivers/sx126x/Kconfig deleted file mode 100644 index dbc2ac65905c..000000000000 --- a/drivers/sx126x/Kconfig +++ /dev/null @@ -1,91 +0,0 @@ -# Copyright (c) 2021 Inria -# 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_SX126X - bool - prompt "SX1261/2/8 and LLCC68 LoRa radio driver" if !(HAVE_SX126X && MODULE_NETDEV_DEFAULT) - default y if (HAVE_SX126X && MODULE_NETDEV_DEFAULT) - depends on TEST_KCONFIG - depends on HAS_PERIPH_SPI - depends on HAS_PERIPH_GPIO - depends on HAS_PERIPH_GPIO_IRQ - select MODULE_IOLIST - select MODULE_LORA - select MODULE_NETDEV_LEGACY_API - select MODULE_PERIPH_GPIO - select MODULE_PERIPH_GPIO_IRQ - select MODULE_PERIPH_SPI - select PACKAGE_DRIVER_SX126X - -if MODULE_SX126X - -choice - bool "Radio variant" - default MODULE_SX1261 if HAVE_SX1261 - default MODULE_SX1262 if HAVE_SX1262 - default MODULE_SX1268 if HAVE_SX1268 - default MODULE_LLCC68 if HAVE_LLCC68 - default MODULE_SX126X_STM32WL if HAVE_SX126X_STM32WL - -config MODULE_SX1261 - bool "SX1261" - -config MODULE_SX1262 - bool "SX1262" - -config MODULE_SX1268 - bool "SX1268" - -config MODULE_LLCC68 - bool "LLCC68" - -config MODULE_SX126X_STM32WL - bool "SX126X-STM32WL" - -endchoice - -config MODULE_SX126X_RF_SWITCH - bool - depends on HAS_PERIPH_GPIO - select MODULE_PERIPH_GPIO - -endif # MODULE_SX126X - -config HAVE_SX1261 - bool - select HAVE_SX126X - help - Indicates that an sx1261 transceiver is present. - -config HAVE_SX1262 - bool - select HAVE_SX126X - help - Indicates that an sx1262 transceiver is present. - -config HAVE_SX1268 - bool - select HAVE_SX126X - help - Indicates that an sx1268 transceiver is present. - -config HAVE_LLCC68 - bool - select HAVE_SX126X - help - Indicates that an llcc68 transceiver is present. - -config HAVE_SX126X_STM32WL - bool - select HAVE_SX126X - help - Indicates that an sx126x_stm32wl transceiver is present. - -config HAVE_SX126X - bool - help - Indicates that an sx126x transceiver is present. diff --git a/drivers/sx127x/Kconfig b/drivers/sx127x/Kconfig deleted file mode 100644 index d17f567ac9fb..000000000000 --- a/drivers/sx127x/Kconfig +++ /dev/null @@ -1,58 +0,0 @@ -# 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_SX127X - bool - prompt "Semtech SX1272 and SX1276 radios driver" if !(MODULE_NETDEV_DEFAULT && HAVE_SX127X) - default y if (MODULE_NETDEV_DEFAULT && HAVE_SX127X) - depends on TEST_KCONFIG - depends on HAS_PERIPH_GPIO - depends on HAS_PERIPH_GPIO_IRQ - depends on HAS_PERIPH_SPI - depends on HAS_PERIPH_TIMER - select MODULE_IOLIST - select MODULE_LORA - select MODULE_NETDEV_LEGACY_API - select MODULE_PERIPH_GPIO - select MODULE_PERIPH_GPIO_IRQ - select MODULE_PERIPH_SPI - select MODULE_PERIPH_SPI_GPIO_MODE if HAS_PERIPH_SPI_GPIO_MODE - select MODULE_ZTIMER - select MODULE_ZTIMER_MSEC - help - Only LoRa long range modem is supported at the moment. - -choice SX127X_VARIANT - bool "Radio variant" - depends on MODULE_SX127X - default MODULE_SX1272 if HAVE_SX1272 - default MODULE_SX1276 if HAVE_SX1276 - -config MODULE_SX1272 - bool "SX1272" - -config MODULE_SX1276 - bool "SX1276" - -endchoice - -config HAVE_SX1272 - bool - select HAVE_SX127X - help - Indicates that an sx1272 radio is present. - -config HAVE_SX1276 - bool - select HAVE_SX127X - help - Indicates that an sx1276 radio is present. - -config HAVE_SX127X - bool - help - Indicates that an sx127x radio is present. diff --git a/drivers/sx1280/Kconfig b/drivers/sx1280/Kconfig deleted file mode 100644 index 52509d08c690..000000000000 --- a/drivers/sx1280/Kconfig +++ /dev/null @@ -1,18 +0,0 @@ -# Copyright (c) 2022 Inria -# -# 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_SX1280 - bool "LoRa 2.4Ghz SX1280 Driver" if !(HAVE_SX1280 && MODULE_NETDEV_DEFAULT) - default y if (HAVE_SX1280 && MODULE_NETDEV_DEFAULT) - depends on TEST_KCONFIG - select PACKAGE_LORABASICS - select MODULE_LORABASICS_SX1280_DRIVER - select MODULE_NETDEV_LEGACY_API - -config HAVE_SX1280 - bool - help - Indicates that an sx1280 2.4Ghz transceiver is present. diff --git a/drivers/tcs37727/Kconfig b/drivers/tcs37727/Kconfig index 1bb61774d37d..5d95cf092b60 100644 --- a/drivers/tcs37727/Kconfig +++ b/drivers/tcs37727/Kconfig @@ -6,25 +6,8 @@ # directory for more details. # -config MODULE_TCS37727 - bool "TCS37727 RGB Light Sensor" - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_PERIPH_I2C - -config HAVE_TCS37727 - bool - select MODULE_TCS37727 if MODULE_SAUL_DEFAULT - help - Indicates that a tcs37727 rgb light sensor is present. - -menuconfig KCONFIG_USEMODULE_TCS37727 - bool "Configure TCS37727 driver" +menu "TCS37727 driver" depends on USEMODULE_TCS37727 - help - Configure the TCS37727 driver using Kconfig. - -if KCONFIG_USEMODULE_TCS37727 config TCS37727_ATIME_DEFAULT int "RGBC integration time in microseconds" @@ -35,4 +18,4 @@ config TCS37727_ATIME_DEFAULT of the RGBC reading. Refer to the section "RGBC Time Register" in the datasheet for more information. -endif # KCONFIG_USEMODULE_TCS37727 +endmenu # TCS37727 driver diff --git a/drivers/tja1042/Kconfig b/drivers/tja1042/Kconfig deleted file mode 100644 index 2ef31b88aa7c..000000000000 --- a/drivers/tja1042/Kconfig +++ /dev/null @@ -1,18 +0,0 @@ -# Copyright (c) 2021 HAW Hamburg -# -# This file is subject to the terms and conditions of the GNU Lesser -# General Public License v2.1. See the file LICENSE in the top level -# directory for more details. -# - -config MODULE_TJA1042 - bool "TJA1042 High Speed CAN transceiver" - depends on HAS_PERIPH_GPIO - depends on TEST_KCONFIG - select MODULE_PERIPH_GPIO - select MODULE_CAN_TRX - -config HAVE_TJA1042 - bool - help - Indicates that a TJA1042 High Speed CAN transceiver is present. diff --git a/drivers/tmp00x/Kconfig b/drivers/tmp00x/Kconfig index 55905238b043..610051f0e03e 100644 --- a/drivers/tmp00x/Kconfig +++ b/drivers/tmp00x/Kconfig @@ -6,53 +6,8 @@ # directory for more details. # -menuconfig MODULE_TMP00X - bool - prompt "TMP006/TMP007 Infrared Thermopile sensors" if !(HAVE_TMP00X && MODULE_SAUL_DEFAULT) - default y if (HAVE_TMP00X && MODULE_SAUL_DEFAULT) - depends on TEST_KCONFIG - depends on HAS_PERIPH_I2C - select MODULE_PERIPH_I2C - select MODULE_XTIMER - -choice - bool "Sensor variant" - default MODULE_TMP006 if HAVE_TMP006 - default MODULE_TMP007 if HAVE_TMP007 - depends on MODULE_TMP00X - -config MODULE_TMP006 - bool "TMP006" - -config MODULE_TMP007 - bool "TMP007" - -endchoice - -config HAVE_TMP006 - bool - select HAVE_TMP00X - help - Indicates that a tmp006 infrared sensor is present. - -config HAVE_TMP007 - bool - select HAVE_TMP00X - help - Indicates that a tmp007 infrared sensor is present. - -config HAVE_TMP00X - bool - help - Indicates that a tmp00x infrared sensor is present. - -menuconfig KCONFIG_USEMODULE_TMP00X - bool "Configure TMP00X driver" +menu "TMP00X driver" depends on USEMODULE_TMP00X - help - Configure the TMP00X driver using Kconfig. - -if KCONFIG_USEMODULE_TMP00X config TMP00X_I2C_ADDRESS hex "Default I2C Address" @@ -103,4 +58,4 @@ config TMP00X_USE_RAW_VALUES Enable this to return raw ADC readings. By default measurements are converted to Celsius. -endif # KCONFIG_USEMODULE_TMP00X +endmenu # TMP00X driver diff --git a/drivers/touch_dev/Kconfig b/drivers/touch_dev/Kconfig deleted file mode 100644 index 68d2f8087351..000000000000 --- a/drivers/touch_dev/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright (c) 2021 HAW Hamburg -# -# This file is subject to the terms and conditions of the GNU Lesser -# General Public License v2.1. See the file LICENSE in the top level -# directory for more details. -# - -config MODULE_TOUCH_DEV - bool "Touch device generic API" - depends on TEST_KCONFIG - imply MODULE_AUTO_INIT_SCREEN - help - This API is experimental and in an early state - expect changes! diff --git a/drivers/touch_dev_gestures/Kconfig b/drivers/touch_dev_gestures/Kconfig index 2bf25a96b05a..b2e45152ad62 100644 --- a/drivers/touch_dev_gestures/Kconfig +++ b/drivers/touch_dev_gestures/Kconfig @@ -5,16 +5,7 @@ # directory for more details. # -menuconfig MODULE_TOUCH_DEV_GESTURES - bool "Touch device gesture recognition" - depends on TEST_KCONFIG - select MODULE_TOUCH_DEV - select MODULE_ZTIMER_MSEC - help - Gesture recognition for touch devices that are accessed using the - generic touch device API. - -if MODULE_TOUCH_DEV_GESTURES +if USEMODULE_TOUCH_DEV_GESTURES config TOUCH_DEV_SWIPE_TRESH int "Swipe threshold" diff --git a/drivers/tps6274x/Kconfig b/drivers/tps6274x/Kconfig deleted file mode 100644 index dea7a4888040..000000000000 --- a/drivers/tps6274x/Kconfig +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright (c) 2021 HAW Hamburg -# -# This file is subject to the terms and conditions of the GNU Lesser -# General Public License v2.1. See the file LICENSE in the top level -# directory for more details. -# - -config MODULE_TPS6274X - bool "TPS6274x DC-DC converter" - depends on HAS_PERIPH_GPIO - depends on TEST_KCONFIG - select MODULE_PERIPH_GPIO - -config HAVE_TPS6274X - bool - help - Indicates that a TPS6274x DC-DC converter is present. diff --git a/drivers/tsl2561/Kconfig b/drivers/tsl2561/Kconfig deleted file mode 100644 index 6a9d4944ae9c..000000000000 --- a/drivers/tsl2561/Kconfig +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright (c) 2021 HAW Hamburg -# -# This file is subject to the terms and conditions of the GNU Lesser -# General Public License v2.1. See the file LICENSE in the top level -# directory for more details. -# - -config MODULE_TSL2561 - bool "TSL2561 illuminance sensor" - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_PERIPH_I2C - select MODULE_ZTIMER - select MODULE_ZTIMER_MSEC - -config HAVE_TSL2561 - bool - select MODULE_TSL2561 if MODULE_SAUL_DEFAULT - help - Indicates that a TSL2561 illuminance sensor is present. diff --git a/drivers/tsl4531x/Kconfig b/drivers/tsl4531x/Kconfig deleted file mode 100644 index 643477edc85b..000000000000 --- a/drivers/tsl4531x/Kconfig +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright (c) 2021 HAW Hamburg -# -# This file is subject to the terms and conditions of the GNU Lesser -# General Public License v2.1. See the file LICENSE in the top level -# directory for more details. -# - -config MODULE_TSL4531X - bool "TSL4531x Illuminance sensor" - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_PERIPH_I2C - select MODULE_XTIMER - -config HAVE_TSL4531X - bool - select MODULE_TSL4531X if MODULE_SAUL_DEFAULT - help - Indicates that a TSL4531X illuminance sensor is present. diff --git a/drivers/uart_half_duplex/Kconfig b/drivers/uart_half_duplex/Kconfig deleted file mode 100644 index adcf21550fd4..000000000000 --- a/drivers/uart_half_duplex/Kconfig +++ /dev/null @@ -1,18 +0,0 @@ -# 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/drivers/usbdev_mock/Kconfig b/drivers/usbdev_mock/Kconfig deleted file mode 100644 index 2d803d0bf6db..000000000000 --- a/drivers/usbdev_mock/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright (c) 2021 HAW Hamburg -# -# This file is subject to the terms and conditions of the GNU Lesser -# General Public License v2.1. See the file LICENSE in the top level -# directory for more details. -# - -config MODULE_USBDEV_MOCK - bool "USBdev mockup device (for testing)" - depends on TEST_KCONFIG diff --git a/drivers/usbdev_synopsys_dwc2/Kconfig b/drivers/usbdev_synopsys_dwc2/Kconfig deleted file mode 100644 index 3dc40d128780..000000000000 --- a/drivers/usbdev_synopsys_dwc2/Kconfig +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2021 HAW Hamburg -# -# This file is subject to the terms and conditions of the GNU Lesser -# General Public License v2.1. See the file LICENSE in the top level -# directory for more details. -# - -config MODULE_USBDEV_SYNOPSYS_DWC2 - bool - depends on TEST_KCONFIG - depends on HAS_PERIPH_USBDEV - select MODULE_ZTIMER_MSEC - help - USBDEV low-level driver for MCUs with Synopsys DWC2 USB OTG FS/HS IP core" diff --git a/drivers/vcnl40x0/Kconfig b/drivers/vcnl40x0/Kconfig deleted file mode 100644 index 5e615406f720..000000000000 --- a/drivers/vcnl40x0/Kconfig +++ /dev/null @@ -1,55 +0,0 @@ -# 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_VCNL40X0 - bool - prompt "VCNL4010/VCNL4020/VCNL4040 Proximity and Ambient Light sensors" if !(MODULE_SAUL_DEFAULT && HAVE_VCNL40X0) - default (MODULE_SAUL_DEFAULT && HAVE_VCNL40X0) - depends on TEST_KCONFIG - depends on HAS_PERIPH_I2C - select MODULE_PERIPH_I2C - -choice VCNL40X0_VARIANT - bool "variant" - depends on MODULE_VCNL40X0 - default MODULE_VCNL4010 if HAVE_VCNL4010 - default MODULE_VCNL4020 if HAVE_VCNL4020 - default MODULE_VCNL4040 if HAVE_VCNL4040 - -config MODULE_VCNL4010 - bool "VCNL4010" - -config MODULE_VCNL4020 - bool "VCNL4020" - -config MODULE_VCNL4040 - bool "VCNL4040" - -endchoice - -config HAVE_VCNL40X0 - bool - help - Indicates that a VCNL40X0 Proximity and Ambient Light sensor is present. - -config HAVE_VCNL4010 - bool - select HAVE_VCNL40X0 - help - Indicates that a VCNL4010 Proximity and Ambient Light sensor is present. - -config HAVE_VCNL4020 - bool - select HAVE_VCNL40X0 - help - Indicates that a VCNL4020 Proximity and Ambient Light sensor is present. - -config HAVE_VCNL4040 - bool - select HAVE_VCNL40X0 - help - Indicates that a VCNL4040 Proximity and Ambient Light sensor is present. diff --git a/drivers/veml6070/Kconfig b/drivers/veml6070/Kconfig deleted file mode 100644 index c5a967fbb555..000000000000 --- a/drivers/veml6070/Kconfig +++ /dev/null @@ -1,18 +0,0 @@ -# Copyright (c) 2021 HAW Hamburg -# -# This file is subject to the terms and conditions of the GNU Lesser -# General Public License v2.1. See the file LICENSE in the top level -# directory for more details. -# - -config MODULE_VEML6070 - bool "VEML6070 UV sensor" - depends on HAS_PERIPH_I2C - depends on TEST_KCONFIG - select MODULE_PERIPH_I2C - -config HAVE_VEML6070 - bool - select MODULE_VEML6070 if MODULE_SAUL_DEFAULT - help - Indicates that a VEML6070 UV sensor is present. diff --git a/drivers/vl6180x/Kconfig b/drivers/vl6180x/Kconfig index c82dbb610ea5..d8086f3266c9 100644 --- a/drivers/vl6180x/Kconfig +++ b/drivers/vl6180x/Kconfig @@ -5,30 +5,15 @@ # directory for more details. # -menuconfig MODULE_VL6180X - bool "VL6180X Ranging and Ambient Light Sensing (ALS) module" - depends on TEST_KCONFIG - depends on HAS_PERIPH_I2C - select MODULE_PERIPH_I2C - select MODULE_ZTIMER_MSEC - help - Driver for the ST VL6180X Ranging and Ambient Light Sensing (ALS) module - -if MODULE_VL6180X - -config MODULE_VL6180X_RNG - bool "Ranging enabled" +if USEMODULE_VL6180X config VL6180X_RNG_MAX_TIME int "Ranging maximum convergence time [ms]" range 1 63 default 50 - depends on MODULE_VL6180X_RNG + depends on USEMODULE_VL6180X_RNG -config MODULE_VL6180X_ALS - bool "Ambient light sensing (ALS) enabled" - -if MODULE_VL6180X_ALS +if USEMODULE_VL6180X_ALS config VL6180X_ALS_INT_TIME int "ALS integration time [ms]" @@ -67,7 +52,7 @@ config VL6180X_ALS_LUX_RES light sensing to lux values. It is specified as lux/count*1000. The factory calibrated lux resolution is 0.32 lux/count. -endif # MODULE_VL6180X_ALS +endif # USEMODULE_VL6180X_ALS config VL6180X_MEAS_PERIOD int "Measurement period in continuous mode [10 ms]" @@ -85,22 +70,11 @@ config VL6180X_MEAS_PERIOD used for both measurements which are started immediatly after sensor initialization. -config MODULE_VL6180X_IRQ - bool "Support for interrupts" - depends on HAS_PERIPH_GPIO_IRQ - select MODULE_PERIPH_GPIO_IRQ - help - Interrupts can be used either when new sensor data are ready to be - read or when sensor values exceed configured thresholds. - If interrupt handling is enabled, the interrupt signal - (sensor pin GPIO1) has to be connected to a MCU GPIO pin which - has to be defined in the board definition by VL6180X_PARAM_INT_PIN. - -if MODULE_VL6180X_IRQ +if USEMODULE_VL6180X_IRQ choice bool "Ranging interrupt mode" - depends on MODULE_VL6180X_RNG + depends on USEMODULE_VL6180X_RNG default VL6180X_RNG_INT_DRDY help Interrupt defines the interrupt that is enabled for ranging. @@ -146,7 +120,7 @@ config VL6180X_RNG_THRESH_HIGH choice bool "ALS interrupt mode" - depends on MODULE_VL6180X_ALS + depends on USEMODULE_VL6180X_ALS default VL6180X_ALS_INT_DRDY help Interrupt defines the interrupt that is enabled for ALS. @@ -190,22 +164,6 @@ config VL6180X_ALS_THRESH_HIGH help Interrupt is triggered when ALS values are above this threshold -endif # MODULE_VL6180X_IRQ - -config MODULE_VL6180X_SHUTDOWN - bool "Support for power-down and power-up" - depends on HAS_PERIPH_GPIO - select MODULE_PERIPH_GPIO - help - Enable the power-down and power-up functions. If power-down and - power-up functions are enabled by module, the shutdown signal - (sensor pin GPIO0/CE) has to be connected to a MCU GPIO pin which - has to be defined in the board definition by VL6180X_PARAM_SHUTDOWN_PIN. - -config MODULE_VL6180X_CONFIG - bool "Configuration of the sensor at runtime" - help - Enables the functions that can be used to reconfigure the sensor at - runtime. +endif # USEMODULE_VL6180X_IRQ -endif # MODULE_VL6180X +endif # USEMODULE_VL6180X diff --git a/drivers/w5100/Kconfig b/drivers/w5100/Kconfig deleted file mode 100644 index 7c363f8c700f..000000000000 --- a/drivers/w5100/Kconfig +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright (c) 2022 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_W5100 - bool "W5100 Ethernet Adapter" - depends on TEST_KCONFIG - depends on HAS_PERIPH_GPIO - depends on HAS_PERIPH_GPIO_IRQ - depends on HAS_PERIPH_SPI - select MODULE_LUID - select MODULE_NETDEV_ETH - select MODULE_NETDEV_LEGACY_API - select MODULE_PERIPH_GPIO - select MODULE_PERIPH_GPIO_IRQ - select MODULE_PERIPH_SPI - -config HAVE_W5100 - bool - select MODULE_W5100 if MODULE_NETDEV_DEFAULT - help - Indicates that a w5100 ethernet adapter is present. diff --git a/drivers/ws281x/Kconfig b/drivers/ws281x/Kconfig deleted file mode 100644 index d8bda4366a15..000000000000 --- a/drivers/ws281x/Kconfig +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (c) 2021 HAW Hamburg -# -# This file is subject to the terms and conditions of the GNU Lesser -# General Public License v2.1. See the file LICENSE in the top level -# directory for more details. -# - -config MODULE_WS281X - bool "WS2812/SK6812 RGB LED (NeoPixel)" - depends on HAS_CPU_CORE_ATMEGA || HAS_ARCH_ESP32 || HAS_ARCH_NATIVE || HAS_PERIPH_TIMER_POLL - depends on TEST_KCONFIG - select MODULE_XTIMER - select MODULE_WS281X_ATMEGA if HAS_CPU_CORE_ATMEGA - select MODULE_WS281X_VT100 if HAS_ARCH_NATIVE - select MODULE_WS281X_ESP32 if HAS_ARCH_ESP32 - select MODULE_WS281X_TIMER_GPIO_LL if HAS_PERIPH_TIMER_POLL - -config MODULE_WS281X_ATMEGA - bool - depends on HAS_CPU_CORE_ATMEGA - -config MODULE_WS281X_VT100 - bool - depends on HAS_ARCH_NATIVE - -config MODULE_WS281X_ESP32 - bool - depends on HAS_ARCH_ESP32 - -config MODULE_WS281X_ESP32_HW - bool "WS2812/SK6812 RGB LED uses ESP32x RMT" - depends on MODULE_WS281X_ESP32 && HAS_ESP_RMT - default y - help - The driver can use on ESP32x SoCs either the Remote Control (RMT) - peripheral or a bit-banging software implementation to generate the - RGB LED signal. Using the RMT peripheral requires more ROM and RAM but - does not use the CPU to generate the RGB LED signal. Disable this - option if saving ROM and RAM is required. - -config MODULE_WS281X_ESP32_SW - bool - depends on MODULE_WS281X_ESP32 - default y if !MODULE_WS281X_ESP32_HW - help - Use the bit-banging software implementation to generate the RGB LED - signal. - -config MODULE_WS281X_TIMER_GPIO_LL - bool - depends on HAS_PERIPH_TIMER_POLL - select MODULE_PERIPH_TIMER_POLL - depends on HAS_PERIPH_GPIO_LL - select MODULE_PERIPH_GPIO_LL - help - Use a platform independent bit-banging software implementation to - generate the RGB LED signal. - -config HAVE_WS281X - bool - help - Indicates that a WS2812/SK6812 RGB LED sensor is present. diff --git a/examples/gcoap/client.c b/examples/gcoap/client.c index 8f4039baefa8..9af427f24159 100644 --- a/examples/gcoap/client.c +++ b/examples/gcoap/client.c @@ -146,7 +146,8 @@ static void _resp_handler(const gcoap_request_memo_t *memo, coap_pkt_t* pdu, int len = coap_opt_finish(pdu, COAP_OPT_FINISH_NONE); gcoap_req_send((uint8_t *)pdu->hdr, len, remote, - _resp_handler, memo->context); + _resp_handler, memo->context, + GCOAP_SOCKET_TYPE_UNDEF); } else { puts("--- blockwise complete ---"); @@ -158,7 +159,8 @@ static size_t _send(uint8_t *buf, size_t len, sock_udp_ep_t *remote) { size_t bytes_sent; - bytes_sent = gcoap_req_send(buf, len, remote, _resp_handler, NULL); + bytes_sent = gcoap_req_send(buf, len, remote, _resp_handler, NULL, + GCOAP_SOCKET_TYPE_UNDEF); if (bytes_sent > 0) { req_count++; } diff --git a/examples/gnrc_border_router/Kconfig b/examples/gnrc_border_router/Kconfig index 25bacee753b1..0d930d331dd5 100644 --- a/examples/gnrc_border_router/Kconfig +++ b/examples/gnrc_border_router/Kconfig @@ -1,10 +1,13 @@ if USEMODULE_ETHOS + config GNRC_DHCPV6_CLIENT_6LBR_STATIC_ROUTE default y - depends on USEMODULE_GNRC_DHCPV6_CLIENT_6LBR && KCONFIG_USEMODULE_GNRC_DHCPV6 + depends on USEMODULE_GNRC_DHCPV6_CLIENT_6LBR && USEMODULE_GNRC_DHCPV6 + config GNRC_NETIF_IPV6_ADDRS_NUMOF # CONFIG_GNRC_DHCPV6_CLIENT_6LBR_STATIC_ROUTE=1 requires one more address # for `fe80::2`. default 3 - depends on KCONFIG_USEMODULE_GNRC_NETIF + depends on USEMODULE_GNRC_NETIF + endif # USEMODULE_ETHOS diff --git a/examples/gnrc_lorawan/Makefile.ci b/examples/gnrc_lorawan/Makefile.ci index 7bbdb6c6c1e9..29657667e2f3 100644 --- a/examples/gnrc_lorawan/Makefile.ci +++ b/examples/gnrc_lorawan/Makefile.ci @@ -19,5 +19,4 @@ BOARD_INSUFFICIENT_MEMORY := \ stm32f0discovery \ telosb \ weact-g030f6 \ - z1 \ # diff --git a/examples/gnrc_lorawan/app.config b/examples/gnrc_lorawan/app.config index 293cd467ef09..d130c323c1ee 100644 --- a/examples/gnrc_lorawan/app.config +++ b/examples/gnrc_lorawan/app.config @@ -1,2 +1 @@ -CONFIG_KCONFIG_USEMODULE_GNRC_NETIF=y CONFIG_GNRC_NETIF_LORAWAN_NETIF_HDR=y diff --git a/examples/javascript/app.config.test b/examples/javascript/app.config.test deleted file mode 100644 index 02301d8e24e2..000000000000 --- a/examples/javascript/app.config.test +++ /dev/null @@ -1 +0,0 @@ -CONFIG_PACKAGE_JERRYSCRIPT=y diff --git a/examples/lua_REPL/app.config.test b/examples/lua_REPL/app.config.test deleted file mode 100644 index f70d24936ef3..000000000000 --- a/examples/lua_REPL/app.config.test +++ /dev/null @@ -1 +0,0 @@ -CONFIG_PACKAGE_LUA=y diff --git a/examples/lua_basic/app.config.test b/examples/lua_basic/app.config.test deleted file mode 100644 index f70d24936ef3..000000000000 --- a/examples/lua_basic/app.config.test +++ /dev/null @@ -1 +0,0 @@ -CONFIG_PACKAGE_LUA=y diff --git a/examples/micropython/Kconfig b/examples/micropython/Kconfig deleted file mode 100644 index 32980b29273a..000000000000 --- a/examples/micropython/Kconfig +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2023 Inria -# -# 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 TEST_KCONFIG - - select MODULE_PERIPH_ADC if HAS_PERIPH_ADC - select MODULE_PERIPH_SPI if HAS_PERIPH_SPI diff --git a/examples/micropython/app.config.test b/examples/micropython/app.config.test deleted file mode 100644 index d2c7fc42c98f..000000000000 --- a/examples/micropython/app.config.test +++ /dev/null @@ -1 +0,0 @@ -CONFIG_PACKAGE_MICROPYTHON=y diff --git a/examples/openthread/skip.app.config.test b/examples/openthread/skip.app.config.test deleted file mode 100644 index 7d430047c78c..000000000000 --- a/examples/openthread/skip.app.config.test +++ /dev/null @@ -1,7 +0,0 @@ -CONFIG_PACKAGE_OPENTHREAD=y -CONFIG_MODULE_CPP11-COMPAT=y -CONFIG_MODULE_OPENTHREAD-FTD=y -CONFIG_MODULE_OPENTHREAD-CLI-FTD=y -CONFIG_MODULE_NETDEV_DEFAULT=y -CONFIG_MODULE_RANDOM=y -CONFIG_MODULE_PS=y diff --git a/examples/psa_crypto/Makefile b/examples/psa_crypto/Makefile index 9c38666bffe8..1ea1d07937eb 100644 --- a/examples/psa_crypto/Makefile +++ b/examples/psa_crypto/Makefile @@ -5,121 +5,115 @@ APPLICATION = example_psa_crypto BOARD ?= native -# Necessary configurations when using Kconfig dependency resolution -# The file `app.config.test` is always used for the build configuration. -# The config files below are only added if needed. -ifeq (1, $(TEST_KCONFIG)) - ifeq (1, $(SECURE_ELEMENT)) - CFLAGS += -DSECURE_ELEMENT # Application specific (not needed by PSA) - CFLAGS += -DCUSTOM_ATCA_PARAMS # Application specific (not needed by PSA) - INCLUDES += -I$(APPDIR) # Application specific (not needed by PSA) - KCONFIG_ADD_CONFIG += $(APPDIR)/app.config.test.se - else ifeq (2, $(SECURE_ELEMENT)) - CFLAGS += -DSECURE_ELEMENT # Application specific (not needed by PSA) - CFLAGS += -DMULTIPLE_SE # Application specific (not needed by PSA) - CFLAGS += -DCUSTOM_ATCA_PARAMS # Application specific (not needed by PSA) - INCLUDES += -I$(APPDIR) - KCONFIG_ADD_CONFIG += $(APPDIR)/app.config.test.multi_se - else ifdef CUSTOM_BACKEND - KCONFIG_ADD_CONFIG += $(APPDIR)/app.config.test.base - KCONFIG_ADD_CONFIG += $(APPDIR)/app.config.test.custom - else - KCONFIG_ADD_CONFIG += $(APPDIR)/app.config.test.base - endif +ifeq (2, $(SECURE_ELEMENT)) + CFLAGS += -DSECURE_ELEMENT # Application specific (not needed by PSA) + CFLAGS += -DMULTIPLE_SE # Application specific (not needed by PSA) + CFLAGS += -DCUSTOM_ATCA_PARAMS # Application specific (not needed by PSA) + INCLUDES += -I$(APPDIR) + KCONFIG_ADD_CONFIG += $(APPDIR)/app.config.multi_se else - USEMODULE += ztimer - USEMODULE += ztimer_usec + KCONFIG_ADD_CONFIG += $(APPDIR)/app.config.base +endif - USEMODULE += psa_crypto +USEMODULE += ztimer +USEMODULE += ztimer_usec - # Hashes are needed for ECDSA operations (including secure elements), which - # is why we always build them - USEMODULE += psa_hash - USEMODULE += psa_hash_sha_256 +USEMODULE += psa_crypto - ifeq (1, $(SECURE_ELEMENT)) - # When using a secure element, the type is required. - # Also you can specify the number of key slots required to store keys. - CFLAGS += -DSECURE_ELEMENT # Application specific (not needed by PSA) - CFLAGS += -DCUSTOM_ATCA_PARAMS # Application specific (not needed by PSA) - INCLUDES += -I$(APPDIR) # Application specific (not needed by PSA) +# Hashes are needed for ECDSA operations (including secure elements), which +# is why we always build them +USEMODULE += psa_hash +USEMODULE += psa_hash_sha_256 +ifeq (1, $(SECURE_ELEMENT)) + # When using a secure element, the type is required. + # Also you can specify the number of key slots required to store keys. + CFLAGS += -DSECURE_ELEMENT # Application specific (not needed by PSA) + CFLAGS += -DCUSTOM_ATCA_PARAMS # Application specific (not needed by PSA) + INCLUDES += -I$(APPDIR) # Application specific (not needed by PSA) + ifneq (1, $(SHOULD_RUN_KCONFIG)) CFLAGS += -DCONFIG_PSA_PROTECTED_KEY_COUNT=4 CFLAGS += -DCONFIG_PSA_SINGLE_KEY_COUNT=1 - USEMODULE += psa_secure_element - USEMODULE += psa_secure_element_ateccx08a - USEMODULE += psa_secure_element_ateccx08a_cipher_aes_128 - USEMODULE += psa_secure_element_ateccx08a_hmac_sha256 - USEMODULE += psa_secure_element_ateccx08a_ecc_p256 - else ifeq (2, $(SECURE_ELEMENT)) - CFLAGS += -DSECURE_ELEMENT # Application specific (not needed by PSA) - CFLAGS += -DMULTIPLE_SE # Application specific (not needed by PSA) - CFLAGS += -DCUSTOM_ATCA_PARAMS # Application specific (not needed by PSA) - INCLUDES += -I$(APPDIR) # Application specific (not needed by PSA) + else + KCONFIG_ADD_CONFIG += $(APPDIR)/app.config.se + endif + USEMODULE += psa_secure_element + USEMODULE += psa_secure_element_ateccx08a + USEMODULE += psa_secure_element_ateccx08a_cipher_aes_128 + USEMODULE += psa_secure_element_ateccx08a_hmac_sha256 + USEMODULE += psa_secure_element_ateccx08a_ecc_p256 +else ifeq (2, $(SECURE_ELEMENT)) + CFLAGS += -DSECURE_ELEMENT # Application specific (not needed by PSA) + CFLAGS += -DMULTIPLE_SE # Application specific (not needed by PSA) + CFLAGS += -DCUSTOM_ATCA_PARAMS # Application specific (not needed by PSA) + INCLUDES += -I$(APPDIR) # Application specific (not needed by PSA) + ifneq (1, $(SHOULD_RUN_KCONFIG)) CFLAGS += -DCONFIG_PSA_MAX_SE_COUNT=2 CFLAGS += -DCONFIG_PSA_PROTECTED_KEY_COUNT=8 CFLAGS += -DCONFIG_PSA_SINGLE_KEY_COUNT=2 - USEMODULE += psa_secure_element - USEMODULE += psa_secure_element_multiple - USEMODULE += psa_secure_element_ateccx08a - USEMODULE += psa_secure_element_ateccx08a_cipher_aes_128 - USEMODULE += psa_secure_element_ateccx08a_hmac_sha256 - USEMODULE += psa_secure_element_ateccx08a_ecc_p256 - else ifdef CUSTOM_BACKEND - # Necessary configuration when using Make dependency resolution - # This first part chooses the operation. If nothing else is specified, - # a default backend is built depending on the platform capabilities. - USEMODULE += psa_cipher - USEMODULE += psa_cipher_aes_128_cbc - - USEMODULE += psa_mac - USEMODULE += psa_mac_hmac_sha_256 - - USEMODULE += psa_asymmetric - USEMODULE += psa_asymmetric_ecc_p256r1 - USEMODULE += psa_asymmetric_ecc_ed25519 - - # If you want to use a custom backend, you need to do it this way. - USEMODULE += psa_cipher_aes_128_cbc_custom_backend - USEMODULE += psa_cipher_aes_128_cbc_backend_riot # force custom backend - - USEMODULE += psa_mac_hmac_sha_256_custom_backend - USEMODULE += psa_mac_hmac_sha_256_backend_riot # force custom backend - - USEMODULE += psa_hash_sha_256_custom_backend - USEMODULE += psa_hash_sha_256_backend_riot - - USEMODULE += psa_asymmetric_ecc_p256r1_custom_backend - USEMODULE += psa_asymmetric_ecc_p256r1_backend_microecc # force custom backend - - USEMODULE += psa_asymmetric_ecc_ed25519_custom_backend - USEMODULE += psa_asymmetric_ecc_ed25519_backend_c25519 # force custom backend else - # Necessary configuration when using Make dependency resolution - # This part only chooses the operation. If nothing else es specified, - # a default backend is built depending on the platform capabilities. - USEMODULE += psa_cipher - USEMODULE += psa_cipher_aes_128_cbc - - USEMODULE += psa_mac - USEMODULE += psa_mac_hmac_sha_256 - - USEMODULE += psa_asymmetric - USEMODULE += psa_asymmetric_ecc_p256r1 - USEMODULE += psa_asymmetric_ecc_ed25519 + KCONFIG_ADD_CONFIG += $(APPDIR)/app.config.multi_se endif + USEMODULE += psa_secure_element + USEMODULE += psa_secure_element_multiple + USEMODULE += psa_secure_element_ateccx08a + USEMODULE += psa_secure_element_ateccx08a_cipher_aes_128 + USEMODULE += psa_secure_element_ateccx08a_hmac_sha256 + USEMODULE += psa_secure_element_ateccx08a_ecc_p256 +else ifdef CUSTOM_BACKEND + # Necessary configuration when using Make dependency resolution + # This first part chooses the operation. If nothing else is specified, + # a default backend is built depending on the platform capabilities. + USEMODULE += psa_cipher + USEMODULE += psa_cipher_aes_128_cbc + + USEMODULE += psa_mac + USEMODULE += psa_mac_hmac_sha_256 + + USEMODULE += psa_asymmetric + USEMODULE += psa_asymmetric_ecc_p256r1 + USEMODULE += psa_asymmetric_ecc_ed25519 + + # If you want to use a custom backend, you need to do it this way. + USEMODULE += psa_cipher_aes_128_cbc_custom_backend + USEMODULE += psa_cipher_aes_128_cbc_backend_riot # force custom backend + + USEMODULE += psa_mac_hmac_sha_256_custom_backend + USEMODULE += psa_mac_hmac_sha_256_backend_riot # force custom backend + + USEMODULE += psa_hash_sha_256_custom_backend + USEMODULE += psa_hash_sha_256_backend_riot + + USEMODULE += psa_asymmetric_ecc_p256r1_custom_backend + USEMODULE += psa_asymmetric_ecc_p256r1_backend_microecc # force custom backend + + USEMODULE += psa_asymmetric_ecc_ed25519_custom_backend + USEMODULE += psa_asymmetric_ecc_ed25519_backend_c25519 # force custom backend +else + # Necessary configuration when using Make dependency resolution + # This part only chooses the operation. If nothing else es specified, + # a default backend is built depending on the platform capabilities. + USEMODULE += psa_cipher + USEMODULE += psa_cipher_aes_128_cbc + + USEMODULE += psa_mac + USEMODULE += psa_mac_hmac_sha_256 + + USEMODULE += psa_asymmetric + USEMODULE += psa_asymmetric_ecc_p256r1 + USEMODULE += psa_asymmetric_ecc_ed25519 - ifndef SECURE_ELEMENT - CFLAGS += -DCONFIG_PSA_ASYMMETRIC_KEYPAIR_COUNT=2 - CFLAGS += -DCONFIG_PSA_SINGLE_KEY_COUNT=4 - endif endif ifndef SECURE_ELEMENT # The software implementations need a larger stack, so we increase the stack size. CFLAGS += -DTHREAD_STACKSIZE_MAIN=\(12*THREAD_STACKSIZE_DEFAULT\) + ifneq (1, $(SHOULD_RUN_KCONFIG)) + CFLAGS += -DCONFIG_PSA_ASYMMETRIC_KEYPAIR_COUNT=2 + CFLAGS += -DCONFIG_PSA_SINGLE_KEY_COUNT=4 + else + KCONFIG_ADD_CONFIG += $(APPDIR)/app.config.base + endif endif -SHOULD_RUN_KCONFIG := - include $(RIOTBASE)/Makefile.include diff --git a/examples/psa_crypto/README.md b/examples/psa_crypto/README.md index 28263ecbc6ee..76b1698eb0fe 100644 --- a/examples/psa_crypto/README.md +++ b/examples/psa_crypto/README.md @@ -29,48 +29,23 @@ for software and hardware backends as well as secure elements, measured on the n ## Configuration of the API -There are two ways to configure the API: module selection via Kconfig and module selection -via Makefiles. - -To see which modules should be chosen for each configuration, please read the Makefile and -the `app.config.test.*` files. - -### Kconfig -> **NOTE:** In this application all the configurations are in separate app.config files -> for demonstration purposes. You can also write all configs into one file or choose them -> via `menuconfig`. -> To access the GUI, run `TEST_KCONFIG=1 BOARD= make menuconfig`. - -When building the application with the `TEST_KCONFIG=1` option, the first config file parsed by the build system is `app.config.test`. This selects the PSA Crypto module and other modules our application needs (e.g. ztimer). If you need cryptographic keys, you can specify the number of key slots needed for key storage (the default is set to 5). -The graph below shows how the `app.config` files in this application are included. -Selections in `app.config.test` are always applied. -The others are only added, if you specify the corresponding build option. - -```mermaid - flowchart TD; - app.config.test -- default --> app.config.test.base; - app.config.test.base -- CUSTOM_BACKEND=1 --> app.config.test.custom; - app.config.test -- SECURE_ELEMENT=1 --> app.config.test.se; - app.config.test -- SECURE_ELEMENT=2 --> app.config.test.multi_se; -``` -If you build this without specifying anything else, the symbols in `app.config.test.base` -are added and PSA Crypto will automatically choose a default crypto backend depending on the platform you're building for. -For example when your platform is `native`, software implementations are built. -When you specify `BOARD=nrf52840dk`, the hardware accelerator of the board will be built. +The module selection must be done with Make but the compile-time configuration +settings can be done with Kconfig and `menuconfig`. -If you want to force a custom backend, you can specify that in the Kconfig file. This application already contains the configuration for a custom backend (see `app.config.test.custom`), which will be added to the application build when you define `CUSTOM_BACKEND=1`. +If you build this without specifying anything, PSA Crypto will automatically +choose a default crypto backend depending on the platform you're building for. +For example when your platform is `native`, software implementations are built. +When you specify `BOARD=nrf52840dk`, the hardware accelerator of the board will +be built. -Instead of or in addition to the default and custom implementations you can use a secure element as a backend (see Section [Using Secure Elements](#using-secure-elements]). +Instead of or in addition to the default and custom implementations you can use +a secure element as a backend (see Section [Using Secure Elements](#using-secure-elements]). Secure elements are independent of the other backends. In this application, when you choose secure elements, they are built instead of the other backends. -Please note that the build options `CUSTOM_BACKEND` and `SECURE_ELEMENT` only apply to this specific application and have nothing to do with the PSA implementation. - -### Make -All the configurations in the Kconfig files can also be applied using Make dependency resolution. The Makefile contains all the modules that must be selected when building the different configurations. -They can all be built as described above, but *without* defining TEST_KCONFIG. - -To prevent conflicts when building this application multiple times with different backends, it is best to remove the `bin` directory in between builds. +Please note that the build options `CUSTOM_BACKEND` and `SECURE_ELEMENT` only +apply to this specific application and have nothing to do with the PSA +implementation. ## Using Secure Elements > **NOTE:** diff --git a/examples/psa_crypto/app.config.base b/examples/psa_crypto/app.config.base new file mode 100644 index 000000000000..147037b108d6 --- /dev/null +++ b/examples/psa_crypto/app.config.base @@ -0,0 +1,2 @@ +CONFIG_PSA_ASYMMETRIC_KEYPAIR_COUNT=2 +CONFIG_PSA_SINGLE_KEY_COUNT=4 diff --git a/examples/psa_crypto/app.config.multi_se b/examples/psa_crypto/app.config.multi_se new file mode 100644 index 000000000000..c430f6d05eed --- /dev/null +++ b/examples/psa_crypto/app.config.multi_se @@ -0,0 +1,3 @@ +CONFIG_PSA_MAX_SE_COUNT=2 +CONFIG_PSA_PROTECTED_KEY_COUNT=8 +CONFIG_PSA_SINGLE_KEY_COUNT=2 diff --git a/examples/psa_crypto/app.config.se b/examples/psa_crypto/app.config.se new file mode 100644 index 000000000000..762dc2300bf1 --- /dev/null +++ b/examples/psa_crypto/app.config.se @@ -0,0 +1,2 @@ +CONFIG_PSA_PROTECTED_KEY_COUNT=4 +CONFIG_PSA_SINGLE_KEY_COUNT=1 diff --git a/examples/psa_crypto/app.config.test b/examples/psa_crypto/app.config.test deleted file mode 100644 index d5a63d3a56bf..000000000000 --- a/examples/psa_crypto/app.config.test +++ /dev/null @@ -1,6 +0,0 @@ -CONFIG_MODULE_PSA_CRYPTO=y - -CONFIG_MODULE_PSA_HASH=y -CONFIG_MODULE_PSA_HASH_SHA_256=y - -CONFIG_ZTIMER_USEC=y diff --git a/examples/psa_crypto/app.config.test.base b/examples/psa_crypto/app.config.test.base deleted file mode 100644 index e411aef79d68..000000000000 --- a/examples/psa_crypto/app.config.test.base +++ /dev/null @@ -1,12 +0,0 @@ -CONFIG_MODULE_PSA_CIPHER=y -CONFIG_MODULE_PSA_CIPHER_AES_128_CBC=y - -CONFIG_MODULE_PSA_MAC=y -CONFIG_MODULE_PSA_MAC_HMAC_SHA_256=y - -CONFIG_MODULE_PSA_ASYMMETRIC=y -CONFIG_MODULE_PSA_ASYMMETRIC_ECC_P256R1=y -CONFIG_MODULE_PSA_ASYMMETRIC_ECC_ED25519=y - -CONFIG_PSA_ASYMMETRIC_KEYPAIR_COUNT=2 -CONFIG_PSA_SINGLE_KEY_COUNT=4 diff --git a/examples/psa_crypto/app.config.test.custom b/examples/psa_crypto/app.config.test.custom deleted file mode 100644 index ae3bbb65106f..000000000000 --- a/examples/psa_crypto/app.config.test.custom +++ /dev/null @@ -1,9 +0,0 @@ -# force software backends -CONFIG_MODULE_PSA_CIPHER_AES_128_CBC_BACKEND_RIOT=y -CONFIG_MODULE_PSA_HASH_SHA_256_BACKEND_RIOT=y -CONFIG_MODULE_PSA_MAC_HMAC_SHA_256_BACKEND_RIOT=y -CONFIG_MODULE_PSA_ASYMMETRIC_ECC_P256R1_BACKEND_MICROECC=y -CONFIG_MODULE_PSA_ASYMMETRIC_ECC_ED25519_BACKEND_C25519=y - -CONFIG_PSA_ASYMMETRIC_KEYPAIR_COUNT=2 -CONFIG_PSA_SINGLE_KEY_COUNT=4 diff --git a/examples/psa_crypto/app.config.test.multi_se b/examples/psa_crypto/app.config.test.multi_se deleted file mode 100644 index 57ed135f8eb4..000000000000 --- a/examples/psa_crypto/app.config.test.multi_se +++ /dev/null @@ -1,11 +0,0 @@ - -CONFIG_MODULE_PSA_SECURE_ELEMENT=y -CONFIG_MODULE_PSA_SECURE_ELEMENT_ATECCX08A=y -CONFIG_MODULE_PSA_SECURE_ELEMENT_ATECCX08A_ECC_P256=y -CONFIG_MODULE_PSA_SECURE_ELEMENT_ATECCX08A_CIPHER_AES_128=y -CONFIG_MODULE_PSA_SECURE_ELEMENT_ATECCX08A_HMAC_SHA256=y -CONFIG_MODULE_PSA_SECURE_ELEMENT_MULTIPLE=y - -CONFIG_PSA_MAX_SE_COUNT=2 -CONFIG_PSA_PROTECTED_KEY_COUNT=8 -CONFIG_PSA_SINGLE_KEY_COUNT=2 diff --git a/examples/psa_crypto/app.config.test.se b/examples/psa_crypto/app.config.test.se deleted file mode 100644 index 0fc0d8fd38e3..000000000000 --- a/examples/psa_crypto/app.config.test.se +++ /dev/null @@ -1,8 +0,0 @@ -CONFIG_MODULE_PSA_SECURE_ELEMENT=y -CONFIG_MODULE_PSA_SECURE_ELEMENT_ATECCX08A=y -CONFIG_MODULE_PSA_SECURE_ELEMENT_ATECCX08A_ECC_P256=y -CONFIG_MODULE_PSA_SECURE_ELEMENT_ATECCX08A_CIPHER_AES_128=y -CONFIG_MODULE_PSA_SECURE_ELEMENT_ATECCX08A_HMAC_SHA256=y - -CONFIG_PSA_PROTECTED_KEY_COUNT=4 -CONFIG_PSA_SINGLE_KEY_COUNT=1 diff --git a/examples/suit_update/Makefile.ci b/examples/suit_update/Makefile.ci index 7b95c46880e3..2f30d77a5de2 100644 --- a/examples/suit_update/Makefile.ci +++ b/examples/suit_update/Makefile.ci @@ -33,5 +33,4 @@ BOARD_INSUFFICIENT_MEMORY := \ stk3200 \ stm32f0discovery \ telosb \ - z1 \ # diff --git a/examples/twr_aloha/app.config.test b/examples/twr_aloha/app.config.test deleted file mode 100644 index 42c4e643b41f..000000000000 --- a/examples/twr_aloha/app.config.test +++ /dev/null @@ -1,15 +0,0 @@ -CONFIG_PACKAGE_UWB-CORE=y -CONFIG_PACKAGE_UWB-DW1000=y -CONFIG_MODULE_UWB-CORE_EVENT_THREAD=y -CONFIG_MODULE_UWB-CORE_TWR_SS=y -CONFIG_MODULE_UWB-CORE_TWR_SS_ACK=y -CONFIG_MODULE_UWB-CORE_TWR_SS_EXT=y -CONFIG_MODULE_UWB-CORE_TWR_DS=y -CONFIG_MODULE_UWB-CORE_TWR_DS_EXT=y -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_SHELL_CMDS_DEFAULT=y -CONFIG_MODULE_PS=y -CONFIG_MODULE_L2UTIL=y -CONFIG_MODULE_EVENT_PERIODIC=y -CONFIG_MODULE_EVENT_TIMEOUT_ZTIMER=y -CONFIG_MODULE_TEST_UTILS_RESULT_OUTPUT=y diff --git a/kconfigs/Kconfig.errors b/kconfigs/Kconfig.errors deleted file mode 100644 index 4f89afd88f1b..000000000000 --- a/kconfigs/Kconfig.errors +++ /dev/null @@ -1,21 +0,0 @@ -# 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. -# - -# Definition of common error symbols. To indicate an error set the default value -# to the correspondent symbol guarded with the error condition. e.g.: -# -# config ERROR_MODULES_CONFLICT -# default "On SAM0 platforms RTT and RTC cannot be set at the same time" -# depends on MODULE_PERIPH_RTC && MODULE_PERIPH_RTT && CPU_COMMON_SAM0 -# - -config ERROR_MODULES_CONFLICT - string - default "The RTC and RTT map to the same hardware peripheral." if MODULE_PERIPH_RTC && MODULE_PERIPH_RTT && HAVE_SHARED_PERIPH_RTT_PERIPH_RTC - help - Used to indicate that conflicting modules (i.e. modules that can't be - active at the same time) are being used together. diff --git a/kconfigs/Kconfig.features b/kconfigs/Kconfig.features deleted file mode 100644 index f7b8a7b0ce9f..000000000000 --- a/kconfigs/Kconfig.features +++ /dev/null @@ -1,704 +0,0 @@ -# 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. -# - -# Declaration of generic features that CPUs and boards may provide - -config HAS_ARCH_8BIT - bool - help - Indicates that the CPU has a 8-bits architecture. - -config HAS_ARCH_16BIT - bool - help - Indicates that the CPU has a 16-bits architecture. - -config HAS_ARCH_32BIT - bool - help - Indicates that the CPU has a 32-bits architecture. - -config HAS_ARCH_64BIT - bool - help - Indicates that the CPU has a 64-bits architecture. - -config HAS_ARCH_ARM - bool - help - Indicates that the current architecture is ARM. - -config HAS_ARDUINO_ANALOG - bool - help - Indicates that Arduino analog pins mappings are provided. - -config HAS_ARDUINO_DAC - bool - help - Indicates that Arduino DAC pins mappings are provided. - -config HAS_ARDUINO_I2C - bool - help - Indicates that Arduino I²C bus mappings are provided. - -config HAS_ARDUINO_PINS - bool - help - Indicates that Arduino digital pins mappings are provided. - -config HAS_ARDUINO_PWM - bool - help - Indicates that Arduino digital pin to PWM mappings are provided. - -config HAS_ARDUINO_SHIELD_ISP - bool - help - Indicates that the board is electrically and mechanically compatible - with shields that mate with the ISP header for SPI connectivity. - -config HAS_ARDUINO_SHIELD_MEGA - bool - # The Arduino Mega 2560 is backward compatible with Arduino UNO shields. So - # any board compatible with Mega shields will automatically be compatible - # with UNO shields. - select HAS_ARDUINO_SHIELD_UNO - help - Indicates that the board is mechanically and electrically compatible - with shields developed for the Arduino Mega 2560. (Note: Not including - the ISP header, that requires HAS_ARDUINO_SHIELD_ISP in addition.) - -config HAS_ARDUINO_SHIELD_NANO - bool - help - Indicates that the board is mechanically and electrically compatible - with shields developed for the Arduino Nano. (Note: Not including - the ISP header, that requires HAS_ARDUINO_SHIELD_ISP in addition.) - -config HAS_ARDUINO_SHIELD_UNO - bool - help - Indicates that the board is mechanically and electrically compatible - with shields developed for the Arduino Nano. (Note: Not including - the ISP header, that requires HAS_ARDUINO_SHIELD_ISP in addition.) - -config HAS_ARDUINO_SPI - bool - help - Indicates that Arduino SPI bus mappings are provided. - -config HAS_ARDUINO_UART - bool - help - Indicates that Arduino UART device mappings are provided. - -config HAS_BACKUP_RAM - bool - help - Indicates that Backup RAM is supported. - -config HAS_BLE_ADV_EXT - bool - help - Indicates the current platform supports Bluetooth 5 Advertising - Extension - -config HAS_BLE_NIMBLE - bool - help - Indicates that the NimBLE stack is supported on the current platform. - -config HAS_BLE_NIMBLE_NETIF - bool - help - Indicates that NimBLE netif is supported on the current platform. - -config HAS_BLE_PHY_2MBIT - bool - help - Indicates that the BLE radio supports the 2Mbit PHY mode - -config HAS_BLE_PHY_CODED - bool - help - Indicates that the BLE radio supports the CODED PHY mode - -config HAS_CPP - bool - help - Indicates that C++ is supported. - -config HAS_CPU_CHECK_ADDRESS - bool - help - Indicates that address validity check is supported. - -config HAS_PERIPH_CRYPTOCELL_310 - bool - help - Indicates that a cryptocell peripheral is present. - -config HAS_DBGPIN - bool - help - Indicates that a platform provides the neccessary initialization hooks - for the dbgpin module. - -config HAS_EMULATOR_RENODE - bool - help - Indicates that the platform is compatible with the Renode emulator. - -config HAS_ETHERNET - bool - help - Indicates that Ethernet connectivity is present. - -config HAS_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE - bool - help - Indicates that static memory sections can fundamentally be turned - into flash pages. - -config HAS_HIGHLEVEL_STDIO - bool - help - Indicates that a high-level stdio method (such as CDC ACM) is used. - This requires a running thread and set-up and will not print during - a crash. - -config HAS_LIBSTDCPP - bool - help - Indicates that in addition to C++ support an libstdc++ is available. - -config HAS_NO_IDLE_THREAD - bool - help - Indicates that this MCU doesn't need the idle thread - -config HAS_MOTOR_DRIVER - bool - help - Indicates that a motor_driver configuration is present. - -config HAS_PERIPH_ADC - bool - help - Indicates that an ADC peripheral is present. - -config HAS_PERIPH_ADC_CONTINUOUS - bool - help - Indicates that an ADC peripheral can be left on between measurements. - -config HAS_PERIPH_CAN - bool - help - Indicates that a CAN peripheral is present. - -config HAS_PERIPH_CIPHER_AES_128_CBC - bool - help - Indicates that there is AES 128 CBC hardware acceleration present - -config HAS_PERIPH_CORETIMER - bool - help - Indicates that the CLINT timer can be used as timer peripheral - -config HAS_PERIPH_CPUID - bool - help - Indicates that a CPU ID peripheral is present. - -config HAS_PERIPH_DAC - bool - help - Indicates that a DAC peripheral is present. - -config HAS_PERIPH_DMA - bool - help - Indicates that a DMA peripheral is present. - -config HAS_PERIPH_ECC_P192R1 - bool - help - Indicates that there is ECC P192R1 hardware acceleration peripheral present. - -config HAS_PERIPH_ECC_P256R1 - bool - help - Indicates that there is ECC P256R1 hardware acceleration peripheral present. - -config HAS_PERIPH_ECC_ED25519 - bool - help - Indicates that there is ECC Edwards25519 hardware acceleration peripheral present. - -config HAS_PERIPH_EEPROM - bool - help - Indicates that a EEPROM peripheral is present. - -config HAS_PERIPH_ETH - bool - help - Indicates that an Ethernet peripheral is present. - -config HAS_PERIPH_FLASHPAGE - bool - help - Indicates that a Flashpage peripheral is present. - -config HAS_PERIPH_FLASHPAGE_PAGEWISE - bool - help - Indicates that the Flashpage peripheral supports pagewise writing. - -config HAS_PERIPH_FLASHPAGE_RWEE - bool - help - Indicates that the Flashpage peripheral is of the Read While Write. - -config HAS_PERIPH_FREQM - bool - help - Indicates that a Frequency Meter peripheral is present. - -config HAS_PERIPH_GPIO - bool - help - Indicates that a GPIO peripheral is present. - -config HAS_PERIPH_GPIO_IRQ - bool - help - Indicates that the GPIO peripheral supports external interrupts is - present. - -config HAS_PERIPH_GPIO_FAST_READ - bool - help - Indicates that the GPIO peripheral supports a mode in which pin read - operations are faster, usually with a tradeoff against a different - property. - -config HAS_PERIPH_GPIO_TAMPER_WAKE - bool - help - Indicates that Tamper Detection can be used to wake the CPU from - Deep Sleep. - -config HAS_PERIPH_GPIO_LL - bool - help - Indicates that the gpio_ll driver is implemented for the MCU's GPIO - peripheral. - -config HAS_PERIPH_GPIO_LL_IRQ - bool - help - Indicates that IRQ support for the gpio_ll driver is implemented for the - MCU's GPIO peripheral. - -config HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_HIGH - bool - help - Indicates that IRQs can be triggered level based for signal high. - -config HAS_PERIPH_GPIO_LL_IRQ_LEVEL_TRIGGERED_LOW - bool - help - Indicates that IRQs can be triggered level based for signal low. - -config HAS_PERIPH_GPIO_LL_IRQ_UNMASK - bool - help - Indicates that the GPIO peripheral supports unmasking interrupts without - clearing pending IRQs that came in while masked. - -config HAS_PERIPH_HASH_MD5 - bool - help - Indicates that there is MD5 hardware acceleration present. - -config HAS_PERIPH_HASH_SHA_1 - bool - help - Indicates that there is SHA-1 hardware acceleration present. - -config HAS_PERIPH_HASH_SHA_224 - bool - help - Indicates that there is SHA-224 hardware acceleration present. - -config HAS_PERIPH_HASH_SHA_256 - bool - help - Indicates that there is SHA-256 hardware acceleration present. - -config HAS_PERIPH_HASH_SHA_512 - bool - help - Indicates that there is SHA-512 hardware acceleration present. - -config HAS_PERIPH_HMAC_SHA_256 - bool - help - Indicates that there is HMAC SHA-256 hardware acceleration present. - -config HAS_PERIPH_HWRNG - bool - help - Indicates that a Hardware Random Number Generator (HWRNG) peripheral is - present. - -config HAS_PERIPH_I2C - bool - help - Indicates that an I2C peripheral is present. - -config HAS_PERIPH_I2C_RECONFIGURE - bool - help - Indicates that the I2C peripheral allows pin reconfiguration peripheral - is present. - -config HAS_PERIPH_ICS - bool - help - Indicates that an ICS peripheral is present. - -config HAS_PERIPH_IR - bool - help - Indicates that an IR peripheral is present. - -config HAS_PERIPH_LPUART - bool - help - Indicates that a low-power UART peripheral is present. - -config HAS_PERIPH_LTDC - bool - select MODULE_PERIPH_LTDC if MODULE_DISP_DEV - help - Indicates that a LTDC peripheral is present. - -config HAS_PERIPH_MCG - bool - help - Indicates that an MCG peripheral is present. - -config HAS_PERIPH_CLIC - bool - help - Indicates that a RISC-V Core-local Interrupt Controller (CLIC) peripheral is present. - -config HAS_PERIPH_PIO - bool - help - Indicates that Programmable IO (PIO) is supported by the CPU - - -config HAS_PERIPH_PLIC - bool - help - Indicates that a RISC-V Platform-local Interrupt Controller (PLIC) peripheral is present. - -config HAS_PERIPH_PMP - bool - help - Indicates that a RISC-V physical memory protection (PMP) peripheral is present. - -config HAS_PERIPH_PM - bool - help - Indicates that a Power Management (PM) peripheral is present. - -config HAS_PERIPH_PTP - bool - help - Indicates that a PTP clock is present. - -config HAS_PERIPH_PTP_SPEED_ADJUSTMENT - bool - help - Indicates that the PTP clock speed can be adjust. This can be used for clock drift correction and synchronization. - -config HAS_PERIPH_PTP_TIMER - bool - help - Indicates that the PTP clock can be used as timer. - -config HAS_PERIPH_PTP_TXRX_TIMESTAMPS - bool - help - Indicates that the PTP clock can provide exact time stamps of the - reception and transmission of frames. - -config HAS_PERIPH_PWM - bool - help - Indicates that a PWM peripheral is present. - -config HAS_PERIPH_QDEC - bool - help - Indicates that a QDEC peripheral is present. - -config HAS_PERIPH_RTC - bool - help - Indicates that an RTC peripheral is present. - -config HAS_PERIPH_RTC_MEM - bool - help - Indicates that the RTC peripheral provides storage memory for deep sleep. - -config HAS_PERIPH_RTC_MS - bool - help - Indicates that the RTC peripheral can provide sub-second timestamps. - -config HAS_PERIPH_RTT - bool - help - Indicates that an RTT peripheral is present. - -config HAS_PERIPH_RTT_SET_COUNTER - bool - help - Indicates that the RTT peripheral implements rtt_set_counter(). - -config HAS_PERIPH_RTT_OVERFLOW - bool - help - Indicates that the RTT provides an overflow callback. - -config HAS_PERIPH_SDMMC - bool - help - Indicates that an SDIO/SD/MMC peripheral is present and used by the - board. This feature shall be provided by the board configuration, - if available. - -config HAS_PERIPH_SDMMC_8BIT - bool - help - Indicates that the SDIO/SD/MMC peripheral supports the 8-bit bus width - and at least one component of the board is connected with 8 data lines. - This feature shall be provided by the board configuration, if available. - -config HAS_PERIPH_SDMMC_AUTO_CLK - bool - help - Indicates that the SDIO/SD/MMC peripheral supports the Auto-CLK - feature, i.e. the automatic activation and deactivation of the SD CLK - signal when required. This feature shall be provided by the MCU - if supported. - -config HAS_PERIPH_SDMMC_AUTO_CMD12 - bool - help - Indicates that the SDIO/SD/MMC peripheral supports the Auto-CMD12 - feature, i.e. CMD12 is sent automatically to stop the transmission in - multiple block operations. This feature shall be provided by the MCU - if supported. - -config HAS_PERIPH_SDMMC_CLK - bool - help - Indicates that the SDIO/SD/MMC peripheral has special clock - functionality used by the peripheral driver. - -config HAS_PERIPH_SDMMC_HS - bool - help - Indicates that the SDIO/SD/MMC peripheral supports the high speed - access, that is 50 MHz for SD and 52 MHz for MMC. This feature shall be - provided by the MCU. - -config HAS_PERIPH_SDMMC_MMC - bool - help - Indicates that the SDIO/SD/MMC peripheral supports MMC/eMMCs. This - feature shall be provided by the MCU. - -config HAS_PERIPH_SDMMC_SDHC - bool - help - Indicates that the SDIO/SD/MMC peripheral is compliant with the - SD Host Controller Specification. This feature shall - be provided by the MCU. - -config HAS_PERIPH_SPI - bool - help - Indicates that an SPI peripheral is present. - -config HAS_PERIPH_SPI_ON_QSPI - bool - help - Indicates that the QSPI peripheral can be used in SPI mode. - -config HAS_PERIPH_SPI_RECONFIGURE - bool - help - Indicates that the SPI peripheral allows pin reconfiguration. - -config HAS_PERIPH_SPI_GPIO_MODE - bool - help - Indicates that the SPI peripheral supports configuring the GPIOs modes. - -config HAS_PERIPH_TEMPERATURE - bool - help - Indicates that a Temperature peripheral is present. - -config HAS_PERIPH_TIMER - bool - help - Indicates that a Timer peripheral is present. - -config HAS_PERIPH_TIMER_PERIODIC - bool - help - Indicates that the Timer peripheral provides the periodic timeout - functionality. - -config HAS_PERIPH_TIMER_POLL - bool - help - Indicates that the Timer peripheral supports the timer_poll_channel - function. - -config HAS_PERIPH_TIMER_QUERY_FREQS - bool - help - Indicates that the driver of the timer supports iterating over supported frequencies. - -config HAS_PERIPH_UART - bool - help - Indicates that an UART peripheral is present. - -config HAS_PERIPH_UART_COLLISION - bool - help - Indicates that the UART peripheral supports hardware collision detection. - -config HAS_PERIPH_UART_HW_FC - bool - help - Indicates that the UART peripheral supports hardware flow control. - -config HAS_PERIPH_UART_MODECFG - bool - help - Indicates that the UART peripheral allows mode configuration. - -config HAS_PERIPH_UART_TX_ONDEMAND - bool - help - Indicates that the UART peripheral can enable the TX line on demmand. - -config HAS_PERIPH_UART_NONBLOCKING - bool - help - Indicates that the UART peripheral allows non-blocking operations. - -config HAS_PERIPH_UART_RECONFIGURE - bool - help - Indicates that the UART pins can be re-configured as GPIOs. - -config HAS_PERIPH_UART_RXSTART_IRQ - bool - help - Indicates that the UART has an Interrupt for Start Condition detected. - -config HAS_PERIPH_USBDEV - bool - help - Indicates that an USBDEV peripheral is present. - -config HAS_PERIPH_USBDEV_HS - bool - help - Indicates that the USBDEV peripheral supports High-Speed. - -config HAS_PERIPH_USBDEV_HS_UTMI - bool - help - Indicates that an USBDEV HS peripheral with internal UTMI+ HS PHY is present. - -config HAS_PERIPH_USBDEV_HS_ULPI - bool - help - Indicates that an USBDEV HS peripheral with ULPI HS PHY is present. - -config HAS_PERIPH_VBAT - bool - help - Indicates that backup battery monitoring is supported - -config HAS_PERIPH_WDT - bool - help - Indicates that a Watchdog Timer (WDT) peripheral is present. - -config HAS_PERIPH_WDT_CB - bool - help - Indicates that the WDT peripheral allows setting a callback. - -config HAS_PICOLIBC - bool - help - Indicates that the picolibc C library is available for the platform. - -config HAS_PIO_I2C - bool - help - Indicates that there is a PIO program to provide emulated I2C - -config HAS_NEWLIB - bool - help - Indicates that the newlib C library is available for the platform. - -config HAS_PUF_SRAM - bool - help - Indicates that the PUF-SRAM module has been tested on the platform. - -config HAS_RIOTBOOT - bool - help - Indicates that the riotboot booloader is supported. - -config HAS_RUST_TARGET - bool - help - Indicates that a Rust target definition ("triple") is known. - -config HAS_SDCARD_SPI - bool - help - Indicates that an SD-Card SPI configuration is provided. - -config HAS_SSP - bool - help - Indicates that Stack Smashing Protection is supported. diff --git a/kconfigs/Kconfig.ztimer_only b/kconfigs/Kconfig.ztimer_only index d509398b26d1..b1890b6ba558 100644 --- a/kconfigs/Kconfig.ztimer_only +++ b/kconfigs/Kconfig.ztimer_only @@ -3,12 +3,3 @@ # This will use ztimer to perform the required frequency conversion. # By default, xtimer is still used with ztimer as backed, unless # ztimer_xtimer_compat is used. - -config HAVE_ZTIMER_ONLY - bool - default y - select MODULE_ZTIMER if MODULE_XTIMER - select MODULE_ZTIMER_PERIPH_TIMER if MODULE_XTIMER - help - Indicates that the board cannot generate a clock frequency suitable for - xtimer and requires ztimer for conversion. ztimer is used as backend. diff --git a/makefiles/deprecated_modules.inc.mk b/makefiles/deprecated_modules.inc.mk index 8f051d934b24..223a60a80cd5 100644 --- a/makefiles/deprecated_modules.inc.mk +++ b/makefiles/deprecated_modules.inc.mk @@ -1,4 +1,9 @@ # Add deprecated modules here # Keep this list ALPHABETICALLY SORTED!!!!111elven +DEPRECATED_MODULES += gnrc_gomach +DEPRECATED_MODULES += gnrc_lwmac +DEPRECATED_MODULES += gnrc_mac +DEPRECATED_MODULES += gnrc_nettype_gomach +DEPRECATED_MODULES += gnrc_nettype_lwmac DEPRECATED_MODULES += sema_deprecated DEPRECATED_MODULES += ztimer_now64 diff --git a/makefiles/docker.inc.mk b/makefiles/docker.inc.mk index b3d003531355..9012516ea884 100644 --- a/makefiles/docker.inc.mk +++ b/makefiles/docker.inc.mk @@ -67,7 +67,6 @@ export DOCKER_ENV_VARS += \ SCANBUILD_ARGS \ SCANBUILD_OUTPUTDIR \ SIZE \ - TEST_KCONFIG \ TOOLCHAIN \ UNDEF \ WERROR \ diff --git a/makefiles/kconfig.mk b/makefiles/kconfig.mk index de1c216c706f..9353b6e66c8d 100644 --- a/makefiles/kconfig.mk +++ b/makefiles/kconfig.mk @@ -32,21 +32,9 @@ export KCONFIG_EXTERNAL_MODULE_CONFIGS = $(GENERATED_DIR)/Kconfig.external_modul # This file will contain external package configurations export KCONFIG_EXTERNAL_PKG_CONFIGS = $(GENERATED_DIR)/Kconfig.external_pkgs -# Add configurations that only work when running the Kconfig test so far, -# because they activate modules. -ifeq (1,$(TEST_KCONFIG)) - # This file will contain application default configurations - KCONFIG_APP_CONFIG = $(APPDIR)/app.config.test - # This configuration enables modules that are only available when using Kconfig - # module modelling - # Bring in all board specific configurations if present - ifneq (,$(wildcard $(BOARDDIR)/$(BOARD).config)) - KCONFIG_BOARD_CONFIG += $(BOARDDIR)/$(BOARD).config - endif -else - # This file will contain application default configurations - KCONFIG_APP_CONFIG = $(APPDIR)/app.config -endif +# This file will contain application default configurations +KCONFIG_APP_CONFIG = $(APPDIR)/app.config + # Default and user overwritten configurations KCONFIG_USER_CONFIG = $(APPDIR)/user.config @@ -92,7 +80,7 @@ $(GENERATED_DIR): $(if $(MAKE_RESTARTS),,$(CLEAN)) # - A previous configuration file is present (e.g. from a previous call to # menuconfig) # - menuconfig is being called -# - SHOULD_RUN_KCONFIG or TEST_KCONFIG is set +# - SHOULD_RUN_KCONFIG is set # # By default SHOULD_RUN_KCONFIG is set if any of the following is true: # - A file with '.config' extension is present in the application directory @@ -120,16 +108,6 @@ ifneq (,$(if $(CLEAN),,$(wildcard $(KCONFIG_OUT_CONFIG)))) SHOULD_RUN_KCONFIG := 1 endif -# When testing Kconfig we should always run it -ifeq (1,$(TEST_KCONFIG)) - SHOULD_RUN_KCONFIG := 1 -endif - -# Expose DEVELHELP to kconfig -ifeq (1,$(DEVELHELP)) - RIOT_CONFIG_DEVELHELP ?= y -endif - # export variable to make it visible in other Makefiles export SHOULD_RUN_KCONFIG @@ -158,11 +136,7 @@ menuconfig: $(MENUCONFIG) $(KCONFIG_OUT_CONFIG) $(Q)KCONFIG_CONFIG=$(KCONFIG_OUT_CONFIG) $(MENUCONFIG) $(KCONFIG) $(MAKE) $(KCONFIG_GENERATED_AUTOCONF_HEADER_C) -# Variable used to conditionally depend on KCONFIG_GENERATED_DEPDENDENCIES -# When testing Kconfig module modelling this file is not needed -ifneq (1, $(TEST_KCONFIG)) - GENERATED_DEPENDENCIES_DEP = $(KCONFIG_GENERATED_DEPENDENCIES) -endif +GENERATED_DEPENDENCIES_DEP = $(KCONFIG_GENERATED_DEPENDENCIES) # These rules are not included when only calling `make clean` in # order to keep the $(BINDIR) directory clean. diff --git a/makefiles/tools/openocd-adapters/ftdi.inc.mk b/makefiles/tools/openocd-adapters/ftdi.inc.mk index 73432e3166dc..db8982f305ab 100644 --- a/makefiles/tools/openocd-adapters/ftdi.inc.mk +++ b/makefiles/tools/openocd-adapters/ftdi.inc.mk @@ -11,3 +11,10 @@ OPENOCD_TRANSPORT ?= swd ifneq (,$(DEBUG_ADAPTER_ID)) OPENOCD_ADAPTER_INIT += -c 'ftdi_serial $(DEBUG_ADAPTER_ID)' endif + +ifeq (swd, $(OPENOCD_TRANSPORT)) + ifeq (tigard, $(OPENOCD_FTDI_ADAPTER)) + # Add dummy SWD_EN signal + OPENOCD_ADAPTER_INIT += -c 'ftdi layout_signal SWD_EN -data 0' + endif +endif diff --git a/makefiles/tools/usb_board_reset.mk b/makefiles/tools/usb_board_reset.mk index 15ede0f74975..a5e917b8cf2d 100644 --- a/makefiles/tools/usb_board_reset.mk +++ b/makefiles/tools/usb_board_reset.mk @@ -33,7 +33,7 @@ preflash-delay: preflash sleep $(PREFLASH_DELAY) endif -ifneq (,$(filter test term,$(MAKECMDGOALS))) +ifneq (,$(filter test term test-with-config,$(MAKECMDGOALS))) term-delay: $(TERMDELAYDEPS) sleep $(TERM_DELAY) endif diff --git a/pkg/Kconfig b/pkg/Kconfig index 4feea70743fa..f050f6d30b66 100644 --- a/pkg/Kconfig +++ b/pkg/Kconfig @@ -6,88 +6,16 @@ # menu "Packages" -rsource "arduino_adafruit_sensor/Kconfig" -rsource "arduino_sdi_12/Kconfig" -rsource "c25519/Kconfig" -rsource "cayenne-lpp/Kconfig" -rsource "cifra/Kconfig" -rsource "cmsis/Kconfig" -rsource "cn-cbor/Kconfig" -rsource "corejson/Kconfig" -rsource "cryptoauthlib/Kconfig" -rsource "driver_atwinc15x0/Kconfig" -rsource "driver_bme680/Kconfig" -rsource "driver_cryptocell_310/Kconfig" -rsource "driver_sx126x/Kconfig" -rsource "elk/Kconfig" -rsource "emlearn/Kconfig" -rsource "esp32_sdk/Kconfig" -rsource "esp32_sdk_lib_phy/Kconfig" -rsource "esp32_sdk_lib_wifi/Kconfig" -rsource "esp8266_sdk/Kconfig" -rsource "etl/Kconfig" -rsource "fff/Kconfig" -rsource "fido2_tests/Kconfig" -rsource "flatbuffers/Kconfig" rsource "flashdb/Kconfig" -rsource "gecko_sdk/Kconfig" -rsource "gemmlowp/Kconfig" -rsource "hacl/Kconfig" -rsource "heatshrink/Kconfig" -rsource "jerryscript/Kconfig" -rsource "jsmn/Kconfig" -rsource "libb2/Kconfig" -rsource "libbase58/Kconfig" -rsource "libcose/Kconfig" rsource "libfixmath/Kconfig" -rsource "libhydrogen/Kconfig" rsource "libschc/Kconfig" rsource "littlefs2/Kconfig" -rsource "lorabasics/Kconfig" -rsource "lora-serialization/Kconfig" -rsource "lua/Kconfig" -rsource "lv_drivers/Kconfig" rsource "lvgl/Kconfig" -rsource "lz4/Kconfig" rsource "mbedtls/Kconfig" -rsource "micro-ecc/Kconfig" -rsource "microcoap/Kconfig" -rsource "micropython/Kconfig" -rsource "minmea/Kconfig" -rsource "mjson/Kconfig" -rsource "monocypher/Kconfig" -rsource "mynewt-core/Kconfig" -rsource "nanocbor/Kconfig" -rsource "nanopb/Kconfig" -rsource "nanors/Kconfig" -rsource "nmsis_sdk/Kconfig" -rsource "nrfx/Kconfig" -rsource "openthread/Kconfig" -rsource "qcbor/Kconfig" -rsource "qdsa/Kconfig" -rsource "qr-code-generator/Kconfig" -rsource "relic/Kconfig" -rsource "ruy/Kconfig" rsource "semtech-loramac/Kconfig" -rsource "talking_leds/Kconfig" -rsource "tflite-micro/Kconfig" -rsource "tiny-asn1/Kconfig" -rsource "tinycbor/Kconfig" -rsource "tinycrypt/Kconfig" rsource "tinydtls/Kconfig" rsource "tinyusb/Kconfig" rsource "tinyvcdiff/Kconfig" -rsource "tlsf/Kconfig" -rsource "tweetnacl/Kconfig" -rsource "u8g2/Kconfig" -rsource "ubasic/Kconfig" -rsource "ucglib/Kconfig" -rsource "umorse/Kconfig" -rsource "utensor/Kconfig" -rsource "uwb-core/Kconfig" -rsource "uwb-dw1000/Kconfig" -rsource "uzlib/Kconfig" rsource "wakaama/Kconfig" -rsource "yxml/Kconfig" endmenu # Packages diff --git a/pkg/arduino_adafruit_sensor/Kconfig b/pkg/arduino_adafruit_sensor/Kconfig deleted file mode 100644 index ac5dc7d5bcd1..000000000000 --- a/pkg/arduino_adafruit_sensor/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# Copyright (c) 2021 Gunar Schorcht -# -# 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 PACKAGE_ARDUINO_ADAFRUIT_SENSOR - bool "Arduino Adafruit Unified Sensor Driver package" - depends on TEST_KCONFIG - select MODULE_ARDUINO diff --git a/pkg/arduino_api/Kconfig b/pkg/arduino_api/Kconfig deleted file mode 100644 index ca6b4cd312fa..000000000000 --- a/pkg/arduino_api/Kconfig +++ /dev/null @@ -1,4 +0,0 @@ -config PACKAGE_ARDUINO_API - bool "Arduino API package" - depends on TEST_KCONFIG - depends on MODULE_ARDUINO diff --git a/pkg/arduino_sdi_12/Kconfig b/pkg/arduino_sdi_12/Kconfig deleted file mode 100644 index 9ff459a2e55c..000000000000 --- a/pkg/arduino_sdi_12/Kconfig +++ /dev/null @@ -1,4 +0,0 @@ -config PACKAGE_ARDUINO_SDI_12 - bool "Arduino SDI-12 package" - depends on TEST_KCONFIG - depends on PACKAGE_ARDUINO_API diff --git a/pkg/c25519/Kconfig b/pkg/c25519/Kconfig deleted file mode 100644 index 3e4fe7cf4d77..000000000000 --- a/pkg/c25519/Kconfig +++ /dev/null @@ -1,19 +0,0 @@ -# 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 PACKAGE_C25519 - bool "Curve255191 Diffie-Hellman function package" - depends on TEST_KCONFIG - help - This package contains portable public-domain implementations of - Daniel J. Bernstein's Curve255191 Diffie-Hellman function, and - of the Ed25519 signature system. The memory consumption is low - enough that they could be reasonably considered for most - microcontroller applications. In particular, Curve25519 scalar - multiplication uses less than half a kB of peak stack usage. - -rsource "psa_c25519/Kconfig" diff --git a/pkg/c25519/psa_c25519/Kconfig b/pkg/c25519/psa_c25519/Kconfig deleted file mode 100644 index dc8b8dccf5cd..000000000000 --- a/pkg/c25519/psa_c25519/Kconfig +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright (c) 2023 TU Dresden -# -# 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_PSA_C25519_EDSIGN - bool - select MODULE_PSA_C25519 - -config MODULE_PSA_C25519 - bool - depends on MODULE_PSA_CRYPTO - depends on MODULE_RANDOM diff --git a/pkg/cayenne-lpp/Kconfig b/pkg/cayenne-lpp/Kconfig deleted file mode 100644 index a5671b300387..000000000000 --- a/pkg/cayenne-lpp/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# 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 PACKAGE_CAYENNE-LPP - bool "Cayenne Low Power Payload package" - depends on TEST_KCONFIG - help - The Cayenne Low Power Payload (LPP) provides a convenient and - easy way to send data over LPWAN networks such as LoRaWAN. diff --git a/pkg/cifra/Kconfig b/pkg/cifra/Kconfig deleted file mode 100644 index 279f3ec5f280..000000000000 --- a/pkg/cifra/Kconfig +++ /dev/null @@ -1,14 +0,0 @@ -# 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 PACKAGE_CIFRA - bool "Cifra cryptographic primitives" - depends on TEST_KCONFIG - depends on HAS_ARCH_32BIT || HAS_ARCH_64BIT - help - Cifra is a collection of cryptographic primitives targeted at - embedded use. diff --git a/pkg/cmsis/Kconfig b/pkg/cmsis/Kconfig deleted file mode 100644 index da2ee249c5ea..000000000000 --- a/pkg/cmsis/Kconfig +++ /dev/null @@ -1,91 +0,0 @@ -# Copyright (c) 2022 Inria -# -# 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 PACKAGE_CMSIS - bool "ARM CMSIS package" - depends on TEST_KCONFIG - depends on HAS_CPU_CORE_CORTEXM - help - This package uses ARM CMSIS header from the official ARM github repo: - https://github.com/ARM-software/CMSIS_5. - -if PACKAGE_CMSIS - -config MODULE_CMSIS-DSP - bool "ARM CMSIS DSP module" - select MODULE_CMSIS-DSP_BASICMATHFUNCTIONS - select MODULE_CMSIS-DSP_COMMONTABLES - select MODULE_CMSIS-DSP_COMPLEXMATHFUNCTIONS - select MODULE_CMSIS-DSP_CONTROLLERFUNCTIONS - select MODULE_CMSIS-DSP_FASTMATHFUNCTIONS - select MODULE_CMSIS-DSP_FILTERINGFUNCTIONS - select MODULE_CMSIS-DSP_MATRIXFUNCTIONS - select MODULE_CMSIS-DSP_STATISTICSFUNCTIONS - select MODULE_CMSIS-DSP_SUPPORTFUNCTIONS - select MODULE_CMSIS-DSP_TRANSFORMFUNCTIONS - -config MODULE_CMSIS-DSP_BASICMATHFUNCTIONS - bool - -config MODULE_CMSIS-DSP_COMMONTABLES - bool - -config MODULE_CMSIS-DSP_COMPLEXMATHFUNCTIONS - bool - -config MODULE_CMSIS-DSP_CONTROLLERFUNCTIONS - bool - -config MODULE_CMSIS-DSP_FASTMATHFUNCTIONS - bool - -config MODULE_CMSIS-DSP_FILTERINGFUNCTIONS - bool - -config MODULE_CMSIS-DSP_MATRIXFUNCTIONS - bool - -config MODULE_CMSIS-DSP_STATISTICSFUNCTIONS - bool - -config MODULE_CMSIS-DSP_SUPPORTFUNCTIONS - bool - -config MODULE_CMSIS-DSP_TRANSFORMFUNCTIONS - bool - - -config MODULE_CMSIS-NN - bool "ARM CMSIS NN module" - - select MODULE_CMSIS-NN_ACTIVATIONFUNCTIONS - select MODULE_CMSIS-NN_CONVOLUTIONFUNCTIONS - select MODULE_CMSIS-NN_FULLYCONNECTEDFUNCTIONS - select MODULE_CMSIS-NN_NNSUPPORTFUNCTIONS - select MODULE_CMSIS-NN_POOLINGFUNCTIONS - select MODULE_CMSIS-NN_SOFTMAXFUNCTIONS - -config MODULE_CMSIS-NN_ACTIVATIONFUNCTIONS - bool - -config MODULE_CMSIS-NN_CONVOLUTIONFUNCTIONS - bool - -config MODULE_CMSIS-NN_FULLYCONNECTEDFUNCTIONS - bool - -config MODULE_CMSIS-NN_NNSUPPORTFUNCTIONS - bool - -config MODULE_CMSIS-NN_POOLINGFUNCTIONS - bool - -config MODULE_CMSIS-NN_SOFTMAXFUNCTIONS - bool - - -endif diff --git a/pkg/cn-cbor/Kconfig b/pkg/cn-cbor/Kconfig deleted file mode 100644 index 1c6a3ecc8b6e..000000000000 --- a/pkg/cn-cbor/Kconfig +++ /dev/null @@ -1,14 +0,0 @@ -# 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 PACKAGE_CN-CBOR - bool "Constrained Node CBOR" - depends on TEST_KCONFIG - depends on HAS_ARCH_32BIT || HAS_ARCH_64BIT - select MODULE_POSIX_HEADERS - help - A constrained node implementation of CBOR in C. diff --git a/pkg/corejson/Kconfig b/pkg/corejson/Kconfig deleted file mode 100644 index 7ba456a00629..000000000000 --- a/pkg/corejson/Kconfig +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) 2021 Inria -# -# 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 PACKAGE_COREJSON - bool "FreeRTOS coreJSON" - depends on TEST_KCONFIG diff --git a/pkg/cryptoauthlib/Kconfig b/pkg/cryptoauthlib/Kconfig deleted file mode 100644 index 7b46269936fd..000000000000 --- a/pkg/cryptoauthlib/Kconfig +++ /dev/null @@ -1,66 +0,0 @@ -# Copyright (c) 2022 Inria -# -# 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 PACKAGE_CRYPTOAUTHLIB - bool "Microchip CryptoAuthentication Library package" - depends on TEST_KCONFIG - depends on !HAS_ARCH_EFM32 - depends on HAS_PERIPH_I2C - select MODULE_AUTO_INIT_SECURITY - select MODULE_CRYPTOAUTHLIB_CONTRIB - -if PACKAGE_CRYPTOAUTHLIB - -config MODULE_CRYPTOAUTHLIB_CONTRIB - bool - select ZTIMER_USEC - select MODULE_PERIPH_I2C - select MODULE_PERIPH_I2C_RECONFIGURE if HAS_PERIPH_I2C_RECONFIGURE - -config MODULE_PSA_ATCA_DRIVER - bool - depends on PACKAGE_CRYPTOAUTHLIB - default y if MODULE_PSA_CRYPTO - select PSA_KEY_MANAGEMENT - -config MODULE_CRYPTOAUTHLIB_TEST - bool "Module for cryptoauthlib tests" - depends on TEST_KCONFIG - select MODULE_CRYPTOAUTHLIB_TEST_THIRD_PARTY_UNITY - select MODULE_CRYPTOAUTHLIB_TEST_API_ATCAB - select MODULE_CRYPTOAUTHLIB_TEST_API_CALIB - select MODULE_CRYPTOAUTHLIB_TEST_API_CRYPTO - select MODULE_CRYPTOAUTHLIB_TEST_VECTORS - select MODULE_CRYPTOAUTHLIB_TEST_JWT - select MODULE_CRYPTOAUTHLIB_TEST_TNG - select MODULE_CRYPTOAUTHLIB_TEST_ATCACERT - -config MODULE_CRYPTOAUTHLIB_TEST_JWT - bool - -config MODULE_CRYPTOAUTHLIB_TEST_TNG - bool - -config MODULE_CRYPTOAUTHLIB_TEST_ATCACERT - bool - -config MODULE_CRYPTOAUTHLIB_TEST_THIRD_PARTY_UNITY - bool - -config MODULE_CRYPTOAUTHLIB_TEST_API_ATCAB - bool - -config MODULE_CRYPTOAUTHLIB_TEST_API_CALIB - bool - -config MODULE_CRYPTOAUTHLIB_TEST_API_CRYPTO - bool - -config MODULE_CRYPTOAUTHLIB_TEST_VECTORS - bool - -endif # PACKAGE_CRYPTOAUTHLIB diff --git a/pkg/driver_atwinc15x0/Kconfig b/pkg/driver_atwinc15x0/Kconfig deleted file mode 100644 index e4ebe1e4fe8f..000000000000 --- a/pkg/driver_atwinc15x0/Kconfig +++ /dev/null @@ -1,32 +0,0 @@ -# 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 PACKAGE_DRIVER_ATWINC15X0 - bool "ATWINC15x0 WiFi driver package" - depends on TEST_KCONFIG - depends on HAS_PERIPH_SPI - depends on HAS_PERIPH_GPIO - depends on HAS_PERIPH_GPIO_IRQ - select MODULE_PERIPH_SPI - select MODULE_PERIPH_GPIO - select MODULE_PERIPH_GPIO_IRQ - select MODULE_DRIVER_ATWINC15X0 - select MODULE_DRIVER_ATWINC15X0_COMMON - select MODULE_DRIVER_ATWINC15X0_SPI_FLASH - help - ATWINC15x0 WiFi vendor driver from the Arduino WiFi101 library. - -config MODULE_DRIVER_ATWINC15X0 - bool - depends on TEST_KCONFIG - -config MODULE_DRIVER_ATWINC15X0_COMMON - bool - depends on TEST_KCONFIG - -config MODULE_DRIVER_ATWINC15X0_SPI_FLASH - bool diff --git a/pkg/driver_bme680/Kconfig b/pkg/driver_bme680/Kconfig deleted file mode 100644 index 9c775fee4ad5..000000000000 --- a/pkg/driver_bme680/Kconfig +++ /dev/null @@ -1,23 +0,0 @@ -# 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 PACKAGE_DRIVER_BME680 - bool - depends on TEST_KCONFIG - depends on MODULE_BME680 - select MODULE_DRIVER_BME680_CONTRIB - select MODULE_ZTIMER - select MODULE_ZTIMER_MSEC - help - BME680 sensor library, written and maintained by Bosch Sensortec. This is - needed by RIOT BME680 driver. - -config MODULE_DRIVER_BME680_CONTRIB - bool - depends on TEST_KCONFIG - help - RIOT integration code for the BME680 package. diff --git a/pkg/driver_cryptocell_310/Kconfig b/pkg/driver_cryptocell_310/Kconfig deleted file mode 100644 index 411982bfc48d..000000000000 --- a/pkg/driver_cryptocell_310/Kconfig +++ /dev/null @@ -1,19 +0,0 @@ -# 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 PACKAGE_DRIVER_CRYPTOCELL_310 - bool - depends on CPU_MODEL_NRF52840XXAA - depends on TEST_KCONFIG - depends on HAS_PERIPH_CRYPTOCELL_310 - depends on MODULE_PERIPH_CRYPTOCELL_310 - select MODULE_DRIVER_CRYPTOCELL_310_CONTRIB - -config MODULE_DRIVER_CRYPTOCELL_310_CONTRIB - bool - -rsource "psa_cryptocell_310/Kconfig" diff --git a/pkg/driver_cryptocell_310/psa_cryptocell_310/Kconfig b/pkg/driver_cryptocell_310/psa_cryptocell_310/Kconfig deleted file mode 100644 index 9971b66cd664..000000000000 --- a/pkg/driver_cryptocell_310/psa_cryptocell_310/Kconfig +++ /dev/null @@ -1,82 +0,0 @@ -# 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. -# - -# Hashes - -config MODULE_PSA_CRYPTOCELL_310_HASHES_SHA1 - bool - depends on MODULE_PSA_CRYPTO - select MODULE_PSA_CRYPTOCELL_310 - select MODULE_PSA_CRYPTOCELL_310_HASHES_COMMON - -config MODULE_PSA_CRYPTOCELL_310_HASHES_SHA224 - bool - depends on MODULE_PSA_CRYPTO - select MODULE_PSA_CRYPTOCELL_310 - select MODULE_PSA_CRYPTOCELL_310_HASHES_COMMON - -config MODULE_PSA_CRYPTOCELL_310_HASHES_SHA256 - bool - depends on MODULE_PSA_CRYPTO - select MODULE_PSA_CRYPTOCELL_310 - select MODULE_PSA_CRYPTOCELL_310_HASHES_COMMON - -config MODULE_PSA_CRYPTOCELL_310_HASHES_SHA512 - bool - depends on MODULE_PSA_CRYPTO - select MODULE_PSA_CRYPTOCELL_310 - select MODULE_PSA_CRYPTOCELL_310_HASHES_COMMON - -# MAC - -config MODULE_PSA_CRYPTOCELL_310_HMAC - bool - depends on MODULE_PSA_CRYPTO - select MODULE_PSA_CRYPTOCELL_310 - -# AES - -config MODULE_PSA_CRYPTOCELL_310_AES_CBC - bool - depends on MODULE_PSA_CRYPTO - select MODULE_PSA_CRYPTOCELL_310 - select MODULE_PSA_CRYPTOCELL_310_AES_COMMON - -# ECC - -config MODULE_PSA_CRYPTOCELL_310_ECC_P192 - bool - depends on MODULE_PSA_CRYPTO - select MODULE_PSA_CRYPTOCELL_310 - select MODULE_PSA_CRYPTOCELL_310_ECC_COMMON - -config MODULE_PSA_CRYPTOCELL_310_ECC_P256 - bool - depends on MODULE_PSA_CRYPTO - select MODULE_PSA_CRYPTOCELL_310 - select MODULE_PSA_CRYPTOCELL_310_ECC_COMMON - -config MODULE_PSA_CRYPTOCELL_310_ECC_ED25519 - bool - depends on MODULE_PSA_CRYPTO - select MODULE_PSA_CRYPTOCELL_310 - -config MODULE_PSA_CRYPTOCELL_310 - bool "PSA CryptoCell Wrapper" - select MODULE_PSA_CRYPTOCELL_310_ERROR_CONVERSION - -config MODULE_PSA_CRYPTOCELL_310_HASHES_COMMON - bool - -config MODULE_PSA_CRYPTOCELL_310_ECC_COMMON - bool - -config MODULE_PSA_CRYPTOCELL_310_AES_COMMON - bool - -config MODULE_PSA_CRYPTOCELL_310_ERROR_CONVERSION - bool diff --git a/pkg/driver_sx126x/Kconfig b/pkg/driver_sx126x/Kconfig deleted file mode 100644 index ff1b6a291bb0..000000000000 --- a/pkg/driver_sx126x/Kconfig +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright (c) 2021 Inria -# -# 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 PACKAGE_DRIVER_SX126X - bool "LLCC68 driver package" - depends on TEST_KCONFIG - depends on HAS_PERIPH_SPI - select MODULE_PERIPH_SPI - select MODULE_ZTIMER - select ZTIMER_USEC - select MODULE_DRIVER_SX126X_HAL - -config MODULE_DRIVER_SX126X_HAL - bool - help - HAL implementation for the SX126X LoRa radio driver. diff --git a/pkg/elk/Kconfig b/pkg/elk/Kconfig deleted file mode 100644 index e3b66e374c73..000000000000 --- a/pkg/elk/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# Copyright (c) 2021 Inria -# -# 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 PACKAGE_ELK - bool "Elk: a tiny Javascript engine" - select MODULE_PRINTF_FLOAT - depends on !HAS_ARCH_AVR8 - depends on TEST_KCONFIG diff --git a/pkg/emlearn/Kconfig b/pkg/emlearn/Kconfig deleted file mode 100644 index 0741a5cac908..000000000000 --- a/pkg/emlearn/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# 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 PACKAGE_EMLEARN - bool "Machine Learning inference engine package" - depends on TEST_KCONFIG - depends on !HAS_ARCH_MSP430 - help - A header only Machine Learning inference engine package. diff --git a/pkg/esp32_sdk/Kconfig b/pkg/esp32_sdk/Kconfig deleted file mode 100644 index 8b46b88614e3..000000000000 --- a/pkg/esp32_sdk/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright (c) 2021 Gunar Schorcht -# -# 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 PACKAGE_ESP32_SDK - bool "ESP32 SDK for the ESP32 MCU support" - depends on TEST_KCONFIG - depends on HAS_ARCH_ESP32 - help - Vendor SDK without libraries for ESP32 MCU support by Espressif diff --git a/pkg/esp32_sdk_lib_bt_esp32/Kconfig b/pkg/esp32_sdk_lib_bt_esp32/Kconfig deleted file mode 100644 index a26e63794226..000000000000 --- a/pkg/esp32_sdk_lib_bt_esp32/Kconfig +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2021 Gunar Schorcht -# -# 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 PACKAGE_ESP32_SDK_LIB_BT_ESP32 - bool "ESP32 SDK Bluetooth library for the ESP32 SoC" - depends on TEST_KCONFIG - depends on HAS_ARCH_ESP32 - depends on HAS_ESP_BLE_ESP32 - help - Vendor SDK Bluetooth library for ESP32 SoC diff --git a/pkg/esp32_sdk_lib_bt_esp32c3/Kconfig b/pkg/esp32_sdk_lib_bt_esp32c3/Kconfig deleted file mode 100644 index b8e3be71653f..000000000000 --- a/pkg/esp32_sdk_lib_bt_esp32c3/Kconfig +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2021 Gunar Schorcht -# -# 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 PACKAGE_ESP32_SDK_LIB_BT_ESP32C3 - bool "ESP32 SDK Bluetooth library for the ESP32-C3 SoC" - depends on TEST_KCONFIG - depends on HAS_ARCH_ESP32 - depends on HAS_ESP_BLE_ESP32C3 - help - Vendor SDK Bluetooth library for ESP32-C3 SoC diff --git a/pkg/esp32_sdk_lib_phy/Kconfig b/pkg/esp32_sdk_lib_phy/Kconfig deleted file mode 100644 index 8a795bdae2e7..000000000000 --- a/pkg/esp32_sdk_lib_phy/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright (c) 2021 Gunar Schorcht -# -# 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 PACKAGE_ESP32_SDK_LIB_PHY - bool "ESP32 SDK libraries for the ESP32 SoC support" - depends on TEST_KCONFIG - depends on HAS_ARCH_ESP32 - help - Vendor SDK libraries for ESP32 SoC support by Espressif diff --git a/pkg/esp32_sdk_lib_wifi/Kconfig b/pkg/esp32_sdk_lib_wifi/Kconfig deleted file mode 100644 index dd139418b5ee..000000000000 --- a/pkg/esp32_sdk_lib_wifi/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright (c) 2021 Gunar Schorcht -# -# 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 PACKAGE_ESP32_SDK_LIB_WIFI - bool "ESP32 SDK libraries for the ESP32 WiFi support" - depends on TEST_KCONFIG - depends on HAS_ARCH_ESP32 - help - Vendor SDK libraries for ESP32 WiFi support by Espressif diff --git a/pkg/esp8266_sdk/Kconfig b/pkg/esp8266_sdk/Kconfig deleted file mode 100644 index ed589a0f983e..000000000000 --- a/pkg/esp8266_sdk/Kconfig +++ /dev/null @@ -1,22 +0,0 @@ -# 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 PACKAGE_ESP8266_SDK - bool "ESP8266 RTOS SDK for the ESP8266 MCU support" - depends on TEST_KCONFIG - depends on HAS_ARCH_ESP8266 - select MODULE_ESP_BOOTLOADER - help - Vendor SDK with libraries for ESP8266 MCU support by Espressif - -config MODULE_ESP_BOOTLOADER - bool - depends on TEST_KCONFIG - depends on HAS_ARCH_ESP8266 - default y - help - Bootloader compiled from ESP8266 RTOS SDK code. diff --git a/pkg/etl/Kconfig b/pkg/etl/Kconfig deleted file mode 100644 index ae2f59599ac7..000000000000 --- a/pkg/etl/Kconfig +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright (c) 2022 Jens Wetterich -# -# 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 PACKAGE_ETL - bool "Embedded Template Library" - depends on TEST_KCONFIG - depends on HAS_CPP - select MODULE_CPP - help - This is a drop-in replacement for the C++ standard library with fixed-size containers. - It does not rely on dynamic memory. It also provides type-traits for boards without standard library. - See the website for more details. diff --git a/pkg/fff/Kconfig b/pkg/fff/Kconfig deleted file mode 100644 index b6bc905b3a90..000000000000 --- a/pkg/fff/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (c) 2021 Jens Wetterich -# -# 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 PACKAGE_FFF - bool "Fake functions framework" - depends on TEST_KCONFIG - help - A header only fake functions framework for unit testing. diff --git a/pkg/fido2_tests/Kconfig b/pkg/fido2_tests/Kconfig deleted file mode 100644 index 9648b31c7d4c..000000000000 --- a/pkg/fido2_tests/Kconfig +++ /dev/null @@ -1,4 +0,0 @@ -config PACKAGE_FIDO2_TESTS - bool "FIDO2 tests" - help - Test suite for FIDO2, U2F, and other security key functions. diff --git a/pkg/flashdb/Kconfig b/pkg/flashdb/Kconfig index 0d9fdef41cf3..83084b26f49a 100644 --- a/pkg/flashdb/Kconfig +++ b/pkg/flashdb/Kconfig @@ -5,41 +5,8 @@ # directory for more details. # -menuconfig KCONFIG_USEPKG_FLASHDB - bool "Configure FlashDB" - help - Configure FlashDB using Kconfig - -if KCONFIG_USEPKG_FLASHDB - -config MODULE_FLASHDB_MTD - bool "Use MTD backend" - select MODULE_MTD - select MODULE_FLASHDB_FAL - -config MODULE_FLASHDB_VFS - bool "Use VFS backend" - select MODULE_VFS - select MODULE_FLASHDB_FAL - -config MODULE_FLASHDB_FAL - bool "FlashDB flash abstraction layer" - depends on MODULE_FLASHDB_MTD - default y - -config MODULE_FLASHDB_TSDB - bool "FlashDB Time Series Database" - -config MODULE_FLASHDB_KVDB - bool "FlashDB Key-Value Database" - -config MODULE_FLASHDB_KVDB_AUTO_UPDATE - bool "Enable Key-Value automatic upgrade function" - depends on MODULE_FLASHDB_KVDB - help - When this function is enabled, fdb_kvdb.ver_num stores the version of the current - database. If the version changes, it will automatically trigger an upgrade action - and update the new default KV collection to the current database. +menu "FlashDB package" + depends on USEPKG_FLASHDB config FLASHDB_MIN_SECTOR_SIZE_DEFAULT_KiB int "Minimal virtual sector size in KiB for FlashDB" @@ -50,6 +17,4 @@ config FLASHDB_MIN_SECTOR_SIZE_DEFAULT_KiB a KV with a length of 10K, you can use the control function to set the sector size to 12K or larger. -config MODULE_FLASHDB_MTD - -endif # PACKAGE_FLASHDB +endmenu # FlashDB diff --git a/pkg/flatbuffers/Kconfig b/pkg/flatbuffers/Kconfig deleted file mode 100644 index 55e682f08ebe..000000000000 --- a/pkg/flatbuffers/Kconfig +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright (c) 2022 Inria -# -# 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 PACKAGE_FLATBUFFERS - bool "Flatbuffers package" - depends on TEST_KCONFIG - depends on HAS_CPP - depends on HAS_LIBSTDCPP - - select MODULE_LIBSTDCPP - select MODULE_CPP11-COMPAT diff --git a/pkg/gecko_sdk/Kconfig b/pkg/gecko_sdk/Kconfig deleted file mode 100644 index dfdac1e4a120..000000000000 --- a/pkg/gecko_sdk/Kconfig +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright (c) 2021 HAW Hamburg -# 2022 SSV Software Systems GmbH -# -# 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. -# - -## Definition of Gecko SDK specific features -config HAS_GECKO_SDK_LIBRAIL_NONFPU - bool - help - Indicates that the CPU offers librail support if the FPU is disabled. - Librail is shipped as pre-compiled blobs. Thus, we have to adapt to - their choice how to process floats. - -config HAS_GECKO_SDK_LIBRAIL_FPU - bool - help - Indicates that the CPU offers librail support if the FPU is enabled. - Librail is shipped as pre-compiled blobs. Thus, we have to adapt to - their choice how to process floats. - - -## Provided modules -menuconfig PACKAGE_GECKO_SDK - bool "Vendor library for EFM/EFR/EZR32 MCUs" - depends on TEST_KCONFIG - help - Vendor library for EFM/EFR/EZR32 targets by Silicon Labs. - See: https://siliconlabs.github.io/Gecko_SDK_Doc/ - -if PACKAGE_GECKO_SDK - -config MODULE_GECKO_SDK_EMLIB - bool - default y - help - EMLIB is a low-level peripheral support library that provides a unified - API for all EFM32, EZR32 and EFR32 MCUs and SoCs from Silicon Labs. - -config MODULE_GECKO_SDK_EMLIB_EXTRA - bool - default y - help - Extra utility methods from EMBLIB vendor library. - -config MODULE_GECKO_SDK_LIBRAIL - bool "Radio Abstraction Interface Layer (RAIL)" - depends on (HAS_GECKO_SDK_LIBRAIL_NONFPU && !MODULE_CORTEXM_FPU) || (HAS_GECKO_SDK_LIBRAIL_FPU && MODULE_CORTEXM_FPU) - help - The Silicon Labs Radio Abstraction Interface Layer (RAIL) is required - to use the integrated radio offered by the EFR32 families. - -config MODULE_GECKO_SDK_LIBRAIL_PA - bool "Power Amplifier Power Conversion Functions" - depends on MODULE_GECKO_SDK_LIBRAIL - help - Helper to convert between transmission power in dBm and the - chip- and circuit-specific raw power level. - -endif # PACKAGE_GECKO_SDK diff --git a/pkg/gemmlowp/Kconfig b/pkg/gemmlowp/Kconfig deleted file mode 100644 index 066b88fccbf7..000000000000 --- a/pkg/gemmlowp/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# 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 PACKAGE_GEMMLOWP - bool "General Matrix Multiplication package" - depends on TEST_KCONFIG - help - A small self-contained low-precision GEMM library. diff --git a/pkg/hacl/Kconfig b/pkg/hacl/Kconfig deleted file mode 100644 index e15e9e0e5d08..000000000000 --- a/pkg/hacl/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# 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 PACKAGE_HACL - bool "High Assurance Cryptographic Library package" - depends on TEST_KCONFIG - depends on MODULE_RANDOM - depends on HAS_ARCH_32BIT || HAS_ARCH_64BIT diff --git a/pkg/heatshrink/Kconfig b/pkg/heatshrink/Kconfig deleted file mode 100644 index 4e04a16a8c17..000000000000 --- a/pkg/heatshrink/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# 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 PACKAGE_HEATSHRINK - bool "Lightweight Compression package" - depends on TEST_KCONFIG - help - This package provides a compression library specifically - developed for memory-constrained devices. diff --git a/pkg/jerryscript/Kconfig b/pkg/jerryscript/Kconfig deleted file mode 100644 index 9de6349ba5a6..000000000000 --- a/pkg/jerryscript/Kconfig +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright (c) 2022 Inria -# -# 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 PACKAGE_JERRYSCRIPT - bool "Ultra-lightweight Javascript interpreter" - depends on TEST_KCONFIG - depends on HAS_ARCH_32BIT || HAS_ARCH_64BIT - - select MODULE_JERRYSCRIPT-PORT-DEFAULT - select MODULE_JERRYSCRIPT-EXT - -config MODULE_JERRYSCRIPT-PORT-DEFAULT - bool - -config MODULE_JERRYSCRIPT-EXT - bool diff --git a/pkg/jsmn/Kconfig b/pkg/jsmn/Kconfig deleted file mode 100644 index e4f5a95fae7d..000000000000 --- a/pkg/jsmn/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# 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 PACKAGE_JSMN - bool "JSMN JSON Parser package" - depends on TEST_KCONFIG diff --git a/pkg/libb2/Kconfig b/pkg/libb2/Kconfig deleted file mode 100644 index edc69fbc1b12..000000000000 --- a/pkg/libb2/Kconfig +++ /dev/null @@ -1,15 +0,0 @@ -# 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 PACKAGE_LIBB2 - bool "BLAKE2 cryptographic hash function package" - depends on TEST_KCONFIG - depends on !HAS_ARCH_8BIT - help - BLAKE2 is a cryptographic hash function specified in RFC 7693. - It claims to be faster than MD5, SHA-1, SHA-2, and SHA-3, yet at - least as secure as the latest standard SHA-3. diff --git a/pkg/libbase58/Kconfig b/pkg/libbase58/Kconfig deleted file mode 100644 index 4ad2e30321ae..000000000000 --- a/pkg/libbase58/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (c) 2023 Inria -# -# 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 PACKAGE_LIBBASE58 - bool "Bitcoin's base58 encoding" - depends on TEST_KCONFIG - - select MODULE_POSIX_HEADERS diff --git a/pkg/libcose/Kconfig b/pkg/libcose/Kconfig deleted file mode 100644 index 734b448b4a28..000000000000 --- a/pkg/libcose/Kconfig +++ /dev/null @@ -1,53 +0,0 @@ -# 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 PACKAGE_LIBCOSE - bool "LibCose CBOR Object Signing and Encryption package" - depends on TEST_KCONFIG - depends on MODULE_RANDOM - select PACKAGE_NANOCBOR - select MODULE_LIBCOSE_CRYPT - help - CBOR Object Signing and Encryption package based on RFC8613. - -if PACKAGE_LIBCOSE - -config MODULE_LIBCOSE_CRYPT_C25519 - bool "COSE use C25519 backend" - depends on TEST_KCONFIG - depends on PACKAGE_C25519 - -config MODULE_LIBCOSE_CRYPT_HACL - bool "COSE use HACL backend" - depends on TEST_KCONFIG - depends on PACKAGE_HACL - -config MODULE_LIBCOSE_CRYPT_MONOCYPHER - bool "COSE use MONOCYPHER backend" - depends on TEST_KCONFIG - depends on PACKAGE_MONOCYPHER - -config MODULE_LIBCOSE_CRYPT_RIOT - bool "COSE use RIOT backend" - depends on TEST_KCONFIG - select MODULE_CRYPTO - -config MODULE_LIBCOSE_CRYPT_INIT - bool "LibCose Crypt Initialization functions" - default y - -config MODULE_AUTO_INIT_LIBCOSE_CRYPT - bool "Auto initialize LibCose Crypt" - depends on MODULE_AUTO_INIT - select MODULE_LIBCOSE_CRYPT_INIT - default y - -endif # PACKAGE_LIBCOSE - -config MODULE_LIBCOSE_CRYPT - bool - depends on TEST_KCONFIG diff --git a/pkg/libfixmath/Kconfig b/pkg/libfixmath/Kconfig index 1160387489c7..044b4b9b1ac5 100644 --- a/pkg/libfixmath/Kconfig +++ b/pkg/libfixmath/Kconfig @@ -5,19 +5,7 @@ # directory for more details. # -menuconfig PACKAGE_LIBFIXMATH - bool "Fixed Point Math package" - depends on TEST_KCONFIG - -if PACKAGE_LIBFIXMATH - -config MODULE_LIBFIXMATH - bool "Fixed Point Math module" - -config MODULE_LIBFIXMATH_UNITTESTS - bool "Fixed Point Math unittests" - depends on !HAS_ARCH_8BIT - depends on !HAS_MSP430 +if USEPKG_LIBFIXMATH menu "Accuracy" @@ -79,4 +67,4 @@ config FIXMATH_FAST_SIN endmenu -endif # PACKAGE_LIBFIXMATH +endif # USEPKG_LIBFIXMATH diff --git a/pkg/libhydrogen/Kconfig b/pkg/libhydrogen/Kconfig deleted file mode 100644 index a539125cda04..000000000000 --- a/pkg/libhydrogen/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# 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 PACKAGE_LIBHYDROGEN - bool "LibHydrogen Crypto Library package" - depends on TEST_KCONFIG - depends on MODULE_RANDOM - depends on HAS_ARCH_32BIT || HAS_ARCH_64BIT diff --git a/pkg/libschc/Kconfig b/pkg/libschc/Kconfig index 41f81250d341..2b65dd918d0f 100644 --- a/pkg/libschc/Kconfig +++ b/pkg/libschc/Kconfig @@ -4,13 +4,8 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEPKG_LIBSCHC - bool "Configure libSCHC" +menu "libSCHC" depends on USEPKG_LIBSCHC - help - Configure libSCHC package via Kconfig. - -if KCONFIG_USEPKG_LIBSCHC config LIBSCHC_STATIC_MEMBUF_LEN int "Static memory allocation buffer length" @@ -36,4 +31,4 @@ config LIBSCHC_MAX_MTU_LEN config LIBSCHC_DEBUG bool "Enable debug output" -endif # KCONFIG_USEPKG_LIBSCHC +endmenu # libSCHC diff --git a/pkg/libsocketcan/Kconfig b/pkg/libsocketcan/Kconfig deleted file mode 100644 index 4b1d996ba56d..000000000000 --- a/pkg/libsocketcan/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright (c) ML!PA Consulting GmbH -# -# 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 PACKAGE_LIBSOCKETCAN - bool "libsocketcan2 for native Linux builds" - depends on HAS_ARCH_NATIVE diff --git a/pkg/littlefs2/Kconfig b/pkg/littlefs2/Kconfig index 8e554c84a6bc..c8459790d20e 100644 --- a/pkg/littlefs2/Kconfig +++ b/pkg/littlefs2/Kconfig @@ -1,18 +1,4 @@ -menuconfig PACKAGE_LITTLEFS2 - bool "littlefs v2.x.y file system" - depends on TEST_KCONFIG - -menuconfig MODULE_LITTLEFS2_FS - bool "VFS/MTD Driver" - default y - depends on PACKAGE_LITTLEFS2 - select MODULE_VFS - select MODULE_MTD - help - This module attaches littlefs to RIOT by utilizing the MTD and VFS - driver. - -if MODULE_LITTLEFS2_FS +if USEMODULE_LITTLEFS2_FS config LITTLEFS2_LOOKAHEAD_SIZE int "Default lookahead size" @@ -63,4 +49,4 @@ config LITTLEFS2_MIN_BLOCK_SIZE_EXP The actual block size may be larger due to device properties. The default value (-1) sets the block size to the smalles possible value. -endif # MODULE_LITTLEFS2_FS +endif # USEMODULE_LITTLEFS2_FS diff --git a/pkg/lora-serialization/Kconfig b/pkg/lora-serialization/Kconfig deleted file mode 100644 index 1b6a6ebb40a0..000000000000 --- a/pkg/lora-serialization/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# 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 PACKAGE_LORA-SERIALIZATION - bool "LoRa Serialization package" - depends on TEST_KCONFIG diff --git a/pkg/lorabasics/Kconfig b/pkg/lorabasics/Kconfig deleted file mode 100644 index aeeb28828d3d..000000000000 --- a/pkg/lorabasics/Kconfig +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) 2022 Inria -# -# 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 PACKAGE_LORABASICS - bool "LoRa Basics" - depends on TEST_KCONFIG - # depends on HAS_ARCH_32_BIT - select MODULE_LORABASICS_SMTC_RAL - -if PACKAGE_LORABASICS - -config MODULE_LORABASICS_SX1280_DRIVER - bool "LoRaBasics SX1280 driver code" - depends on HAS_PERIPH_SPI - depends on HAS_PERIPH_GPIO - depends on HAS_PERIPH_GPIO_IRQ - select MODULE_PERIPH_SPI - select MODULE_PERIPH_GPIO - select MODULE_PERIPH_GPIO_IRQ - select MODULE_ZTIMER - select MODULE_ZTIMER_MSEC - select MODULE_LORABASICS_DRIVER_SX1280_HAL - -config MODULE_LORABASICS_DRIVER_SX1280_HAL - bool "LoRaBasicsModem SX1280 driver hal" - -config MODULE_LORABASICS_SMTC_RAL - bool "LoRaBasicsModem Radio Abstraction Layer (RAL)" - -endif # PACKAGE_LORABASICS diff --git a/pkg/lua/Kconfig b/pkg/lua/Kconfig deleted file mode 100644 index 925c5a62ab8b..000000000000 --- a/pkg/lua/Kconfig +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright (c) 2022 Inria -# -# 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 PACKAGE_LUA - bool "LUA language package" - depends on TEST_KCONFIG - depends on HAS_ARCH_32BIT || HAS_ARCH_64BIT - depends on !HAS_ARCH_RISCV - depends on !MODULE_PICOLIBC - - select PACKAGE_TLSF - select MODULE_PRINTF_FLOAT - select MODULE_LUA-CONTRIB - - select MODULE_LIBC_GETTIMEOFDAY if !CPU_NATIVE - -config MODULE_LUA-CONTRIB - bool - depends on TEST_KCONFIG diff --git a/pkg/lv_drivers/Kconfig b/pkg/lv_drivers/Kconfig deleted file mode 100644 index f6c5eee1a8bf..000000000000 --- a/pkg/lv_drivers/Kconfig +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright (c) 2022 Inria -# -# 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 PACKAGE_LV_DRIVERS - bool "LVGL Drivers Package" - depends on TEST_KCONFIG - depends on PACKAGE_LVGL - -config MODULE_LV_DRIVERS_SDL - bool "Monitor driver" - depends on HAS_ARCH_NATIVE - select PACKAGE_LV_DRIVERS - -config HAVE_SDL - bool - select MODULE_LV_DRIVERS_SDL if PACKAGE_LVGL - help - Indicates a display monitor is present diff --git a/pkg/lvgl/Kconfig b/pkg/lvgl/Kconfig index cf37b4ca7395..233161a004b2 100644 --- a/pkg/lvgl/Kconfig +++ b/pkg/lvgl/Kconfig @@ -5,244 +5,8 @@ # directory for more details. # -if TEST_KCONFIG - -menuconfig PACKAGE_LVGL - bool "LVGL package" - imply MODULE_AUTO_INIT_SCREEN - select MODULE_LVGL - select MODULE_LVGL_CORE - select MODULE_LVGL_DRAW - select MODULE_LVGL_DRAW_SW - select MODULE_LVGL_EXTRA - select MODULE_LVGL_FONT - select MODULE_LVGL_HAL - select MODULE_LVGL_MISC - select MODULE_LVGL_WIDGETS - - # lvgl is not compatible with non 32bit platforms - # Building lv_misc triggers the error: - # "left shift count >= width of type [-Werror=shift-count-overflow]" - depends on !HAS_ARCH_8BIT - depends on !HAS_ARCH_16BIT - -if PACKAGE_LVGL - -config MODULE_LVGL_CONTRIB - bool "Contrib" - select MODULE_DISP_DEV - select MODULE_CORE_THREAD_FLAGS - select MODULE_ZTIMER - select MODULE_ZTIMER_MSEC - -config MODULE_LVGL_CONTRIB_TOUCH - bool "Touch support" - select MODULE_TOUCH_DEV - -config MODULE_LVGL - bool - -config MODULE_LVGL_CORE - bool - -config MODULE_LVGL_DRAW - bool - -config MODULE_LVGL_DRAW_SW - bool - -config MODULE_LVGL_EXTRA - bool - -config MODULE_LVGL_FONT - bool - -config MODULE_LVGL_HAL - bool - -config MODULE_LVGL_MISC - bool - -config MODULE_LVGL_WIDGETS - bool - -config MODULE_LVGL_WIDGET_ARC - bool "Arc widget" - select LV_USE_ARC if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_WIDGET_BAR - bool "Bar widget" - select LV_USE_BAR if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_WIDGET_BTN - bool "Button widget" - select LV_USE_BTN if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_WIDGET_BTNMATRIX - bool "Button matrix widget" - select LV_USE_BTNMATRIX if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_WIDGET_CANVAS - bool "Canvas widget" - select LV_USE_CANVAS if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_WIDGET_CHECKBOX - bool "Checkbox widget" - select LV_USE_CHECKBOX if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_WIDGET_DROPDOWN - bool "Dropdown widget" - select MODULE_LVGL_WIDGET_LABEL - select LV_USE_DROPDOWN if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_WIDGET_IMG - bool "Image widget" - select MODULE_LVGL_WIDGET_LABEL - select LV_USE_IMG if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_WIDGET_LABEL - bool "Label widget" - select LV_USE_LABEL if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_WIDGET_LINE - bool "Line widget" - select LV_USE_LINE if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_WIDGET_ROLLER - bool "Roller widget" - select MODULE_LVGL_WIDGET_LABEL - select LV_USE_ROLLER if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_WIDGET_SLIDER - bool "Slider widget" - select MODULE_LVGL_WIDGET_BAR - select LV_USE_SLIDER if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_WIDGET_SWITCH - bool "Switch widget" - select LV_USE_SWITCH if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_WIDGET_TEXTAREA - bool "Textarea widget" - select MODULE_LVGL_WIDGET_LABEL - select LV_USE_TEXTAREA if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_WIDGET_TABLE - bool "Table widget" - select LV_USE_TABLE if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_EXTRA_LAYOUT_FLEX - bool "Flex extra layout" - select LV_USE_FLEX if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_EXTRA_LAYOUT_GRID - bool "Grid extra layout" - select LV_USE_GRID if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_EXTRA_THEME_BASIC - bool "Extra theme basic" - select LV_USE_THEME_BASIC if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_EXTRA_THEME_DEFAULT - bool "Extra theme default" - select LV_USE_THEME_DEFAULT if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_EXTRA_THEME_DEFAULT_DARK - bool "Extra theme default in dark mode" - select LV_THEME_DEFAULT_DARK if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_EXTRA_THEME_DEFAULT_GROW - bool "Extra theme default with button grow mode" - select LV_THEME_DEFAULT_GROW if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_EXTRA_THEME_MONO - bool "Extra theme mono" - -config MODULE_LVGL_EXTRA_WIDGET_ANIMING - bool "Animing extra widget" - select LV_USE_ANIMING if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_EXTRA_WIDGET_CALENDAR - bool "Calendar extra widget" - select LV_USE_CALENDAR if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_EXTRA_WIDGET_CHART - bool "Chart extra widget" - select LV_USE_CHART if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_EXTRA_WIDGET_COLORWHEEL - bool "Colorwheel extra widget" - select LV_USE_COLORWHEEL if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_EXTRA_WIDGET_IMGBIN - bool "Imgbin extra widget" - select LV_USE_IMGBIN if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_EXTRA_WIDGET_LED - bool "Led extra widget" - select LV_USE_LED if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_EXTRA_WIDGET_LIST - bool "List extra widget" - select LV_USE_LIST if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_EXTRA_WIDGET_MENU - bool "Menu extra widget" - select MODULE_LVGL_WIDGET_IMG - select MODULE_LVGL_WIDGET_BTN - select MODULE_LVGL_WIDGET_LABEL - select LV_USE_MENU if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_EXTRA_WIDGET_METER - bool "Meter extra widget" - select LV_USE_METER if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_EXTRA_WIDGET_MSGBOX - bool "Message box extra widget" - select LV_USE_MSGBOX if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_EXTRA_WIDGET_SPAN - bool "Window extra widget" - select LV_USE_SPAN if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_EXTRA_WIDGET_SPINBOX - bool "Spinbox extra widget" - select LV_USE_SPINBOX if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_EXTRA_WIDGET_SPINNER - bool "Spinner extra widget" - select LV_USE_SPINNER if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_EXTRA_WIDGET_TABVIEW - bool "Tabview extra widget" - select MODULE_LVGL_WIDGET_BTNMATRIX - select LV_USE_TABVIEW if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_EXTRA_WIDGET_TILEVIEW - bool "Tileview extra widget" - select LV_USE_TILEVIEW if KCONFIG_USEPKG_LVGL - -config MODULE_LVGL_EXTRA_WIDGET_WIN - bool "Window extra widget" - select MODULE_LVGL_WIDGET_BTN - select MODULE_LVGL_WIDGET_IMG - select MODULE_LVGL_WIDGET_LABEL - select LV_USE_WIN if KCONFIG_USEPKG_LVGL - -endif # PACKAGE_LVGL - -endif # TEST_KCONFIG - -menuconfig KCONFIG_USEPKG_LVGL - bool "Configure LVGL" - help - Configure LVGL package via Kconfig. - # Make sure all widgets are unchecked by default - select LV_CONF_MINIMAL - -if KCONFIG_USEPKG_LVGL - menu "LVGL RIOT configuration" + depends on USEPKG_LVGL config LVGL_INACTIVITY_PERIOD_MS int "Inactivity period before blocking the LVGL thread (in ms)" @@ -255,5 +19,3 @@ menu "LVGL RIOT configuration" endmenu osource "$(PKGDIRBASE)/lvgl/Kconfig" - -endif diff --git a/pkg/lz4/Kconfig b/pkg/lz4/Kconfig deleted file mode 100644 index 9667ea32d04f..000000000000 --- a/pkg/lz4/Kconfig +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) 2021 Inria -# -# 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 PACKAGE_LZ4 - bool "LZ4 fast compression library" - depends on TEST_KCONFIG diff --git a/pkg/mbedtls/Kconfig b/pkg/mbedtls/Kconfig index 162c3a2c6e05..83d866d1e194 100644 --- a/pkg/mbedtls/Kconfig +++ b/pkg/mbedtls/Kconfig @@ -4,12 +4,8 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. -menuconfig KCONFIG_USEPKG_MBEDTLS - bool "Configure mbed TLS" - help - Configure mbed TLS using Kconfig. - -if KCONFIG_USEPKG_MBEDTLS +menu "mbed TLS" + depends on USEPKG_MBEDTLS config MBEDTLS_SELF_TEST bool "Enable the checkup functions (*_self_test)" @@ -63,4 +59,4 @@ config MBEDTLS_THREADING_ALT rsource "contrib/entropy/Kconfig" -endif # KCONFIG_USEPKG_MBEDTLS +endmenu # mbed TLS diff --git a/pkg/mbedtls/contrib/entropy/Kconfig b/pkg/mbedtls/contrib/entropy/Kconfig index ddd949c21781..41e49dee71f6 100644 --- a/pkg/mbedtls/contrib/entropy/Kconfig +++ b/pkg/mbedtls/contrib/entropy/Kconfig @@ -4,12 +4,8 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. -menuconfig KCONFIG_USEMODULE_MBEDTLS_ENTROPY - bool "Configure mbed TLS mbedtls entropy" - help - Configure mbed TLS mbedtls entropy using Kconfig. - -if KCONFIG_USEMODULE_MBEDTLS_ENTROPY +menu "mbed TLS mbedtls entropy" + depends on USEMODULE_MBEDTLS_ENTROPY config MBEDTLS_ENTROPY_HARDWARE_ALT bool "Let mbed TLS use your own implementation of a hardware entropy collector" @@ -40,4 +36,4 @@ config MBEDTLS_ENTROPY_FORCE_SHA256 can be much faster than SHA-512. Use this option if you have performance concerns. -endif # KCONFIG_USEMODULE_MBEDTLS_ENTROPY +endmenu # mbed TLS mbedtls entropy diff --git a/pkg/mcufont/Kconfig b/pkg/mcufont/Kconfig deleted file mode 100644 index 36317d9c2ae7..000000000000 --- a/pkg/mcufont/Kconfig +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) 2023 Koen Zandberg -# -# 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 PACKAGE_MCUFONT - bool "MCUFont" - depends on TEST_KCONFIG diff --git a/pkg/micro-ecc/Kconfig b/pkg/micro-ecc/Kconfig deleted file mode 100644 index a880e9f3a289..000000000000 --- a/pkg/micro-ecc/Kconfig +++ /dev/null @@ -1,19 +0,0 @@ -# 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 PACKAGE_MICRO-ECC - bool "Micro-ECC package" - depends on TEST_KCONFIG - depends on MODULE_RANDOM - depends on !HAS_ARCH_16BIT - help - Micro-ECC is based on the Micro-ECC - https://github.com/kmackay/micro-ecc and adds `hwrng_read` as - the default RNG function if it is available on the target - platform. - -rsource "psa_uecc/Kconfig" diff --git a/pkg/micro-ecc/psa_uecc/Kconfig b/pkg/micro-ecc/psa_uecc/Kconfig deleted file mode 100644 index 60c9d0d090a0..000000000000 --- a/pkg/micro-ecc/psa_uecc/Kconfig +++ /dev/null @@ -1,19 +0,0 @@ -# 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_PSA_UECC_P192 - bool - depends on MODULE_PSA_CRYPTO - select MODULE_PSA_UECC - -config MODULE_PSA_UECC_P256 - bool - depends on MODULE_PSA_CRYPTO - select MODULE_PSA_UECC - -config MODULE_PSA_UECC - bool diff --git a/pkg/microcoap/Kconfig b/pkg/microcoap/Kconfig deleted file mode 100644 index 6a3f100f49ee..000000000000 --- a/pkg/microcoap/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# 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 PACKAGE_MICRO_COAP - bool "Micro CoAP package" - depends on TEST_KCONFIG - help - A tiny CoAP server for microcontrollers diff --git a/pkg/micropython/Kconfig b/pkg/micropython/Kconfig deleted file mode 100644 index 8ae73279b18e..000000000000 --- a/pkg/micropython/Kconfig +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2023 Inria -# -# 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 PACKAGE_MICROPYTHON - bool "MicroPython port package" - depends on TEST_KCONFIG - - select MODULE_XTIMER - select MODULE_ZTIMER_USEC - select MODULE_STDIN diff --git a/pkg/minmea/Kconfig b/pkg/minmea/Kconfig deleted file mode 100644 index 69aa658e5034..000000000000 --- a/pkg/minmea/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# 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 PACKAGE_MINMEA - bool "Minmea GPS Parser package" - depends on TEST_KCONFIG diff --git a/pkg/mjson/Kconfig b/pkg/mjson/Kconfig deleted file mode 100644 index 8efce0a8bf64..000000000000 --- a/pkg/mjson/Kconfig +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) 2023 Koen Zandberg -# -# 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 PACKAGE_MJSON - bool "mjson" - depends on TEST_KCONFIG diff --git a/pkg/monocypher/Kconfig b/pkg/monocypher/Kconfig deleted file mode 100644 index ea4992eaa4a2..000000000000 --- a/pkg/monocypher/Kconfig +++ /dev/null @@ -1,22 +0,0 @@ -# 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 PACKAGE_MONOCYPHER - bool "Monocypher high performance cryptographic library package" - depends on TEST_KCONFIG - depends on HAS_ARCH_32BIT || HAS_ARCH_64BIT - select MODULE_MONOCYPHER_OPTIONAL - help - Provides functions for authenticated encryption, hashing, - password key derivation, key exchange, and public key - signatures. - -config MODULE_MONOCYPHER_OPTIONAL - bool - depends on TEST_KCONFIG - help - SHA-512 & ED25519 diff --git a/pkg/mynewt-core/Kconfig b/pkg/mynewt-core/Kconfig deleted file mode 100644 index 53e822bca23e..000000000000 --- a/pkg/mynewt-core/Kconfig +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright (c) 2021 INRIA -# -# 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 PACKAGE_MYNEWT-CORE - bool "Apache MyNewt mynewt-core Package" - depends on TEST_KCONFIG - select MODULE_MYNEWT-CORE - select MODULE_SEMA - select MODULE_ZTIMER - select MODULE_ZTIMER_MSEC - select MODULE_EVENT - select MODULE_EVENT_CALLBACK - depends on HAS_PERIPH_GPIO - select MODULE_PERIPH_GPIO - depends on !HAS_ARCH_ESP - - -if PACKAGE_MYNEWT-CORE - -config MODULE_MYNEWT-CORE - bool - -config MODULE_AUTO_INIT_MYNEWT-CORE - bool "Auto-initialize the mynewt-core package" - default y - depends on MODULE_AUTO_INIT - -config MODULE_MYNEWT-CORE_OS - bool "mynewt-core kernel module" - -config MODULE_MYNEWT-CORE_UTIL - bool "mynewt-core utilities modules" - -config MODULE_MYNEWT-CORE_NRF5X_HAL - bool "mynewt-core nrf52 and nrf51 timer hal" - select PACKAGE_NRFX - -endif # PACKAGE_MYNEWT-CORE diff --git a/pkg/nanocbor/Kconfig b/pkg/nanocbor/Kconfig deleted file mode 100644 index 043785e9e7ea..000000000000 --- a/pkg/nanocbor/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# 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 PACKAGE_NANOCBOR - bool "NANOCBOR encoder and decoder library package" - depends on TEST_KCONFIG diff --git a/pkg/nanopb/Kconfig b/pkg/nanopb/Kconfig deleted file mode 100644 index c1c8d6667a4c..000000000000 --- a/pkg/nanopb/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# 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 PACKAGE_NANOPB - bool "NANOPB Protocol Buffer library package" - depends on TEST_KCONFIG diff --git a/pkg/nanors/Kconfig b/pkg/nanors/Kconfig deleted file mode 100644 index f773c212f6a7..000000000000 --- a/pkg/nanors/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright (c) 2022 -# -# 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 PACKAGE_NANORS - bool "Reed-Solomon code implementation package" - depends on TEST_KCONFIG diff --git a/pkg/nmsis_sdk/Kconfig b/pkg/nmsis_sdk/Kconfig deleted file mode 100644 index e1271fa8cb2b..000000000000 --- a/pkg/nmsis_sdk/Kconfig +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright (c) 2023 Gunar Schorcht -# -# 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 PACKAGE_NMSIS_SDK - bool "NMSIS SDK for Nuclei-based MCUs" - depends on HAS_ARCH_NUCLEI - help - Vendor SDK from Nuclei System Technology for Nuclei-based MCUs - -config HAS_ARCH_NUCLEI - bool - help - Indicates that the MCU is Nuclei-based diff --git a/pkg/nrfx/Kconfig b/pkg/nrfx/Kconfig deleted file mode 100644 index 0e43ee4acf16..000000000000 --- a/pkg/nrfx/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright (c) 2022 Freie Universität Berlin -# -# 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 PACKAGE_NRFX - bool "Nordic nrfx HAL" - depends on TEST_KCONFIG diff --git a/pkg/opendsme/Kconfig b/pkg/opendsme/Kconfig index afbc1f892acd..1ca73e718dca 100644 --- a/pkg/opendsme/Kconfig +++ b/pkg/opendsme/Kconfig @@ -5,12 +5,8 @@ # directory for more details. # -menuconfig KCONFIG_USEPKG_OPENDSME - bool "Configure openDSME" - help - Configure openDSME using Kconfig. - -if KCONFIG_USEPKG_OPENDSME +menu "openDSME" + depends on USEPKG_OPENDSME config OPENDSME_MAX_NEIGHBOURS int "Maximum number of DSME neighbours" @@ -43,4 +39,4 @@ config OPENDSME_CFP_QUEUE_SIZE take longer as a result of slot schedules. Therefore, the GTS queue should have more capacity than the CAP queue (OPENDSME_CAP_QUEUE_SIZE). -endif # KCONFIG_USEPKG_OPENDSME +endmenu # openDSME diff --git a/pkg/opendsme/include/opendsme/opendsme.h b/pkg/opendsme/include/opendsme/opendsme.h index cbcbbc6d6db2..e3d2324a5d7c 100644 --- a/pkg/opendsme/include/opendsme/opendsme.h +++ b/pkg/opendsme/include/opendsme/opendsme.h @@ -40,14 +40,14 @@ * of a series of superframes that repeat indefinitely. A superframe consists * of a Beacon Slot, a Contention Access Period and Contention Free Period. * - * BS CAP CFP BS - * +------------------------------------------------------+---- - * | | |--|--|--|--|--|--| | ... - * | | |--|--|--|--|--|--| | - * | | |--|--|--|--|--|--| | ... - * | | |--|--|--|--|--|--| | - * +---+--------------------------------+--+--+--+--+--+--+---+ - * <------------------- Superframe -----------------------> + * BS CAP CFP BS + * +------------------------------------------------------+---- + * | | |--|--|--|--|--|--| | ... + * | | |--|--|--|--|--|--| | + * | | |--|--|--|--|--|--| | ... + * | | |--|--|--|--|--|--| | + * +---+--------------------------------+--+--+--+--+--+--+---+ + * <------------------- Superframe -----------------------> * * Each period of the superframe serves a dedicated purpose: * - Beacon Slot: Used for beacon transmission. PAN Coordinators and Coordinators diff --git a/pkg/openthread/Kconfig b/pkg/openthread/Kconfig deleted file mode 100644 index 1e9227f03390..000000000000 --- a/pkg/openthread/Kconfig +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright (c) 2023 Inria -# -# 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 PACKAGE_OPENTHREAD - bool "Openthread network stack" - depends on TEST_KCONFIG - - depends on HAS_CPP - select MODULE_CPP - select MODULE_EVENT - select MODULE_NETDEV - select MODULE_OPENTHREAD_CONTRIB - select MODULE_OPENTHREAD_CONTRIB_NETDEV - select MODULE_L2UTIL - select MODULE_ZTIMER - select MODULE_ZTIMER_MSEC - -if PACKAGE_OPENTHREAD - -config MODULE_OPENTHREAD-FTD - bool "Openthread Full Thread Device" - -config MODULE_OPENTHREAD-MTD - bool "Openthread Minimal Thread Device" - -config MODULE_OPENTHREAD-CLI-FTD - bool "Openthread Full Thread Device CLI" - -config MODULE_OPENTHREAD-CLI-MTD - bool "Openthread Minimal Thread Device CLI" - -config MODULE_OPENTHREAD_CONTRIB - bool - -config MODULE_OPENTHREAD_CONTRIB_NETDEV - bool - -endif # PACKAGE_OPENTHREAD diff --git a/pkg/qcbor/Kconfig b/pkg/qcbor/Kconfig deleted file mode 100644 index 6ed49ee5cdf1..000000000000 --- a/pkg/qcbor/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# 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 PACKAGE_QCBOR - bool "QCBOR CBOR encoder/decoder" - depends on TEST_KCONFIG - depends on HAS_ARCH_32BIT || HAS_ARCH_64BIT diff --git a/pkg/qdsa/Kconfig b/pkg/qdsa/Kconfig deleted file mode 100644 index 8b470f7ed8e4..000000000000 --- a/pkg/qdsa/Kconfig +++ /dev/null @@ -1,36 +0,0 @@ -# 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 PACKAGE_QDSA - bool "qDSA Digital Signatures package" - depends on TEST_KCONFIG - depends on !HAS_ARCH_16BIT - help - Small and Secure Digital Signatures with Curve-based - Diffie-Hellman Key Pairs. - -if PACKAGE_QDSA - -config MODULE_QDSA_ASM - bool - default y if HAS_ARCH_AVR8 || CPU_CORE_CORTEX_M23 - default y if CPU_CORE_CORTEX_M0 || CPU_CORE_CORTEX_M0PLUS - depends on TEST_KCONFIG - -config MODULE_QDSA_IMPL_ARM - bool - default y if CPU_CORE_CORTEX_M23 || CPU_CORE_CORTEX_M0 || CPU_CORE_CORTEX_M0PLUS - -config MODULE_QDSA_IMPL_AVR - bool - default y if HAS_ARCH_AVR8 - -config MODULE_QDSA_IMPL_CREF - bool - default y if !MODULE_QDSA_IMPL_ARM && !MODULE_QDSA_IMPL_AVR - -endif # PACKAGE_QDSA diff --git a/pkg/qr-code-generator/Kconfig b/pkg/qr-code-generator/Kconfig deleted file mode 100644 index d0b3f13503d4..000000000000 --- a/pkg/qr-code-generator/Kconfig +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) 2021 Inria -# -# 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 PACKAGE_QR-CODE-GENERATOR - bool "QR Code generator" - depends on TEST_KCONFIG diff --git a/pkg/relic/Kconfig b/pkg/relic/Kconfig deleted file mode 100644 index f770e76a6f84..000000000000 --- a/pkg/relic/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# 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 PACKAGE_RELIC - bool "Relic cryptographic toolkit package" - depends on TEST_KCONFIG - depends on MODULE_RANDOM - depends on MODULE_PRNG_XORSHIFT diff --git a/pkg/ruy/Kconfig b/pkg/ruy/Kconfig deleted file mode 100644 index 47d9564d2a65..000000000000 --- a/pkg/ruy/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright (c) 2022 Inria -# -# 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 PACKAGE_RUY - bool "The ruy matrix multiplication library" - depends on TEST_KCONFIG - depends on HAS_CPP - depends on HAS_LIBSTDCPP - - select MODULE_CPP11-COMPAT diff --git a/pkg/semtech-loramac/Kconfig b/pkg/semtech-loramac/Kconfig index a26fbd556d8e..40a42d14ef8f 100644 --- a/pkg/semtech-loramac/Kconfig +++ b/pkg/semtech-loramac/Kconfig @@ -6,4 +6,3 @@ # config USEPKG_SEMTECH_LORAMAC bool - select HAVE_LORAWAN diff --git a/pkg/talking_leds/Kconfig b/pkg/talking_leds/Kconfig deleted file mode 100644 index 690ea8bbce3c..000000000000 --- a/pkg/talking_leds/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# 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 PACKAGE_TALKING_LEDS - bool "Talking LEDs package" - depends on TEST_KCONFIG - depends on MODULE_ARDUINO diff --git a/pkg/tflite-micro/Kconfig b/pkg/tflite-micro/Kconfig deleted file mode 100644 index aa87a5ad20c8..000000000000 --- a/pkg/tflite-micro/Kconfig +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright (c) 2022 Inria -# -# 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 PACKAGE_TFLITE-MICRO - bool "TFlite Micro package" - depends on TEST_KCONFIG - depends on HAS_CPP - depends on HAS_LIBSTDCPP - depends on !HAS_ARCH_RISCV - - select MODULE_LIBSTDCPP - select MODULE_CPP11-COMPAT - - select PACKAGE_FLATBUFFERS - select PACKAGE_GEMMLOWP - select PACKAGE_RUY - - select MODULE_TFLITE-C - select MODULE_TFLITE-CORE-API - select MODULE_TFLITE-KERNELS - select MODULE_TFLITE-KERNELS-INTERNAL - select MODULE_TFLITE-KERNELS-INTERNAL-REFERENCE - select MODULE_TFLITE-MICRO - select MODULE_TFLITE-MICRO-KERNELS - select MODULE_TFLITE-MICRO-MEMORY-PLANNER - select MODULE_TFLITE-SCHEMA - - -config MODULE_TFLITE-C - bool - -config MODULE_TFLITE-CORE-API - bool - -config MODULE_TFLITE-KERNELS - bool - -config MODULE_TFLITE-KERNELS-INTERNAL - bool - -config MODULE_TFLITE-KERNELS-INTERNAL-REFERENCE - bool - -config MODULE_TFLITE-MICRO - bool - -config MODULE_TFLITE-MICRO-KERNELS - bool - -config MODULE_TFLITE-MICRO-MEMORY-PLANNER - bool - -config MODULE_TFLITE-SCHEMA - bool diff --git a/pkg/tiny-asn1/Kconfig b/pkg/tiny-asn1/Kconfig deleted file mode 100644 index 702fdb4ff399..000000000000 --- a/pkg/tiny-asn1/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# 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 PACKAGE_TINY-ASN1 - bool "ASN.1 decoding/encoding package" - depends on TEST_KCONFIG diff --git a/pkg/tinycbor/Kconfig b/pkg/tinycbor/Kconfig deleted file mode 100644 index 5b2778b30000..000000000000 --- a/pkg/tinycbor/Kconfig +++ /dev/null @@ -1,19 +0,0 @@ -# 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 PACKAGE_TINYCBOR - bool "Tiny CBOR encode/decoder package" - depends on TEST_KCONFIG - depends on HAS_ARCH_32BIT || HAS_ARCH_64BIT - help - TinyCBOR is a CBOR encoder and decoder with a very small - footprint, optimized for very fast operation. - -config MODULE_TINYCBOR_FLOAT - bool "Float support for Tiny CBOR" - depends on TEST_KCONFIG - depends on PACKAGE_TINYCBOR diff --git a/pkg/tinycrypt/Kconfig b/pkg/tinycrypt/Kconfig deleted file mode 100644 index e0e7a90c12e3..000000000000 --- a/pkg/tinycrypt/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# 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 PACKAGE_TINYCRYPT - bool "TinyCrypt crypto library package" - depends on TEST_KCONFIG - depends on HAS_ARCH_32BIT || HAS_ARCH_64BIT diff --git a/pkg/tinydtls/Kconfig b/pkg/tinydtls/Kconfig index daf62b0fb186..70a506d0bde9 100644 --- a/pkg/tinydtls/Kconfig +++ b/pkg/tinydtls/Kconfig @@ -4,13 +4,8 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEPKG_TINYDTLS - bool "Configure tinydtls" +menu "tinydtls" depends on USEPKG_TINYDTLS - help - Configure tinydtls package via Kconfig. - -if KCONFIG_USEPKG_TINYDTLS # TODO change to multiple choice after DTLS application support enabling more than one types of cypher suites choice @@ -38,7 +33,7 @@ config DTLS_CONTEXT_MAX config DTLS_PEER_MAX int "Max number of peers" - default 2 if KCONFIG_USEMODULE_GCOAP_DTLS + default 2 if USEMODULE_GCOAP_DTLS default 1 help The maximum number of DTLS peers. @@ -49,4 +44,4 @@ config DTLS_HANDSHAKE_MAX help The maximum number of concurrent DTLS handshakes. -endif # KCONFIG_USEPKG_TINYDTLS +endmenu # tinydtls diff --git a/pkg/tinydtls/contrib/sock_dtls.c b/pkg/tinydtls/contrib/sock_dtls.c index d8ae48f925c0..f305c974394c 100644 --- a/pkg/tinydtls/contrib/sock_dtls.c +++ b/pkg/tinydtls/contrib/sock_dtls.c @@ -60,7 +60,8 @@ static int _read(struct dtls_context_t *ctx, session_t *session, uint8_t *buf, size_t len); static int _event(struct dtls_context_t *ctx, session_t *session, dtls_alert_level_t level, unsigned short code); - +static void _get_user_parameters(struct dtls_context_t *ctx, + session_t *session, dtls_user_parameters_t *user_parameters); static void _session_to_ep(const session_t *session, sock_udp_ep_t *ep); static void _ep_to_session(const sock_udp_ep_t *ep, session_t *session); static uint32_t _update_timeout(uint32_t start, uint32_t timeout); @@ -69,6 +70,7 @@ static dtls_handler_t _dtls_handler = { .event = _event, .write = _write, .read = _read, + .get_user_parameters = _get_user_parameters, #ifdef CONFIG_DTLS_PSK .get_psk_info = _get_psk_info, #endif /* CONFIG_DTLS_PSK */ @@ -176,6 +178,15 @@ static int _event(struct dtls_context_t *ctx, session_t *session, return 0; } +static void _get_user_parameters(struct dtls_context_t *ctx, + session_t *session, dtls_user_parameters_t *user_parameters) { + (void) ctx; + (void) session; + + user_parameters->force_extended_master_secret = CONFIG_DTLS_FORCE_EXTENDED_MASTER_SECRET; + user_parameters->force_renegotiation_info = CONFIG_DTLS_FORCE_RENEGOTIATION_INFO; +} + #ifdef CONFIG_DTLS_PSK static int _get_psk_info(struct dtls_context_t *ctx, const session_t *session, dtls_credentials_type_t type, diff --git a/pkg/tinyusb/Kconfig b/pkg/tinyusb/Kconfig index 1d35b34855eb..dfa2faf99c2e 100644 --- a/pkg/tinyusb/Kconfig +++ b/pkg/tinyusb/Kconfig @@ -5,179 +5,9 @@ # directory for more details. # -config HAS_TINYUSB_DEVICE - bool - help - Indicates that the hardware supports tinyUSB device stack - -config HAS_TINYUSB_HOST - bool - help - Indicates that the hardware supports tinyUSB host stack - -config REQUIRES_TINYUSB_DEVICE - bool - help - Indicates that the application requires tinyUSB stack - -config ERROR_TINYUSB_DEVICE - bool - default y if REQUIRES_TINYUSB_DEVICE && !MODULE_TINYUSB_DEVICE - help - The USB implmentation is required to be tinyUSB but cannot be set - -choice USB_IMPLEMENTATION - default PACKAGE_TINYUSB if REQUIRES_TINYUSB_DEVICE - -menuconfig PACKAGE_TINYUSB - bool "TinyUSB stack package" - depends on TEST_KCONFIG - depends on HAS_ARCH_32BIT || HAS_ARCH_64BIT - depends on HAS_TINYUSB_DEVICE || HAS_TINYUSB_HOST - select MODULE_FMT - select MODULE_LUID - select MODULE_PERIPH_USBDEV_CLK - select MODULE_SEMA - select MODULE_TINYUSB_COMMON - select MODULE_TINYUSB_CONTRIB - select MODULE_TINYUSB_HW - select MODULE_TINYUSB_PORTABLE_ESPRESSIF if CPU_FAM_ESP32S2 || CPU_FAM_ESP32S3 - select MODULE_TINYUSB_PORTABLE_SYNOPSYS_DWC2 if CPU_FAM_GD32V - # Whole STM32 families F2, F4, F7 and U5 use the Synopsys DWC2 USB OTG core - select MODULE_TINYUSB_PORTABLE_SYNOPSYS_DWC2 if HAS_CPU_STM32F2 - select MODULE_TINYUSB_PORTABLE_SYNOPSYS_DWC2 if HAS_CPU_STM32F4 - select MODULE_TINYUSB_PORTABLE_SYNOPSYS_DWC2 if HAS_CPU_STM32F7 - select MODULE_TINYUSB_PORTABLE_SYNOPSYS_DWC2 if HAS_CPU_STM32U5 - # STM32F105xx and STM32F107xx lines also use the Synopsys DWC2 USB OTG core - select MODULE_TINYUSB_PORTABLE_SYNOPSYS_DWC2 if CPU_LINE_STM32F105XC - select MODULE_TINYUSB_PORTABLE_SYNOPSYS_DWC2 if CPU_LINE_STM32F107XC - # Several lines of STM32L4 family also use the Synopsys DWC2 USB OTG core - select MODULE_TINYUSB_PORTABLE_SYNOPSYS_DWC2 if CPU_LINE_STM32L475XX - select MODULE_TINYUSB_PORTABLE_SYNOPSYS_DWC2 if CPU_LINE_STM32L476XX - select MODULE_TINYUSB_PORTABLE_SYNOPSYS_DWC2 if CPU_LINE_STM32L485XX - select MODULE_TINYUSB_PORTABLE_SYNOPSYS_DWC2 if CPU_LINE_STM32L486XX - select MODULE_TINYUSB_PORTABLE_SYNOPSYS_DWC2 if CPU_LINE_STM32L496XX - select MODULE_TINYUSB_PORTABLE_SYNOPSYS_DWC2 if CPU_LINE_STM32L4A6XX - select MODULE_TINYUSB_PORTABLE_SYNOPSYS_DWC2 if CPU_LINE_STM32L4P5XX - select MODULE_TINYUSB_PORTABLE_SYNOPSYS_DWC2 if CPU_LINE_STM32L4Q5XX - select MODULE_TINYUSB_PORTABLE_SYNOPSYS_DWC2 if CPU_LINE_STM32L4R5XX - select MODULE_TINYUSB_PORTABLE_SYNOPSYS_DWC2 if CPU_LINE_STM32L4R7XX - select MODULE_TINYUSB_PORTABLE_SYNOPSYS_DWC2 if CPU_LINE_STM32L4R9XX - select MODULE_TINYUSB_PORTABLE_SYNOPSYS_DWC2 if CPU_LINE_STM32L4S5XX - select MODULE_TINYUSB_PORTABLE_SYNOPSYS_DWC2 if CPU_LINE_STM32L4S7XX - select MODULE_TINYUSB_PORTABLE_SYNOPSYS_DWC2 if CPU_LINE_STM32L4S9XX - # Whole STM32 families F0, F3, G0, G4, L0, L1, L5 and WB use the Synopsys DWC2 USB OTG core - select MODULE_TINYUSB_PORTABLE_STM32_FSDEV if HAS_CPU_STM32F0 - select MODULE_TINYUSB_PORTABLE_STM32_FSDEV if HAS_CPU_STM32F3 - select MODULE_TINYUSB_PORTABLE_STM32_FSDEV if HAS_CPU_STM32G0 - select MODULE_TINYUSB_PORTABLE_STM32_FSDEV if HAS_CPU_STM32G4 - select MODULE_TINYUSB_PORTABLE_STM32_FSDEV if HAS_CPU_STM32L0 - select MODULE_TINYUSB_PORTABLE_STM32_FSDEV if HAS_CPU_STM32L1 - select MODULE_TINYUSB_PORTABLE_STM32_FSDEV if HAS_CPU_STM32L5 - select MODULE_TINYUSB_PORTABLE_STM32_FSDEV if HAS_CPU_STM32WB - # STM32F102xx and STM32F103xx lines also use USB FS Device core - select MODULE_TINYUSB_PORTABLE_STM32_FSDEV if CPU_LINE_STM32F102X6 - select MODULE_TINYUSB_PORTABLE_STM32_FSDEV if CPU_LINE_STM32F102XB - select MODULE_TINYUSB_PORTABLE_STM32_FSDEV if CPU_LINE_STM32F103X6 - select MODULE_TINYUSB_PORTABLE_STM32_FSDEV if CPU_LINE_STM32F103XB - select MODULE_TINYUSB_PORTABLE_STM32_FSDEV if CPU_LINE_STM32F103XE - select MODULE_TINYUSB_PORTABLE_STM32_FSDEV if CPU_LINE_STM32F103XG - # Following STM32L4 lines also use USB FS Device core - select MODULE_TINYUSB_PORTABLE_STM32_FSDEV if CPU_LINE_STM32L412XX - select MODULE_TINYUSB_PORTABLE_STM32_FSDEV if CPU_LINE_STM32L422XX - select MODULE_TINYUSB_PORTABLE_STM32_FSDEV if CPU_LINE_STM32L432XX - select MODULE_TINYUSB_PORTABLE_STM32_FSDEV if CPU_LINE_STM32L433XX - select MODULE_TINYUSB_PORTABLE_STM32_FSDEV if CPU_LINE_STM32L442XX - select MODULE_TINYUSB_PORTABLE_STM32_FSDEV if CPU_LINE_STM32L443XX - select MODULE_TINYUSB_PORTABLE_STM32_FSDEV if CPU_LINE_STM32L452XX - select MODULE_TINYUSB_PORTABLE_STM32_FSDEV if CPU_LINE_STM32L462XX - # - select MODULE_TINYUSB_PORTABLE_MICROCHIP if CPU_FAM_SAMD21 || CPU_FAM_SAMR21 \ - || CPU_COMMON_SAMD5X || CPU_FAM_SAML21 || CPU_FAM_SAMR34 \ - || CPU_FAM_SAMR30 - select MODULE_TINYUSB_PORTABLE_NRF5X if CPU_FAM_NRF52 - select MODULE_ZTIMER_MSEC - select PACKAGE_NRFX if CPU_FAM_NRF52 - help - tinyUSB is an open-source cross-platform USB Host/Device stack for - embedded systems. - -if PACKAGE_TINYUSB - -config MODULE_AUTO_INIT_TINYUSB - bool "Auto-initialize the tinyUSB package" - depends on MODULE_AUTO_INIT - default y - help - The tinyUSB stack including the used peripherals are initialized - automatically at startup. Additionally, the auto-initialization - starts the tinyUSB thread. - -config MODULE_TINYUSB_COMMON - bool - help - Common tinyUSB files - -config MODULE_TINYUSB_CONTRIB - bool - help - RIOT support for tinyUSB - -config MODULE_TINYUSB_HW - bool - help - tinyUSB hardware driver implementation - -config MODULE_TINYUSB_DEVICE - bool "Device Stack" - depends on HAS_TINYUSB_DEVICE - select MODULE_TINYUSB_CLASS_CDC if REQUIRES_USB_STDIO - default y - help - Select to enable tinyUSB device stack - -config MODULE_TINYUSB_HOST - bool "Host Stack" - depends on HAS_TINYUSB_HOST - help - Select to enable tinyUSB host stack - -config MODULE_TINYUSB_LIB_NETWORKING - bool - -config MODULE_TINYUSB_PORTABLE_ESPRESSIF - bool - help - tinyUSB driver for ESP32Sx is used - -config MODULE_TINYUSB_PORTABLE_SYNOPSYS_DWC2 - bool - help - tinyUSB Sysnopsys DCW2 driver is used - -config MODULE_TINYUSB_PORTABLE_STM32_FSDEV - bool - help - tinyUSB STM32 FS device driver is used - -config MODULE_TINYUSB_PORTABLE_MICROCHIP - bool - help - tinyUSB Microchip SAM0 driver is used - -config MODULE_TINYUSB_PORTABLE_NRF5X - bool - help - tinyUSB nRFx device driver is used +if USEPKG_TINYUSB menu "Device Classes" - config MODULE_TINYUSB_CLASS_AUDIO - bool "Audio Class 2.0 (UAC2)" - depends on MODULE_TINYUSB_DEVICE - - config MODULE_TINYUSB_CLASS_BTH - bool "Bluetooth Host Controller Interface (BTH HCI)" - depends on MODULE_TINYUSB_DEVICE rsource "Kconfig.cdc" rsource "dfu/Kconfig.dfu" @@ -185,26 +15,9 @@ menu "Device Classes" rsource "Kconfig.hid" rsource "Kconfig.msc" - config MODULE_TINYUSB_CLASS_MIDI - bool "Musical Instrument Digital Interface (MIDI)" - depends on MODULE_TINYUSB_DEVICE - - rsource "Kconfig.net" - - config MODULE_TINYUSB_CLASS_USBTMC - bool "Test and Measurement Class (USBTMC)" - depends on MODULE_TINYUSB_DEVICE - - config MODULE_TINYUSB_CLASS_VENDOR - bool "Vendor-specific class support with generic IN & OUT endpoints" - - config MODULE_TINYUSB_CLASS_VIDEO - bool "Video class 1.5 (UVC)" - depends on MODULE_TINYUSB_DEVICE - endmenu -if MODULE_TINYUSB_DEVICE +if USEMODULE_TINYUSB_DEVICE config TUSBD_EP0_SIZE int "Device control endpoint (EP0) size [byte]" @@ -220,7 +33,7 @@ config TUSBD_HS_EP_SIZE config TUSBD_USE_CUSTOM_DESC bool "Custom device descriptors" - depends on MODULE_TINYUSB_DEVICE + depends on USEMODULE_TINYUSB_DEVICE help Enable this option to define custom descriptors for the selected device classes. Otherwise, generic descriptors will be generated @@ -231,32 +44,5 @@ config TUSBD_USE_CUSTOM_DESC interface. In all other cases, custom descriptors must be implemented and handled. -config MODULE_TINYUSB_DFU - bool "tinyUSB DFU driver module" - select MODULE_TINYUSB_CLASS_DFU if MODULE_RIOTBOOT_TINYUSB_DFU - select MODULE_TINYUSB_CLASS_DFU_RUNTIME if !MODULE_RIOTBOOT_TINYUSB_DFU - help - Enable tinyUSB Device Firmware Upgrade driver implementation used - either in DFU mode by the bootloader or in DFU runtime mode by the - application. It is enabled by default, if the tinyUSB DFU variant - of the riotboot bootloader is used. - -config MODULE_RIOTBOOT_TINYUSB_DFU - # TODO move to sys/riotboot/Kconfig once it is modelled - bool "tinyUSB DFU variant of riotboot bootloader" - depends on HAS_NO_IDLE_THREAD - depends on HAS_PERIPH_PM - select MODULE_RIOTBOOT_FLASHWRITE - select MODULE_TINYUSB_DFU - select MODULE_TINYUSB_CLASS_DFU - select MODULE_ZTIMER_SEC - help - Enable this option to use the tinyUSB DFU variant of the riotboot - bootloader. - -endif # MODULE_TINYUSB_DEVICE -endif # PACKAGE_TINYUSB - -endchoice - -rsource "cdc_acm_stdio/Kconfig" +endif # USEMODULE_TINYUSB_DEVICE +endif # USEPKG_TINYUSB diff --git a/pkg/tinyusb/Kconfig.cdc b/pkg/tinyusb/Kconfig.cdc index 8472aa34ddd1..818c61b3d928 100644 --- a/pkg/tinyusb/Kconfig.cdc +++ b/pkg/tinyusb/Kconfig.cdc @@ -5,10 +5,7 @@ # directory for more details. # -menuconfig MODULE_TINYUSB_CLASS_CDC - bool "Communication Device Class (CDC)" - -if MODULE_TINYUSB_CLASS_CDC && MODULE_TINYUSB_DEVICE +if USEMODULE_TINYUSB_CLASS_CDC && USEMODULE_TINYUSB_DEVICE config TUSBD_CDC_NUMOF int "Number of CDC interfaces" diff --git a/pkg/tinyusb/Kconfig.hid b/pkg/tinyusb/Kconfig.hid index 31587cdd4580..73946f7c1b07 100644 --- a/pkg/tinyusb/Kconfig.hid +++ b/pkg/tinyusb/Kconfig.hid @@ -5,10 +5,7 @@ # directory for more details. # -menuconfig MODULE_TINYUSB_CLASS_HID - bool "Human Interface Device (HID)" - -if MODULE_TINYUSB_CLASS_HID && MODULE_TINYUSB_DEVICE +if USEMODULE_TINYUSB_CLASS_HID && USEMODULE_TINYUSB_DEVICE config TUSBD_HID_NUMOF int "Number of HID interfaces" diff --git a/pkg/tinyusb/Kconfig.msc b/pkg/tinyusb/Kconfig.msc index d5f852210392..dfa99bbca1d7 100644 --- a/pkg/tinyusb/Kconfig.msc +++ b/pkg/tinyusb/Kconfig.msc @@ -5,10 +5,7 @@ # directory for more details. # -menuconfig MODULE_TINYUSB_CLASS_MSC - bool "Mass Storage Class (MSC)" - -if MODULE_TINYUSB_CLASS_MSC && MODULE_TINYUSB_DEVICE +if USEMODULE_TINYUSB_CLASS_MSC && USEMODULE_TINYUSB_DEVICE config TUSBD_MSC_NUMOF int diff --git a/pkg/tinyusb/Kconfig.net b/pkg/tinyusb/Kconfig.net index a349c056c7b8..ec74e0ee3c0c 100644 --- a/pkg/tinyusb/Kconfig.net +++ b/pkg/tinyusb/Kconfig.net @@ -5,22 +5,7 @@ # directory for more details. # -menuconfig MODULE_TINYUSB_CLASS_NET - bool "Network Device Class" - depends on MODULE_TINYUSB_DEVICE - -if MODULE_TINYUSB_CLASS_NET - -config MODULE_TINYUSB_CLASS_NET_CDC_ECM - bool "CDC ECM network device" - default y - -config MODULE_TINYUSB_CLASS_NET_CDC_NCM - bool "CDC NCM network device" - -config MODULE_TINYUSB_CLASS_NET_RNDIS - bool "RNDIS network device" - select MODULE_TINYUSB_LIB_NETWORKING +if USEMODULE_TINYUSB_CLASS_NET config TUSBD_NET_NUMOF int @@ -57,4 +42,4 @@ config TUSBD_NET_MAC_STRING default "0123456789ab" endif # TUSBD_NET_NUMOF > 0 -endif # MODULE_TINYUSB_CLASS_NET +endif # USEMODULE_TINYUSB_CLASS_NET diff --git a/pkg/tinyusb/cdc_acm_stdio/Kconfig b/pkg/tinyusb/cdc_acm_stdio/Kconfig deleted file mode 100644 index 91addc0a1974..000000000000 --- a/pkg/tinyusb/cdc_acm_stdio/Kconfig +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright (c) 2022 Gunar Schorcht -# -# 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. -# - -# extend STDIO options - -choice STDIO_IMPLEMENTATION - -config MODULE_STDIO_TINYUSB_CDC_ACM - bool "CDC ACM (tinyUSB)" - depends on MODULE_TINYUSB_DEVICE - depends on MODULE_TINYUSB_CLASS_CDC - select MODULE_STDIO_AVAILABLE - select USE_STDOUT_BUFFERED - -endchoice diff --git a/pkg/tinyusb/dfu/Kconfig.dfu b/pkg/tinyusb/dfu/Kconfig.dfu index 11733d4eadf9..da1ed31187ef 100644 --- a/pkg/tinyusb/dfu/Kconfig.dfu +++ b/pkg/tinyusb/dfu/Kconfig.dfu @@ -5,11 +5,7 @@ # directory for more details. # -menuconfig MODULE_TINYUSB_CLASS_DFU - bool "Device Firmware Update (DFU)" - depends on MODULE_TINYUSB_DEVICE && MODULE_TINYUSB_DFU && MODULE_RIOTBOOT_TINYUSB_DFU - -if MODULE_TINYUSB_CLASS_DFU +if USEMODULE_TINYUSB_CLASS_DFU config TUSBD_DFU_NUMOF int @@ -47,4 +43,4 @@ config TUSBD_DFU_RESET_DELAY DFU reset delay is the time before the device is restarted after a firmware download. -endif # MODULE_TINYUSB_CLASS_DFU +endif # USEMODULE_TINYUSB_CLASS_DFU diff --git a/pkg/tinyusb/dfu/Kconfig.dfu_rt b/pkg/tinyusb/dfu/Kconfig.dfu_rt index 9a86680741a8..a59c3721a262 100644 --- a/pkg/tinyusb/dfu/Kconfig.dfu_rt +++ b/pkg/tinyusb/dfu/Kconfig.dfu_rt @@ -5,11 +5,7 @@ # directory for more details. # -menuconfig MODULE_TINYUSB_CLASS_DFU_RUNTIME - bool "Device Firmware Update Runtime (DFU Runtime)" - depends on MODULE_TINYUSB_DEVICE && MODULE_TINYUSB_DFU && !MODULE_RIOTBOOT_TINYUSB_DFU - -if MODULE_TINYUSB_CLASS_DFU_RUNTIME +if USEMODULE_TINYUSB_CLASS_DFU_RUNTIME config TUSBD_DFU_RT_NUMOF int @@ -27,4 +23,4 @@ config TUSBD_DFU_RT_DETACH_TIMEOUT int "DFU detach timeout [ms]" default 1000 -endif # MODULE_TINYUSB_CLASS_DFU_RUNTIME +endif # USEMODULE_TINYUSB_CLASS_DFU_RUNTIME diff --git a/pkg/tinyusb/netdev/Kconfig b/pkg/tinyusb/netdev/Kconfig deleted file mode 100644 index 77a73c1694f4..000000000000 --- a/pkg/tinyusb/netdev/Kconfig +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright (c) 2022 Gunar Schorcht -# -# 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_TINYUSB_NETDEV - bool "TinyUSB Network Device Driver" - depends on HAS_TINYUSB_DEVICE - depends on TEST_KCONFIG - select MODULE_LUID - select MODULE_NETDEV_ETH - select MODULE_TINYUSB_CLASS_NET - select KCONFIG_USB - select REQUIRES_TINYUSB_DEVICE diff --git a/pkg/tinyvcdiff/Kconfig b/pkg/tinyvcdiff/Kconfig index af1617a348f7..c055c7401552 100644 --- a/pkg/tinyvcdiff/Kconfig +++ b/pkg/tinyvcdiff/Kconfig @@ -4,11 +4,7 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. -menuconfig PACKAGE_TINYVCDIFF - bool "Tiny VCDIFF" - depends on TEST_KCONFIG - -if PACKAGE_TINYVCDIFF +if USEPKG_TINYVCDIFF config TINYVCDIFF_BUFFER_SIZE int "Buffer size" @@ -19,14 +15,7 @@ config TINYVCDIFF_BUFFER_SIZE the underlying MTD or VFS backend. But a size of just 1 byte would work, too. -menuconfig MODULE_TINYVCDIFF_MTD - bool "MTD Backend" - depends on MODULE_MTD - default y - help - Use a MTD device as VCDIFF target or source. - -if MODULE_TINYVCDIFF_MTD +if USEMODULE_TINYVCDIFF_MTD config TINYVCDIFF_MTD_WRITE_SIZE int "Write size" @@ -34,13 +23,6 @@ config TINYVCDIFF_MTD_WRITE_SIZE help Alignment and minimum size for MTD write access. -endif # MODULE_TINYVCDIFF_MTD - -config MODULE_TINYVCDIFF_VFS - bool "VFS Backend" - depends on MODULE_VFS - default y - help - Use a VFS file as VCDIFF target or source. +endif # USEMODULE_TINYVCDIFF_MTD -endif # PACKAGE_TINYVCDIFF +endif # USEPKG_TINYVCDIFF diff --git a/pkg/tlsf/Kconfig b/pkg/tlsf/Kconfig deleted file mode 100644 index 0a944fcc2d21..000000000000 --- a/pkg/tlsf/Kconfig +++ /dev/null @@ -1,31 +0,0 @@ -# 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 PACKAGE_TLSF - bool "TLFS malloc/realloc/free/etc package" - depends on TEST_KCONFIG - depends on HAS_ARCH_32BIT || HAS_ARCH_64BIT - help - TLSF provides an implementation of malloc/realloc/free/etc. - -if PACKAGE_TLSF - -config MODULE_TLSF_MALLOC - bool "TLSF malloc" - depends on MODULE_NEWLIB || HAS_ARCH_NATIVE - select MODULE_TLSF_MALLOC_NEWLIB if MODULE_NEWLIB - select MODULE_TLSF_MALLOC_NATIVE if HAS_ARCH_NATIVE - -config MODULE_TLSF_MALLOC_NEWLIB - bool - depends on TEST_KCONFIG - -config MODULE_TLSF_MALLOC_NATIVE - bool - depends on TEST_KCONFIG - -endif # PACKAGE_TLSF diff --git a/pkg/tweetnacl/Kconfig b/pkg/tweetnacl/Kconfig deleted file mode 100644 index 2020f66b574e..000000000000 --- a/pkg/tweetnacl/Kconfig +++ /dev/null @@ -1,16 +0,0 @@ -# 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 PACKAGE_TWEETNACL - bool "TweetNaCl cryptographic library package" - depends on TEST_KCONFIG - depends on MODULE_RANDOM - depends on !HAS_ARCH_MSP430 - help - TweetNaCl is the world's first auditable high-security - cryptographic library. TweetNaCl fits into just 100 tweets while - supporting all 25 of the C NaCl functions used by applications. diff --git a/pkg/u8g2/Kconfig b/pkg/u8g2/Kconfig deleted file mode 100644 index 9f5db5ee775d..000000000000 --- a/pkg/u8g2/Kconfig +++ /dev/null @@ -1,23 +0,0 @@ -# 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 PACKAGE_U8G2 - bool "U8g2 monochrome graphics library for LCDs" - depends on TEST_KCONFIG - depends on HAS_PERIPH_GPIO - select MODULE_PERIPH_GPIO - select ZTIMER_USEC - select MODULE_U8G2_RIOT - select MODULE_U8G2_CSRC - -config MODULE_U8G2_RIOT - bool - depends on TEST_KCONFIG - -config MODULE_U8G2_CSRC - bool - depends on TEST_KCONFIG diff --git a/pkg/ubasic/Kconfig b/pkg/ubasic/Kconfig deleted file mode 100644 index aa2f31b92b1f..000000000000 --- a/pkg/ubasic/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# 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 PACKAGE_UBASIC - bool "UBasic Basic interpreter package" - depends on TEST_KCONFIG - depends on !HAS_ARCH_AVR8 - depends on !HAS_ARCH_MSP430 - depends on !HAS_ARCH_RISCV diff --git a/pkg/ucglib/Kconfig b/pkg/ucglib/Kconfig deleted file mode 100644 index 9d181b1d124a..000000000000 --- a/pkg/ucglib/Kconfig +++ /dev/null @@ -1,23 +0,0 @@ -# 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 PACKAGE_UCGLIB - bool "UcgLib color graphics library for OLED and LCD displays" - depends on TEST_KCONFIG - depends on HAS_PERIPH_GPIO - select MODULE_PERIPH_GPIO - select ZTIMER_USEC - select MODULE_UCGLIB_RIOT - select MODULE_UCGLIB_CSRC - -config MODULE_UCGLIB_RIOT - bool - depends on TEST_KCONFIG - -config MODULE_UCGLIB_CSRC - bool - depends on TEST_KCONFIG diff --git a/pkg/umorse/Kconfig b/pkg/umorse/Kconfig deleted file mode 100644 index 5044d3e72345..000000000000 --- a/pkg/umorse/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# 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 PACKAGE_UMORSE - bool "uMorse - Morse code encoder" - depends on MODULE_POSIX_SLEEP diff --git a/pkg/utensor/Kconfig b/pkg/utensor/Kconfig deleted file mode 100644 index 0adfa24dbdb8..000000000000 --- a/pkg/utensor/Kconfig +++ /dev/null @@ -1,24 +0,0 @@ -# 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 PACKAGE_UTENSOR - bool "uTensor AI inference based on TensorFlow" - depends on TEST_KCONFIG - depends on HAS_LIBSTDCPP - depends on HAS_CPP - select MODULE_UTENSOR-OPS - select MODULE_UTENSOR-UTIL - select MODULE_CPP - select MODULE_LIBSTDCPP - -config MODULE_UTENSOR-OPS - bool - depends on TEST_KCONFIG - -config MODULE_UTENSOR-UTIL - bool - depends on TEST_KCONFIG diff --git a/pkg/uwb-core/Kconfig b/pkg/uwb-core/Kconfig deleted file mode 100644 index ab9a2656e463..000000000000 --- a/pkg/uwb-core/Kconfig +++ /dev/null @@ -1,83 +0,0 @@ -# Copyright (c) 2021 INRIA -# -# 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 PACKAGE_UWB-CORE - bool "Decawave uwb-core package" - select MODULE_UWB-CORE_DPL - select MODULE_UWB-CORE_CONTRIB - select MODULE_FMT - depends on HAS_PERIPH_GPIO - select MODULE_PERIPH_GPIO - depends on HAS_PERIPH_GPIO_IRQ - select MODULE_PERIPH_GPIO_IRQ - depends on HAS_PERIPH_SPI - select MODULE_PERIPH_SPI - depends on !HAS_ARCH_NATIVE - depends on !HAS_ARCH_AVR8 - -if PACKAGE_UWB-CORE - -config MODULE_AUTO_INIT_UWB-CORE - bool "Auto-initialize the usb-core package" - default y - depends on MODULE_AUTO_INIT - -config MODULE_UWB-CORE_CONTRIB - bool - -config MODULE_UWB-CORE_DPL - bool - select PACKAGE_MYNEWT-CORE - select MODULE_MYNEWT-CORE_OS - select MODULE_MYNEWT-CORE_NRF5X_HAL if HAS_CPU_NRF52 || HAS_CPU_NRF51 - -config MODULE_UWB-CORE_TWR_SS - bool "uwb-core two-way-ranging single sided" - select MODULE_UWB-CORE_RNG - -config MODULE_UWB-CORE_TWR_SS_ACK - bool "uwb-core two-way-ranging single sided using hardware generated ack as response" - select MODULE_UWB-CORE_RNG - -config MODULE_UWB-CORE_TWR_SS_EXT - bool "uwb-core two-way-ranging single sided with extended frames" - select MODULE_UWB-CORE_RNG - -config MODULE_UWB-CORE_TWR_DS - bool "uwb-core two-way-ranging double sided" - select MODULE_UWB-CORE_RNG - -config MODULE_UWB-CORE_TWR_DS_EXT - bool "uwb-core two-way-ranging double sided with extended frames" - select MODULE_UWB-CORE_RNG - -config MODULE_UWB-CORE_RNG - bool "uwb-core ranging module" - select MODULE_UWB-CORE_RNG_MATH - select MODULE_UWB-CORE_DSP - -config MODULE_UWB-CORE_UWB_JSON - bool "uwb-core JSON utilities" - select MODULE_FMT - -config MODULE_UWB-CORE_DSP - bool "uwb-core DSP module" - -config MODULE_UWB-CORE_RNG_MATH - bool "uwb-core ranging math utilities" - -config MODULE_UWB-CORE_EVENT_THREAD - bool "Use event-thread loop as uwb-core's event loop" - select MODULE_EVENT_THREAD - -config MODULE_UWB-CORE_CONFIG - bool - -config MODULE_UWB-CORE_TRX_INFO - bool "Enable uwb-core diagnostic data: rssi, tof, los" - -endif # PACKAGE_UWB-CORE diff --git a/pkg/uwb-dw1000/Kconfig b/pkg/uwb-dw1000/Kconfig deleted file mode 100644 index fa3cc8f2af03..000000000000 --- a/pkg/uwb-dw1000/Kconfig +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright (c) 2021 INRIA -# -# 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 PACKAGE_UWB-DW1000 - bool "Decawave dw1000 driver package" - select MODULE_UWB-DW1000_HAL - depends on HAS_PERIPH_GPIO - select MODULE_PERIPH_GPIO - depends on HAS_PERIPH_GPIO_IRQ - select MODULE_PERIPH_GPIO_IRQ - depends on HAS_PERIPH_SPI - select MODULE_PERIPH_SPI - depends on HAS_ARCH_32BIT || HAS_ARCH_64BIT - -if PACKAGE_UWB-DW1000 - -config MODULE_AUTO_INIT_UWB-DW1000 - bool "Auto-initialize the uwb-dw1000 package" - default y - depends on MODULE_AUTO_INIT - -config MODULE_UWB-DW1000_HAL - bool - -endif # PACKAGE_UWB-DW1000 diff --git a/pkg/uzlib/Kconfig b/pkg/uzlib/Kconfig deleted file mode 100644 index 5919182e37bf..000000000000 --- a/pkg/uzlib/Kconfig +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) 2021 Inria -# -# 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 PACKAGE_UZLIB - bool "uzlib - Deflate/Zlib-compatible LZ77 compression/decompression library" - depends on TEST_KCONFIG diff --git a/pkg/wakaama/Kconfig b/pkg/wakaama/Kconfig index 1e03df74537b..4f7b0ca91755 100644 --- a/pkg/wakaama/Kconfig +++ b/pkg/wakaama/Kconfig @@ -4,13 +4,8 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEPKG_WAKAAMA - bool "Configure Wakaama LwM2M" +menu "Wakaama LwM2M" depends on USEPKG_WAKAAMA - help - Configure Wakaama package via Kconfig. - -if KCONFIG_USEPKG_WAKAAMA menu "Remote server" @@ -128,4 +123,4 @@ config LWM2M_TLSF_BUFFER rsource "contrib/objects/Kconfig" -endif # KCONFIG_USEPKG_WAKAAMA +endmenu # Wakaama LwM2M diff --git a/pkg/yxml/Kconfig b/pkg/yxml/Kconfig deleted file mode 100644 index c809c9ab0744..000000000000 --- a/pkg/yxml/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# 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 PACKAGE_YXML - bool "yXML parser library" - depends on TEST_KCONFIG - depends on !HAS_ARCH_16BIT - depends on !HAS_ARCH_8BIT diff --git a/sys/Kconfig b/sys/Kconfig index ec7297e1b3a5..4573def28c14 100644 --- a/sys/Kconfig +++ b/sys/Kconfig @@ -6,150 +6,17 @@ # menu "System" -rsource "analog_util/Kconfig" -rsource "app_metadata/Kconfig" -rsource "arduino/Kconfig" rsource "auto_init/Kconfig" -rsource "base64/Kconfig" -rsource "benchmark/Kconfig" -rsource "bhp/Kconfig" -rsource "bitfield/Kconfig" -rsource "bloom/Kconfig" -rsource "bus/Kconfig" -rsource "cb_mux/Kconfig" -rsource "checksum/Kconfig" rsource "chunked_ringbuffer/Kconfig" -rsource "clif/Kconfig" -rsource "color/Kconfig" -rsource "crypto/Kconfig" rsource "congure/Kconfig" -rsource "cpp11-compat/Kconfig" -rsource "cpp_new_delete/Kconfig" -rsource "cxx_ctor_guards/Kconfig" rsource "debug_irq_disable/Kconfig" -rsource "div/Kconfig" -rsource "embunit/Kconfig" rsource "entropy_source/Kconfig" -rsource "eepreg/Kconfig" -rsource "event/Kconfig" rsource "fido2/Kconfig" -rsource "fmt/Kconfig" -rsource "frac/Kconfig" -rsource "fs/Kconfig" -rsource "hashes/Kconfig" -rsource "iolist/Kconfig" -rsource "isrpipe/Kconfig" -rsource "libc/Kconfig" - -menu "Libc" - -choice LIBC_IMPLEMENTATION - bool "Libc implementation" - depends on TEST_KCONFIG - -config MODULE_NEWLIB - bool "NewLib" - depends on HAS_NEWLIB - -config MODULE_PICOLIBC - bool "Picolibc" - depends on HAS_PICOLIBC -endchoice - -config MODULE_LIBC_GETTIMEOFDAY - bool "Support for gettimeofday()" - select ZTIMER64_USEC - -rsource "Kconfig.newlib" -rsource "Kconfig.picolibc" - -endmenu # Libc - - -rsource "Kconfig.stdio" -choice LOG - bool "Logging system override" - optional - #modules log_color and log_printfnoformat describe their options -endchoice - -rsource "coding/Kconfig" -rsource "ecc/Kconfig" -rsource "evtimer/Kconfig" -rsource "log_color/Kconfig" -rsource "log_printfnoformat/Kconfig" -rsource "luid/Kconfig" -rsource "malloc_monitor/Kconfig" -rsource "malloc_thread_safe/Kconfig" -rsource "matstat/Kconfig" -rsource "memarray/Kconfig" -rsource "mineplex/Kconfig" rsource "net/Kconfig" -rsource "od/Kconfig" -rsource "oneway-malloc/Kconfig" -rsource "phydat/Kconfig" -rsource "pipe/Kconfig" -rsource "pm_layered/Kconfig" -rsource "posix/Kconfig" -rsource "preprocessor/Kconfig" rsource "progress_bar/Kconfig" -rsource "ps/Kconfig" rsource "psa_crypto/Kconfig" -rsource "random/Kconfig" -rsource "rtc_utils/Kconfig" -rsource "rust_riotmodules/Kconfig" -rsource "saul_reg/Kconfig" -rsource "schedstatistics/Kconfig" -rsource "sema/Kconfig" -rsource "sema_inv/Kconfig" -rsource "senml/Kconfig" -rsource "seq/Kconfig" rsource "shell/Kconfig" rsource "shell_lock/Kconfig" -rsource "ssp/Kconfig" -rsource "test_utils/Kconfig" -rsource "timex/Kconfig" -rsource "tiny_strerror/Kconfig" -rsource "trace/Kconfig" -rsource "trickle/Kconfig" -rsource "tsrb/Kconfig" -rsource "uri_parser/Kconfig" rsource "usb/Kconfig" -rsource "usb_board_reset/Kconfig" -rsource "ut_process/Kconfig" -rsource "uuid/Kconfig" -rsource "vfs/Kconfig" -rsource "xtimer/Kconfig" -rsource "ztimer/Kconfig" -rsource "ztimer64/Kconfig" - -config MODULE_CPP - bool "Use CPP compiler" - depends on TEST_KCONFIG - depends on HAS_CPP - -config MODULE_LIBSTDCPP - bool "Use the CPP standard library" - depends on TEST_KCONFIG - depends on HAS_LIBSTDCPP - depends on HAS_CPP - select MODULE_CPP - -config MODULE_ATOMIC_UTILS - bool "Atomic access utility functions" - depends on TEST_KCONFIG - -config MODULE_SYS - bool - default y - depends on TEST_KCONFIG - help - System module, it serves to pull in all the rest of system modules. - -config MODULE_LOG - bool - help - Modules that override the default log implementation should select this. - For more information see core/include/log.h. endmenu # System diff --git a/sys/Kconfig.newlib b/sys/Kconfig.newlib deleted file mode 100644 index 2f846e80e382..000000000000 --- a/sys/Kconfig.newlib +++ /dev/null @@ -1,37 +0,0 @@ -# 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. -# - -if MODULE_NEWLIB - -config MODULE_NEWLIB_NANO - bool "NewLib Nano" - -config MODULE_NEWLIB_GNU_SOURCE - bool "NewLib GNU source" - -config MODULE_NEWLIB_SYSCALLS_DEFAULT - bool - default y - depends on !HAVE_CUSTOM_NEWLIB_SYSCALLS - select MODULE_DIV - help - Default implementation of newlib system calls. - -config MODULE_LIBC_GETTIMEOFDAY - bool - select MODULE_NEWLIB_SYSCALLS_DEFAULT if MODULE_NEWLIB - select MODULE_XTIMER - select MODULE_ZTIMER64_XTIMER_COMPAT if MODULE_ZTIMER_XTIMER_COMPAT - help - Support for gettimeofday() - -endif # MODULE_NEWLIB - -config HAVE_CUSTOM_NEWLIB_SYSCALLS - bool - help - Indicates that a custom newlib syscalls implementation is present. diff --git a/sys/Kconfig.picolibc b/sys/Kconfig.picolibc deleted file mode 100644 index ccb18a952800..000000000000 --- a/sys/Kconfig.picolibc +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright (c) 2021 HAW Hamburg -# -# This file is subject to the terms and conditions of the GNU Lesser -# General Public License v2.1. See the file LICENSE in the top level -# directory for more details. -# - -if MODULE_PICOLIBC - -config MODULE_PICOLIBC_STDOUT_BUFFERED - bool "Buffered standard output" - default USE_STDOUT_BUFFERED - help - Say y to use buffering in the standard output, usually good for modules that benefit from - sending out buffers in larger chunks. - -config MODULE_PICOLIBC_SYSCALLS_DEFAULT - bool - default y - depends on !HAVE_CUSTOM_PICOLIBC_SYSCALLS - help - Default implementation of picolibc system calls. - -endif # MODULE_PICOLIBC - -config HAVE_CUSTOM_PICOLIB_SYSCALLS - bool - help - Indicates that a custom picolibc syscalls implementation is present. diff --git a/sys/Kconfig.stdio b/sys/Kconfig.stdio deleted file mode 100644 index 15e5f2859720..000000000000 --- a/sys/Kconfig.stdio +++ /dev/null @@ -1,111 +0,0 @@ -# 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. -# - -menu "Standard Input/Output (STDIO)" - depends on TEST_KCONFIG - -config FORCE_USB_STDIO - bool "Force a USB based STDIO" - depends on HAS_PERIPH_USBDEV || HAS_TINYUSB_DEVICE - select KCONFIG_USB - select REQUIRES_USB_STDIO - help - To prevent a circular dependency, can force the USB modules to that - STDIO will select some sort of USB based STDIO backend. - -choice STDIO_IMPLEMENTATION - bool "STDIO implementation" - default MODULE_STDIO_NATIVE if CPU_ARCH_NATIVE - default MODULE_STDIO_CDC_ACM if MODULE_USBUS && REQUIRES_USB_STDIO - default MODULE_STDIO_TINYUSB_CDC_ACM if MODULE_TINYUSB_DEVICE && REQUIRES_USB_STDIO - default MODULE_STDIO_UART - -config MODULE_STDIO_RTT - bool "JLink RTT" - select MODULE_ZTIMER - select MODULE_ZTIMER_MSEC - -config MODULE_STDIO_SEMIHOSTING - bool "ARM and RISC-V Semihosting" - depends on HAS_ARCH_ARM || HAS_ARCH_RISCV - select MODULE_ZTIMER - select MODULE_ZTIMER_MSEC - select USE_STDOUT_BUFFERED - -config MODULE_SLIPDEV_STDIO - bool "SLIP network device" - depends on MODULE_SLIPDEV - select USE_STDOUT_BUFFERED - select MODULE_ISRPIPE - -config MODULE_STDIO_NULL - bool "Null" - help - Empty implementation. - -config MODULE_STDIO_UART - bool "UART" - depends on HAS_PERIPH_UART - select MODULE_PERIPH_UART - -config MODULE_STDIO_UART_ONLCR - bool "Emit DOS line endings for STDIO output via UART" - depends on MODULE_STDIO_UART - -config MODULE_STDIO_NATIVE - bool "Native" - depends on CPU_ARCH_NATIVE - -config MODULE_STDIO_ETHOS - bool "ETHOS" - depends on MODULE_ETHOS - select MODULE_STDIN - select MODULE_ETHOS_STDIO - select USE_STDOUT_BUFFERED - -endchoice - -config MODULE_STDIN - bool "Standard Input" - -config MODULE_STDIO_UART_RX - bool - depends on MODULE_STDIO_UART - select MODULE_ISRPIPE - select MODULE_STDIO_AVAILABLE - default y if MODULE_STDIN - help - Reception when using UART-based STDIO needs to be enabled. - -config MODULE_STDIO_USB_SERIAL_JTAG_RX - bool - depends on MODULE_STDIO_USB_SERIAL_JTAG - select MODULE_ISRPIPE - select MODULE_STDIO_AVAILABLE - default y if MODULE_STDIN - help - Reception when using ESP32 USB Serial/JTAG STDIO needs to be enabled. - -config MODULE_STDIO_AVAILABLE - bool - help - Indicates that the implementation supports function stdio_available - -config MODULE_PRINTF_FLOAT - bool "Float support in printf" - -config USE_STDOUT_BUFFERED - bool - help - Select this to prefer buffered standard output if provided by the implementation. - -config REQUIRES_USB_STDIO - bool - help - Indicates that the STDIO requires some USB implementation to be enabled. - -endmenu # Standard Input/Output (STDIO) diff --git a/sys/analog_util/Kconfig b/sys/analog_util/Kconfig deleted file mode 100644 index de3eb656c129..000000000000 --- a/sys/analog_util/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# 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_ANALOG_UTIL - bool "Analog utility function interfaces" - depends on TEST_KCONFIG diff --git a/sys/app_metadata/Kconfig b/sys/app_metadata/Kconfig deleted file mode 100644 index bffcdba3e740..000000000000 --- a/sys/app_metadata/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# 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_APP_METADATA - bool "Application metadata printer" - depends on TEST_KCONFIG diff --git a/sys/arduino/Kconfig b/sys/arduino/Kconfig deleted file mode 100644 index a6277517c301..000000000000 --- a/sys/arduino/Kconfig +++ /dev/null @@ -1,42 +0,0 @@ -# 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_ARDUINO_SKETCHES - bool - -menuconfig MODULE_ARDUINO - bool "Arduino support" - imply MODULE_PERIPH_ADC - imply MODULE_PERIPH_I2C - imply MODULE_PERIPH_SPI - depends on HAS_ARDUINO_PINS - depends on HAS_PERIPH_GPIO - depends on HAS_PERIPH_UART - depends on HAS_CPP - depends on TEST_KCONFIG - select MODULE_PERIPH_GPIO - select MODULE_PERIPH_UART - select MODULE_CPP - select MODULE_ARDUINO_SKETCHES - select MODULE_FMT - select MODULE_ZTIMER - select MODULE_ZTIMER_MSEC - select ZTIMER_USEC - -config MODULE_ARDUINO_PWM - bool "PWM support for Arduino" - depends on HAS_PERIPH_PWM - depends on HAS_ARDUINO_PWM - depends on MODULE_ARDUINO - depends on TEST_KCONFIG - select MODULE_PERIPH_PWM - -config MODULE_ARDUINO_SERIAL_STDIO - bool "Use STDIO as Serial" - depends on MODULE_ARDUINO - depends on TEST_KCONFIG - default y if MODULE_STDIO_CDC_ACM diff --git a/sys/auto_init/Kconfig b/sys/auto_init/Kconfig index b0a7cfb0c984..4b2c75ac845f 100644 --- a/sys/auto_init/Kconfig +++ b/sys/auto_init/Kconfig @@ -5,24 +5,10 @@ # directory for more details. # -menuconfig MODULE_AUTO_INIT - bool "Auto-initialization system" - default y - depends on TEST_KCONFIG - select MODULE_PREPROCESSOR_SUCCESSOR - help - 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. - -if MODULE_AUTO_INIT +if USEMODULE_AUTO_INIT config AUTO_INIT_ENABLE_DEBUG bool "Print a debug message before a module is initialized" default n -rsource "screen/Kconfig" -rsource "security/Kconfig" -rsource "multimedia/Kconfig" - -endif # MODULE_AUTO_INIT +endif # USEMODULE_AUTO_INIT diff --git a/sys/auto_init/multimedia/Kconfig b/sys/auto_init/multimedia/Kconfig deleted file mode 100644 index 18d9721c3ee7..000000000000 --- a/sys/auto_init/multimedia/Kconfig +++ /dev/null @@ -1,17 +0,0 @@ -# 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/auto_init/screen/Kconfig b/sys/auto_init/screen/Kconfig deleted file mode 100644 index e822c226204f..000000000000 --- a/sys/auto_init/screen/Kconfig +++ /dev/null @@ -1,9 +0,0 @@ -# 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_AUTO_INIT_SCREEN - bool "Auto-initialize screens" diff --git a/sys/auto_init/security/Kconfig b/sys/auto_init/security/Kconfig deleted file mode 100644 index 7a595ecbfda0..000000000000 --- a/sys/auto_init/security/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright (c) 2022 Inria -# -# 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_SECURITY - bool "Security auto initialization module" - depends on TEST_KCONFIG diff --git a/sys/base64/Kconfig b/sys/base64/Kconfig deleted file mode 100644 index c723e3ea50d4..000000000000 --- a/sys/base64/Kconfig +++ /dev/null @@ -1,15 +0,0 @@ -# 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_BASE64 - bool "Base64 codec" - depends on TEST_KCONFIG - -config MODULE_BASE64URL - bool "Base64 URL codec" - depends on TEST_KCONFIG - select MODULE_BASE64 diff --git a/sys/benchmark/Kconfig b/sys/benchmark/Kconfig deleted file mode 100644 index 45bc2f8b38ed..000000000000 --- a/sys/benchmark/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# 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_BENCHMARK - bool "Simple benchmarks support" - select MODULE_ZTIMER - select ZTIMER_USEC - depends on TEST_KCONFIG diff --git a/sys/bhp/Kconfig b/sys/bhp/Kconfig deleted file mode 100644 index aa4403069cc6..000000000000 --- a/sys/bhp/Kconfig +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright (c) 2022 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. -# - -menu "Bottom Half Processor" - -config HAVE_BHP_IRQ_HANDLER - bool - select MODULE_BHP - help - "Indicates that a module exposes an IRQ Handler to be offloaded to a - Bottom Half Processor mechanism." - -config MODULE_BHP - bool - -config MODULE_BHP_EVENT - bool "Enable event based Bottom Half Processor implementation" - depends on MODULE_EVENT - depends on MODULE_BHP - -config MODULE_BHP_MSG - bool "Enable message based Bottom Half Processor implementation" - depends on MODULE_CORE_MSG - depends on MODULE_BHP - -endmenu diff --git a/sys/bitfield/Kconfig b/sys/bitfield/Kconfig deleted file mode 100644 index 8ad46ba07e0a..000000000000 --- a/sys/bitfield/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# 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_BITFIELD - bool "Bitfield helpers" - depends on TEST_KCONFIG diff --git a/sys/bloom/Kconfig b/sys/bloom/Kconfig deleted file mode 100644 index 0f6138a21d22..000000000000 --- a/sys/bloom/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# 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_BLOOM - bool "Bloom filter" - select MODULE_BITFIELD - depends on TEST_KCONFIG diff --git a/sys/bus/Kconfig b/sys/bus/Kconfig deleted file mode 100644 index fabd36ba596c..000000000000 --- a/sys/bus/Kconfig +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright (c) 2022 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_SYS_BUS - bool "System buses" - select MODULE_CORE_MSG_BUS - help - System buses subsystem. - -config MODULE_SYS_BUS_POWER - bool "Power bus" - depends on MODULE_SYS_BUS diff --git a/sys/cb_mux/Kconfig b/sys/cb_mux/Kconfig deleted file mode 100644 index 239c7c5fc6ef..000000000000 --- a/sys/cb_mux/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# 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_CB_MUX - bool "Callback Multiplexer" - depends on TEST_KCONFIG diff --git a/sys/checksum/Kconfig b/sys/checksum/Kconfig deleted file mode 100644 index 8350b7e77e0b..000000000000 --- a/sys/checksum/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# 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 diff --git a/sys/chunked_ringbuffer/Kconfig b/sys/chunked_ringbuffer/Kconfig index 4bf5541e1a40..f2c084cd4e70 100644 --- a/sys/chunked_ringbuffer/Kconfig +++ b/sys/chunked_ringbuffer/Kconfig @@ -5,13 +5,7 @@ # directory for more details. # -menuconfig MODULE_CHUNKED_RINGBUFFER - bool "Chunked ringbuffer" - depends on TEST_KCONFIG - help - A ringbuffer to store chunks of data. - config CHUNK_NUM_MAX int "Maximum number of chunks to store" - depends on MODULE_CHUNKED_RINGBUFFER + depends on USEMODULE_CHUNKED_RINGBUFFER default 4 diff --git a/sys/clif/Kconfig b/sys/clif/Kconfig deleted file mode 100644 index 6634c0952c59..000000000000 --- a/sys/clif/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright (c) 2023 Inria -# -# 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_CLIF - bool "CoRE Link format encoding and decoding library" - depends on TEST_KCONFIG diff --git a/sys/coding/Kconfig b/sys/coding/Kconfig deleted file mode 100644 index f2223eff2b6f..000000000000 --- a/sys/coding/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (c) 2023 Inria -# -# 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_CODING - bool "Error correction codes" - depends on TEST_KCONFIG - - select MODULE_BITFIELD diff --git a/sys/color/Kconfig b/sys/color/Kconfig deleted file mode 100644 index db7657d2e537..000000000000 --- a/sys/color/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# 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 diff --git a/sys/congure/Kconfig b/sys/congure/Kconfig index 459b4bd3785f..862347138b8b 100644 --- a/sys/congure/Kconfig +++ b/sys/congure/Kconfig @@ -4,31 +4,10 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. -if !TEST_KCONFIG menu "CongURE congestion control abstraction" depends on USEMODULE_CONGURE rsource "abe/Kconfig" -rsource "mock/Kconfig" -rsource "quic/Kconfig" -rsource "reno/Kconfig" rsource "test/Kconfig" endmenu # CongURE congestion control abstraction -endif # !TEST_KCONFIG - -if TEST_KCONFIG -menuconfig MODULE_CONGURE - bool "CongURE congestion control abstraction" - depends on TEST_KCONFIG - -if MODULE_CONGURE - -rsource "abe/Kconfig" -rsource "mock/Kconfig" -rsource "quic/Kconfig" -rsource "reno/Kconfig" -rsource "test/Kconfig" - -endif # MODULE_CONGURE -endif # TEST_KCONFIG diff --git a/sys/congure/abe/Kconfig b/sys/congure/abe/Kconfig index 40cd42bc3f3a..f63426dcfe4b 100644 --- a/sys/congure/abe/Kconfig +++ b/sys/congure/abe/Kconfig @@ -4,28 +4,6 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. -if !TEST_KCONFIG - -menuconfig KCONFIG_USEMODULE_CONGURE_ABE - bool "Configure TCP-ABE-like congestion control" - depends on USEMODULE_CONGURE_ABE - help - Configure TCP-ABE-like congestion control via Kconfig. - -if KCONFIG_USEMODULE_CONGURE_ABE +if USEMODULE_CONGURE_ABE rsource "Kconfig.config" -endif # KCONFIG_USEMODULE_CONGURE_ABE - -endif # !TEST_KCONFIG - -if TEST_KCONFIG -menuconfig MODULE_CONGURE_ABE - bool "CongURE implementation of TCP ABE" - depends on MODULE_CONGURE - select MODULE_CONGURE_RENO_METHODS - -if MODULE_CONGURE_ABE -rsource "Kconfig.config" -endif # MODULE_CONGURE_ABE - -endif # TEST_KCONFIG +endif # USEMODULE_CONGURE_ABE diff --git a/sys/congure/abe/Kconfig.config b/sys/congure/abe/Kconfig.config index bd93b52d0fcd..cea4918ac49a 100644 --- a/sys/congure/abe/Kconfig.config +++ b/sys/congure/abe/Kconfig.config @@ -1,16 +1,3 @@ -# Copyright (c) 2021 Freie Universität -# -# 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. -# - -# XXX This file only is required since there is no easy way to use these config -# options with both the final MODULE_CONGURE_ABE (used with TEST_KCONFIG=1) and -# KCONFIG_USEMODULE_CONGURE_ABE (used with TEST_KCONFIG=0) in a # nicely looking -# and easy to migrate way. After migration, the content of this file can be folded -# back into `sys/congure/abe/Kconfig` - config CONGURE_ABE_MULTIPLIER_NUMERATOR_DEFAULT int "Default numerator of the ABE multiplier" default 4 diff --git a/sys/congure/mock/Kconfig b/sys/congure/mock/Kconfig deleted file mode 100644 index 20355df2a829..000000000000 --- a/sys/congure/mock/Kconfig +++ /dev/null @@ -1,3 +0,0 @@ -config MODULE_CONGURE_MOCK - bool "CongURE mock implementation for testing" - depends on MODULE_CONGURE diff --git a/sys/congure/quic/Kconfig b/sys/congure/quic/Kconfig deleted file mode 100644 index 6fc3e009b2c9..000000000000 --- a/sys/congure/quic/Kconfig +++ /dev/null @@ -1,4 +0,0 @@ -config MODULE_CONGURE_QUIC - bool "CongURE implementation of QUIC's congestion control" - depends on MODULE_CONGURE - depends on MODULE_ZTIMER diff --git a/sys/congure/reno/Kconfig b/sys/congure/reno/Kconfig deleted file mode 100644 index deab1f1c8d7d..000000000000 --- a/sys/congure/reno/Kconfig +++ /dev/null @@ -1,14 +0,0 @@ -config MODULE_CONGURE_RENO - bool "CongURE implementation of TCP Reno" - depends on MODULE_CONGURE - select MODULE_CONGURE_RENO_METHODS - -config MODULE_CONGURE_RENO_METHODS - bool "Send driver methods for the CongURE implementation of TCP Reno" - depends on MODULE_SEQ - help - Many other congestion control mechanisms are just adaptations of TCP - Reno, so this makes the methods of @ref sys_congure_reno available to - other @ref sys_congure modules. Use module `congure_reno_methods` to - only compile in these modules, but not the driver for - `congure_reno_snd_t` or @ref congure_reno_snd_setup(). diff --git a/sys/congure/test/Kconfig b/sys/congure/test/Kconfig index f710d4f23dad..066a2eca1b61 100644 --- a/sys/congure/test/Kconfig +++ b/sys/congure/test/Kconfig @@ -4,27 +4,6 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. -if !TEST_KCONFIG - -menuconfig KCONFIG_USEMODULE_CONGURE_TEST - bool "Configure CongURE test framework" - depends on USEMODULE_CONGURE_TEST - help - Configure CongURE test framework via Kconfig. -if KCONFIG_USEMODULE_CONGURE_TEST -rsource "Kconfig.config" -endif # KCONFIG_USEMODULE_CONGURE_TEST - -endif # !TEST_KCONFIG -if TEST_KCONFIG - -menuconfig MODULE_CONGURE_TEST - bool "CongURE test framework" - depends on TEST_KCONFIG - select MODULE_FMT - -if MODULE_CONGURE_TEST +if USEMODULE_CONGURE_TEST rsource "Kconfig.config" -endif # MODULE_CONGURE_TEST - -endif # TEST_KCONFIG +endif # USEMODULE_CONGURE_TEST diff --git a/sys/congure/test/Kconfig.config b/sys/congure/test/Kconfig.config index d33ebccd2f89..3a884cdfae41 100644 --- a/sys/congure/test/Kconfig.config +++ b/sys/congure/test/Kconfig.config @@ -5,11 +5,6 @@ # directory for more details. # -# XXX This file only is required since there is no easy way to use these config -# options with both the final MODULE_SHELL and KCONFIG_USEMODULE_SHELL in a -# nicely looking and easy to migrate way. After migration, the content of this -# file can be folded back into `sys/shell/Kconfig` - config CONGURE_TEST_LOST_MSG_POOL_SIZE int "Pool size for the list elements for a lost message report" default 4 diff --git a/sys/cpp11-compat/Kconfig b/sys/cpp11-compat/Kconfig deleted file mode 100644 index 101521da52ff..000000000000 --- a/sys/cpp11-compat/Kconfig +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright (C) 2022 Inria -# -# 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_CPP11-COMPAT - bool "C++11 wrapper for RIOT" - depends on TEST_KCONFIG - depends on HAS_CPP - depends on HAS_LIBSTDCPP - - - select MODULE_CPP - select MODULE_LIBSTDCPP - select MODULE_CPP_NEW_DELETE - select ZTIMER64_USEC - select MODULE_TIMEX diff --git a/sys/cpp_new_delete/Kconfig b/sys/cpp_new_delete/Kconfig deleted file mode 100644 index 15d161326d47..000000000000 --- a/sys/cpp_new_delete/Kconfig +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright (C) 2021 Gunar Schorcht -# -# 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_CPP_NEW_DELETE - bool - depends on TEST_KCONFIG - depends on MODULE_CPP - help - On some platforms libstdc++ is not used or not available, like on - the AVR. Such platforms can use this module to implement the C++ - new and delete operators using malloc and free respectively. However, - to be thread-safe, a thread-safe implementation of malloc and free - must be present. diff --git a/sys/crypto/Kconfig b/sys/crypto/Kconfig deleted file mode 100644 index b22afcd729bc..000000000000 --- a/sys/crypto/Kconfig +++ /dev/null @@ -1,39 +0,0 @@ -# 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_CRYPTO - bool "Crypto" - depends on TEST_KCONFIG - -if MODULE_CRYPTO - -menu "Crypto AES options" - -config MODULE_CRYPTO_AES_128 - bool "AES-128" - default y - -config MODULE_CRYPTO_AES_192 - bool "AES-192" - -config MODULE_CRYPTO_AES_256 - bool "AES-256" - -config MODULE_CRYPTO_AES_PRECALCULATED - bool "Pre-calculate T tables" - -config MODULE_CRYPTO_AES_UNROLL - bool "Unroll loop in AES" - help - This unrolls a loop in AES, but it uses more flash. - -endmenu # Crypto AES options - -rsource "psa_riot_cipher/Kconfig" -rsource "modes/Kconfig" - -endif # Crypto diff --git a/sys/crypto/modes/Kconfig b/sys/crypto/modes/Kconfig deleted file mode 100644 index 354913d23619..000000000000 --- a/sys/crypto/modes/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# 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_CIPHER_MODES - bool "Modes for block ciphers" - depends on MODULE_CRYPTO - help - Include common code for block cipher modes, such as CBC, ECB or OCB. diff --git a/sys/crypto/psa_riot_cipher/Kconfig b/sys/crypto/psa_riot_cipher/Kconfig deleted file mode 100644 index a57a94f16038..000000000000 --- a/sys/crypto/psa_riot_cipher/Kconfig +++ /dev/null @@ -1,38 +0,0 @@ -# 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_PSA_RIOT_CIPHER_AES_128_ECB - bool - depends on MODULE_PSA_CRYPTO - select MODULE_CRYPTO_AES_128 - select MODULE_PSA_RIOT_CIPHER - -config MODULE_PSA_RIOT_CIPHER_AES_128_CBC - bool - depends on MODULE_PSA_CRYPTO - select MODULE_CRYPTO_AES_128 - select MODULE_PSA_RIOT_CIPHER - -config MODULE_PSA_RIOT_CIPHER_AES_192_CBC - bool - depends on MODULE_PSA_CRYPTO - select MODULE_CRYPTO_AES_192 - select MODULE_PSA_RIOT_CIPHER - -config MODULE_PSA_RIOT_CIPHER_AES_256_CBC - bool - depends on MODULE_PSA_CRYPTO - select MODULE_CRYPTO_AES_192 - select MODULE_PSA_RIOT_CIPHER - -config MODULE_PSA_RIOT_CIPHER - bool - select MODULE_PSA_RIOT_CIPHER_AES_COMMON - select MODULE_CIPHER_MODES - -config MODULE_PSA_RIOT_CIPHER_AES_COMMON - bool diff --git a/sys/cxx_ctor_guards/Kconfig b/sys/cxx_ctor_guards/Kconfig deleted file mode 100644 index 99b359858b7a..000000000000 --- a/sys/cxx_ctor_guards/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# 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_CXX_CTOR_GUARDS - bool "C++ constructor guards for static instances" - depends on TEST_KCONFIG - help - C++ constructor guards for thread-safe initialization of static instances. - Warning! this module is likely only compatible with g++. diff --git a/sys/debug_irq_disable/Kconfig b/sys/debug_irq_disable/Kconfig index 45984038fdda..26e04ed35ef7 100644 --- a/sys/debug_irq_disable/Kconfig +++ b/sys/debug_irq_disable/Kconfig @@ -5,17 +5,10 @@ # directory for more details. # -menuconfig MODULE_DEBUG_IRQ_DISABLE - bool "Measure IRQ disable durations" - depends on TEST_KCONFIG - depends on CPU_CORE_CORTEX_M - help - Print time spent with IRQs disabled - config DEBUG_IRQ_DISABLE_THRESHOLD int "Suppress Threshold" default 1 - depends on MODULE_DEBUG_IRQ_DISABLE + depends on USEMODULE_DEBUG_IRQ_DISABLE help Threshold (in CPU ticks) below which periods with IRQs disabled are not printed. Use this to prevent *a lot* of output when debugging. diff --git a/sys/div/Kconfig b/sys/div/Kconfig deleted file mode 100644 index 35f8e4c4ef31..000000000000 --- a/sys/div/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# 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_DIV - bool "Integer division" - depends on TEST_KCONFIG - help - Provides some integer division functions that can be used to prevent - linking in compiler-generated ones, which are often larger. diff --git a/sys/ecc/Kconfig b/sys/ecc/Kconfig deleted file mode 100644 index 3e257fa8630e..000000000000 --- a/sys/ecc/Kconfig +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright (c) 2023 Inria -# -# 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_ECC - bool "Error Correction Code (ECC) algorithms" - depends on TEST_KCONFIG - help - Provides Golay1412, Hamming256 and Repetition algorithms. - -if MODULE_ECC - -menu "ECC algorithms" - -config MODULE_ECC_GOLAY1412 - bool "Golay1412 Error Correction Code (ECC) algorithm" - help - Provides Golay1412 ECC algorithm. - -config MODULE_ECC_HAMMING256 - bool "Hamming256 Error Correction Code (ECC) algorithm" - help - Provides Hamming256 ECC algorithm. - -config MODULE_ECC_REPETITION - bool "Repetition Error Correction Code (ECC) algorithm" - help - Provides Repetition ECC algorithm. - -endmenu # ECC algorithms - -endif diff --git a/sys/eepreg/Kconfig b/sys/eepreg/Kconfig deleted file mode 100644 index d4fc9501f5b7..000000000000 --- a/sys/eepreg/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# 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_EEPREG - bool "EEPROM metadata registry" - depends on TEST_KCONFIG - depends on HAS_PERIPH_EEPROM - select MODULE_PERIPH_EEPROM diff --git a/sys/embunit/Kconfig b/sys/embunit/Kconfig deleted file mode 100644 index 4718a6c06fc1..000000000000 --- a/sys/embunit/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# 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" - depends on TEST_KCONFIG - help - RIOT Unittests based on the EmbUnit Framework. diff --git a/sys/entropy_source/Kconfig b/sys/entropy_source/Kconfig index 69e925cb2b07..05cf7875eb41 100644 --- a/sys/entropy_source/Kconfig +++ b/sys/entropy_source/Kconfig @@ -4,13 +4,8 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. -menuconfig KCONFIG_USEMODULE_ENTROPY_SOURCE - bool "Configure entropy sources" - depends on USEMODULE_ENTROPY_SOURCE_ADC_NOISE || USEMODULE_ENTROPY_SOURCE_ZERO_ENTROPY - help - Configure entropy sources using Kconfig. - -if KCONFIG_USEMODULE_ENTROPY_SOURCE +menu "Entropy sources" + depends on USEMODULE_ENTROPY_SOURCE config ENTROPY_SOURCE_TESTS_WIN int "Window size for Adaptive Proportion Test" @@ -34,4 +29,4 @@ config ENTROPY_SOURCE_NEUMANN_ABORT rsource "adc_noise/Kconfig" rsource "zero_entropy/Kconfig" -endif # KCONFIG_USEMODULE_ENTROPY_SOURCE +endmenu # Entropy sources diff --git a/sys/entropy_source/adc_noise/Kconfig b/sys/entropy_source/adc_noise/Kconfig index 11d7c3c58599..88c965908ed9 100644 --- a/sys/entropy_source/adc_noise/Kconfig +++ b/sys/entropy_source/adc_noise/Kconfig @@ -4,13 +4,8 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. -menuconfig KCONFIG_USEMODULE_ENTROPY_SOURCE_ADC_NOISE - bool "Configure ADC Noise entropy source module" +menu "ADC Noise entropy source module" depends on USEMODULE_ENTROPY_SOURCE_ADC_NOISE - help - Configure the ADC Noise entropy source using Kconfig. - -if KCONFIG_USEMODULE_ENTROPY_SOURCE_ADC_NOISE choice bool "ADC default sampling resolution" @@ -74,4 +69,4 @@ config ENTROPY_SOURCE_ADC_COND Conditioning increases runtime of the entropy generation process. Currently, a von Neumann extractor is involved which has an nondeterministic runtime. -endif # KCONFIG_USEMODULE_ENTROPY_SOURCE_ADC_NOISE +endmenu # ADC Noise entropy source module diff --git a/sys/entropy_source/zero_entropy/Kconfig b/sys/entropy_source/zero_entropy/Kconfig index 9bbdacfb5fd3..572a533322fa 100644 --- a/sys/entropy_source/zero_entropy/Kconfig +++ b/sys/entropy_source/zero_entropy/Kconfig @@ -4,13 +4,8 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. -menuconfig KCONFIG_USEMODULE_ENTROPY_SOURCE_ZERO_ENTROPY - bool "Configure zero entropy source module" +menu "zero entropy source module" depends on USEMODULE_ENTROPY_SOURCE_ZERO_ENTROPY - help - Configure the zero entropy source using Kconfig. - -if KCONFIG_USEMODULE_ENTROPY_SOURCE_ZERO_ENTROPY config ENTROPY_SOURCE_ZERO_HMIN int "Estimated entropy per sample (byte)" @@ -32,4 +27,4 @@ config ENTROPY_SOURCE_ZERO_COND Neumann extractor would never finish and wait for the stop criterion given by @ref CONFIG_ENTROPY_SOURCE_NEUMANN_ABORT. -endif # KCONFIG_USEMODULE_ENTROPY_SOURCE_ZERO_ENTROPY +endmenu # zero entropy source module diff --git a/sys/event/Kconfig b/sys/event/Kconfig deleted file mode 100644 index 876445ab6e88..000000000000 --- a/sys/event/Kconfig +++ /dev/null @@ -1,54 +0,0 @@ -# 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_PERIODIC - bool "Provides functionality to trigger periodic events" - -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_ZTIMER - bool "Support for triggering events after timeout, ztimer backend" - select MODULE_ZTIMER - -config MODULE_EVENT_TIMEOUT - bool "Legacy API, support for triggering events after timeout" - select MODULE_EVENT_TIMEOUT_ZTIMER - select ZTIMER_USEC - -endif # MODULE_EVENT diff --git a/sys/evtimer/Kconfig b/sys/evtimer/Kconfig deleted file mode 100644 index 8cbe1cea3b99..000000000000 --- a/sys/evtimer/Kconfig +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright (c) 2023 Inria -# -# 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_EVTIMER - bool "Event timer module" - depends on TEST_KCONFIG - select MODULE_ZTIMER - select MODULE_ZTIMER_MSEC - -config MODULE_EVTIMER_MBOX - bool "Use message box" - select MODULE_CORE_MBOX - select MODULE_EVTIMER - help - Use message box to implement event timer. diff --git a/sys/fido2/Kconfig b/sys/fido2/Kconfig index bd2edac28b31..3f01957ae599 100644 --- a/sys/fido2/Kconfig +++ b/sys/fido2/Kconfig @@ -4,17 +4,8 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. -menuconfig MODULE_FIDO2 - bool "FIDO2" - help - FIDO2 is an authentication standard that seeks to solve the password - problem by enabling passwordless authentication. FIDO2 consists of the - W3C Web Authentication specification (WebAuthn) and the Client to - Authenticator Protocol (CTAP). For more information visit - https://fidoalliance.org/fido2. - -if MODULE_FIDO2 +if USEMODULE_FIDO2 rsource "ctap/Kconfig" -endif # MODULE_FIDO2 +endif # USEMODULE_FIDO2 diff --git a/sys/fido2/ctap/Kconfig b/sys/fido2/ctap/Kconfig index 942b832aca97..008513e62f13 100644 --- a/sys/fido2/ctap/Kconfig +++ b/sys/fido2/ctap/Kconfig @@ -4,39 +4,8 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. -menuconfig MODULE_FIDO2_CTAP - bool "FIDO2 CTAP" - depends on HAS_PERIPH_FLASHPAGE - depends on HAS_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE - depends on HAS_PERIPH_GPIO - depends on HAS_PERIPH_GPIO_IRQ - depends on MODULE_FIDO2 - depends on TEST_KCONFIG - select PACKAGE_TINYCBOR - select PACKAGE_MICRO-ECC - select PACKAGE_TINY-ASN1 - select MODULE_PERIPH_GPIO - select MODULE_PERIPH_GPIO_IRQ - select MODULE_EVENT - select MODULE_EVENT_TIMEOUT_ZTIMER - select MODULE_ZTIMER - select MODULE_ZTIMER_MSEC - select MODULE_MTD - select MODULE_MTD_FLASHPAGE - select MODULE_MTD_WRITE_PAGE - select MODULE_RANDOM - select MODULE_CRYPTO_AES_256 - select MODULE_CIPHER_MODES - select MODULE_HASHES - select MODULE_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE - help - Y to enable CTAP protocol support. The Client-to-Authenticator - Protocol (CTAP) is an application layer protocol for the communication - between an authenticator and a host. CTAP is part of the FIDO2 Project. - For more information visit https://fidoalliance.org/fido2. - -if MODULE_FIDO2_CTAP +if USEMODULE_FIDO2_CTAP config FIDO2_CTAP_STACK_SIZE int "CTAP thread stack size" @@ -126,4 +95,4 @@ config FIDO2_CTAP_NUM_FLASHPAGES rsource "transport/Kconfig" -endif # MODULE_FIDO2_CTAP +endif # USEMODULE_FIDO2_CTAP diff --git a/sys/fido2/ctap/transport/Kconfig b/sys/fido2/ctap/transport/Kconfig index b9525f2cb680..5ec3a7e82490 100644 --- a/sys/fido2/ctap/transport/Kconfig +++ b/sys/fido2/ctap/transport/Kconfig @@ -4,9 +4,4 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. -menuconfig MODULE_FIDO2_CTAP_TRANSPORT - bool "FIDO2 CTAP transport" - depends on MODULE_FIDO2_CTAP - depends on TEST_KCONFIG - rsource "hid/Kconfig" diff --git a/sys/fido2/ctap/transport/hid/Kconfig b/sys/fido2/ctap/transport/hid/Kconfig index 27a8b40ab31f..43beff7cf20b 100644 --- a/sys/fido2/ctap/transport/hid/Kconfig +++ b/sys/fido2/ctap/transport/hid/Kconfig @@ -4,18 +4,7 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. -menuconfig MODULE_FIDO2_CTAP_TRANSPORT_HID - bool "FIDO2 CTAP transport HID" - depends on MODULE_FIDO2_CTAP_TRANSPORT - depends on TEST_KCONFIG - select MODULE_ISRPIPE - select MODULE_USBUS_HID - select MODULE_ZTIMER64 - select MODULE_ZTIMER64_MSEC - help - Configure a FIDO2 CTAP authenticator via KConfig. - -if MODULE_FIDO2_CTAP_TRANSPORT_HID +if USEMODULE_FIDO2_CTAP_TRANSPORT_HID config FIDO2_CTAP_TRANSPORT_HID_TRANSACTION_TIMEOUT int "CTAPHID Transaction timeout in milliseconds" @@ -25,4 +14,4 @@ config FIDO2_CTAP_TRANSPORT_HID_TRANSACTION_TIMEOUT of time to prevent the authenticator from being locked by a stalling application. -endif # MODULE_FIDO2_CTAP_TRANSPORT_HID +endif # USEMODULE_FIDO2_CTAP_TRANSPORT_HID diff --git a/sys/fmt/Kconfig b/sys/fmt/Kconfig deleted file mode 100644 index ab9429e4f8be..000000000000 --- a/sys/fmt/Kconfig +++ /dev/null @@ -1,14 +0,0 @@ -# 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_FMT - bool "String formatting" - depends on TEST_KCONFIG - -config MODULE_FMT_TABLE - bool "Table extension" - depends on MODULE_FMT diff --git a/sys/frac/Kconfig b/sys/frac/Kconfig deleted file mode 100644 index 8b66459019b7..000000000000 --- a/sys/frac/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# 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_FRAC - bool "Fractional integer operations" - depends on TEST_KCONFIG diff --git a/sys/fs/Kconfig b/sys/fs/Kconfig deleted file mode 100644 index f8c58f6b77ac..000000000000 --- a/sys/fs/Kconfig +++ /dev/null @@ -1,9 +0,0 @@ -# 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. -# - -rsource "constfs/Kconfig" -rsource "devfs/Kconfig" diff --git a/sys/fs/constfs/Kconfig b/sys/fs/constfs/Kconfig deleted file mode 100644 index 546c6388d570..000000000000 --- a/sys/fs/constfs/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# 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_CONSTFS - bool "ConstFS support" - help - ConstFS static file system. diff --git a/sys/fs/devfs/Kconfig b/sys/fs/devfs/Kconfig deleted file mode 100644 index ae980c813559..000000000000 --- a/sys/fs/devfs/Kconfig +++ /dev/null @@ -1,32 +0,0 @@ -# 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_DEVFS - bool "DevFS support" - depends on MODULE_VFS - help - This file system implementation allows devices to register file names - for easier access to device drivers from shell commands etc. The idea is - similar to the /dev directory on Unix. - -if MODULE_DEVFS - -config MODULE_DEVFS_HWRNG - bool "Add HWRNG device" - depends on HAS_PERIPH_HWRNG - select MODULE_PERIPH_HWRNG - help - Adds the hardware random number generator (HWRNG) as a device - (/dev/hwrng). - -config MODULE_DEVFS_RANDOM - bool "Add random device" - select MODULE_RANDOM - help - Adds a device to generate random (/dev/urandom). - -endif # MODULE_DEVFS diff --git a/sys/hashes/Kconfig b/sys/hashes/Kconfig deleted file mode 100644 index 05c88932c200..000000000000 --- a/sys/hashes/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# 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_HASHES - bool "Hash algorithms" - depends on TEST_KCONFIG - select MODULE_CRYPTO - -rsource "psa_riot_hashes/Kconfig" diff --git a/sys/hashes/psa_riot_hashes/Kconfig b/sys/hashes/psa_riot_hashes/Kconfig deleted file mode 100644 index cae71f246435..000000000000 --- a/sys/hashes/psa_riot_hashes/Kconfig +++ /dev/null @@ -1,45 +0,0 @@ -# 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_PSA_RIOT_HASHES_MD5 - bool - depends on MODULE_PSA_CRYPTO - select MODULE_PSA_RIOT_HASHES - select MODULE_HASHES - -config MODULE_PSA_RIOT_HASHES_SHA_1 - bool - depends on MODULE_PSA_CRYPTO - select MODULE_PSA_RIOT_HASHES - select MODULE_HASHES - -config MODULE_PSA_RIOT_HASHES_SHA_224 - bool - depends on MODULE_PSA_CRYPTO - select MODULE_PSA_RIOT_HASHES - select MODULE_HASHES - -config MODULE_PSA_RIOT_HASHES_SHA_256 - bool - depends on MODULE_PSA_CRYPTO - select MODULE_PSA_RIOT_HASHES - select MODULE_HASHES - -config MODULE_PSA_RIOT_HASHES_SHA_512 - bool - depends on MODULE_PSA_CRYPTO - select MODULE_PSA_RIOT_HASHES - select MODULE_HASHES - -config MODULE_PSA_RIOT_HASHES_HMAC_SHA256 - bool - depends on MODULE_PSA_CRYPTO - select MODULE_PSA_RIOT_HASHES - select MODULE_HASHES - -config MODULE_PSA_RIOT_HASHES - bool diff --git a/sys/include/net/gcoap.h b/sys/include/net/gcoap.h index 8c6370949178..7e364f46aea1 100644 --- a/sys/include/net/gcoap.h +++ b/sys/include/net/gcoap.h @@ -330,7 +330,8 @@ * coap_opt_add_proxy_uri(&pdu, uri); * unsigned len = coap_opt_finish(&pdu, COAP_OPT_FINISH_NONE); * - * gcoap_req_send((uint8_t *) pdu->hdr, len, proxy_remote, _resp_handler, NULL); + * gcoap_req_send((uint8_t *) pdu->hdr, len, proxy_remote, _resp_handler, NULL, + * GCOAP_SOCKET_TYPE_UNDEF); * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * * See the gcoap example for a sample implementation. @@ -960,9 +961,6 @@ static inline ssize_t gcoap_request(coap_pkt_t *pdu, uint8_t *buf, size_t len, /** * @brief Sends a buffer containing a CoAP request to the provided endpoint * - * @deprecated Will be an alias for @ref gcoap_req_send after the 2022.01 - * release. Will be removed after the 2022.04 release. - * * @param[in] buf Buffer containing the PDU * @param[in] len Length of the buffer * @param[in] remote Destination for the packet @@ -973,39 +971,45 @@ static inline ssize_t gcoap_request(coap_pkt_t *pdu, uint8_t *buf, size_t len, * available (by value) will be selected. Only single * types are allowed, not a combination of them. * + * @note The highest supported (by value) gcoap_socket_type_t will be selected + * as transport type. + * * @return length of the packet * @return -ENOTCONN, if DTLS was used and session establishment failed * @return -EINVAL, if @p tl_type is is not supported * @return 0 if cannot send */ -ssize_t gcoap_req_send_tl(const uint8_t *buf, size_t len, - const sock_udp_ep_t *remote, - gcoap_resp_handler_t resp_handler, void *context, - gcoap_socket_type_t tl_type); +ssize_t gcoap_req_send(const uint8_t *buf, size_t len, + const sock_udp_ep_t *remote, + gcoap_resp_handler_t resp_handler, void *context, + gcoap_socket_type_t tl_type); /** * @brief Sends a buffer containing a CoAP request to the provided endpoint * + * @deprecated Will be removed after the 2023.10 release. Use alias @ref gcoap_req_send() instead. + * * @param[in] buf Buffer containing the PDU * @param[in] len Length of the buffer * @param[in] remote Destination for the packet * @param[in] resp_handler Callback when response received, may be NULL * @param[in] context User defined context passed to the response handler - * - * @note The highest supported (by value) gcoap_socket_type_t will be selected - * as transport type. + * @param[in] tl_type The transport type to use for send. When + * @ref GCOAP_SOCKET_TYPE_UNDEF is selected, the highest + * available (by value) will be selected. Only single + * types are allowed, not a combination of them. * * @return length of the packet * @return -ENOTCONN, if DTLS was used and session establishment failed + * @return -EINVAL, if @p tl_type is is not supported * @return 0 if cannot send */ -static inline ssize_t gcoap_req_send(const uint8_t *buf, size_t len, - const sock_udp_ep_t *remote, - gcoap_resp_handler_t resp_handler, - void *context) +static inline ssize_t gcoap_req_send_tl(const uint8_t *buf, size_t len, + const sock_udp_ep_t *remote, + gcoap_resp_handler_t resp_handler, void *context, + gcoap_socket_type_t tl_type) { - return gcoap_req_send_tl(buf, len, remote, resp_handler, context, - GCOAP_SOCKET_TYPE_UNDEF); + return gcoap_req_send(buf, len, remote, resp_handler, context, tl_type); } /** diff --git a/sys/include/net/gnrc/gomach/gomach.h b/sys/include/net/gnrc/gomach/gomach.h index 04eb0145641d..4098d36874bd 100644 --- a/sys/include/net/gnrc/gomach/gomach.h +++ b/sys/include/net/gnrc/gomach/gomach.h @@ -10,6 +10,8 @@ * @defgroup net_gnrc_gomach GoMacH * @ingroup net_gnrc * @brief A traffic-adaptive multi-channel MAC + * @deprecated This module is deprecated and will be removed after the 2024.10 release. + * As an alternative MAC layer for IEEE 802.15.4, you can use @ref pkg_opendsme. * * * GoMacH is, "a General, nearly Optimal MAC protocol for multi-Hop communications", diff --git a/sys/include/net/gnrc/lwmac/lwmac.h b/sys/include/net/gnrc/lwmac/lwmac.h index 2871fd9fe9b2..01cf86de74e5 100644 --- a/sys/include/net/gnrc/lwmac/lwmac.h +++ b/sys/include/net/gnrc/lwmac/lwmac.h @@ -11,6 +11,8 @@ * @defgroup net_gnrc_lwmac LWMAC * @ingroup net_gnrc * @brief A Lightweight duty-cycling 802.15.4 MAC protocol + * @deprecated This module is deprecated and will be removed after the 2024.10 release. + * As an alternative MAC layer for IEEE 802.15.4, you can use @ref pkg_opendsme. * * * ## LWMAC implementation diff --git a/sys/include/net/gnrc/mac/mac.h b/sys/include/net/gnrc/mac/mac.h index 807fecd898e1..f0fed0934e92 100644 --- a/sys/include/net/gnrc/mac/mac.h +++ b/sys/include/net/gnrc/mac/mac.h @@ -11,6 +11,8 @@ * @defgroup net_gnrc_mac Common MAC module * @ingroup net_gnrc * @brief A MAC module for providing common MAC parameters and helper functions. + * @deprecated This module is deprecated and will be removed after the 2024.10 release. + * As an alternative, you can use @ref pkg_opendsme. * * @{ * diff --git a/sys/include/net/gnrc/nettype.h b/sys/include/net/gnrc/nettype.h index 34aea25fa4c1..4534d02306ec 100644 --- a/sys/include/net/gnrc/nettype.h +++ b/sys/include/net/gnrc/nettype.h @@ -66,10 +66,20 @@ typedef enum { * @name Link layer */ #if IS_USED(MODULE_GNRC_NETTYPE_GOMACH) || defined(DOXYGEN) - GNRC_NETTYPE_GOMACH, /**< Protocol is GoMacH */ + /** + * @brief Protocol is GoMacH + * @deprecated @ref net_gnrc_gomach was deprecated and will be removed after + * the 2024.10 release together with this protocol type. + */ + GNRC_NETTYPE_GOMACH, #endif #if IS_USED(MODULE_GNRC_NETTYPE_LWMAC) || defined(DOXYGEN) - GNRC_NETTYPE_LWMAC, /**< Protocol is lwMAC */ + /** + * @brief Protocol is lwMAC + * @deprecated @ref net_gnrc_lwmac was deprecated and will be removed after + * the 2024.10 release together with this protocol type. + */ + GNRC_NETTYPE_LWMAC, #endif #if IS_USED(MODULE_GNRC_NETTYPE_CUSTOM) || defined(DOXYGEN) GNRC_NETTYPE_CUSTOM, /**< Custom ethertype */ diff --git a/sys/include/net/sock/dtls.h b/sys/include/net/sock/dtls.h index a226010e6c0d..267692b58a6f 100644 --- a/sys/include/net/sock/dtls.h +++ b/sys/include/net/sock/dtls.h @@ -581,6 +581,20 @@ extern "C" { */ #define SOCK_DTLS_HANDSHAKE (EXDEV) +/** + * @brief Force extended master secret extension + */ +#ifndef CONFIG_DTLS_FORCE_EXTENDED_MASTER_SECRET +#define CONFIG_DTLS_FORCE_EXTENDED_MASTER_SECRET 1 +#endif + +/** + * @brief Force renegotiation info extension + */ +#ifndef CONFIG_DTLS_FORCE_RENEGOTIATION_INFO +#define CONFIG_DTLS_FORCE_RENEGOTIATION_INFO 1 +#endif + /** * @brief DTLS version number * @anchor sock_dtls_prot_version diff --git a/sys/iolist/Kconfig b/sys/iolist/Kconfig deleted file mode 100644 index 8b9c5d2bed25..000000000000 --- a/sys/iolist/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# 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_IOLIST - bool "iolist scatter / gather IO" - depends on TEST_KCONFIG diff --git a/sys/isrpipe/Kconfig b/sys/isrpipe/Kconfig deleted file mode 100644 index af253a500f6b..000000000000 --- a/sys/isrpipe/Kconfig +++ /dev/null @@ -1,18 +0,0 @@ -# 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_ISRPIPE - bool "ISR Pipe" - select MODULE_TSRB - depends on TEST_KCONFIG - help - ISR -> userspace pipe. - -config MODULE_ISRPIPE_READ_TIMEOUT - bool "ISR Pipe read with timeout" - depends on MODULE_ISRPIPE - select ZTIMER_USEC diff --git a/sys/libc/Kconfig b/sys/libc/Kconfig deleted file mode 100644 index eaa489551847..000000000000 --- a/sys/libc/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# 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_LIBC - bool "C Library helper functions" - default y - depends on TEST_KCONFIG diff --git a/sys/log_color/Kconfig b/sys/log_color/Kconfig deleted file mode 100644 index 71f0707e1aed..000000000000 --- a/sys/log_color/Kconfig +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright (c) 2019 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 LOG -#the choice prompt is described in sys/Kconfig - -config MODULE_LOG_COLOR - bool "log_color: colored log output" - select MODULE_LOG - # log_color fails to compile with -Wformat-nonliteral but this is required - # for the wrapped stdio that pushes the format string into progmem - depends on !CPU_ARCH_AVR8 - help - Implements a logging module with colored output. - -endchoice diff --git a/sys/log_printfnoformat/Kconfig b/sys/log_printfnoformat/Kconfig deleted file mode 100644 index 6993613c6534..000000000000 --- a/sys/log_printfnoformat/Kconfig +++ /dev/null @@ -1,18 +0,0 @@ -# Copyright (c) 2019 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 LOG -#the choice prompt is described in sys/Kconfig - -config MODULE_LOG_PRINTFNOFORMAT - bool "log_printfnoformat: puts-based log" - select MODULE_LOG - help - Logging is implemented using puts instead of printf. Use it where printf - might be too heavy. This also serves as an example for logging - implementation. - -endchoice diff --git a/sys/luid/Kconfig b/sys/luid/Kconfig deleted file mode 100644 index f967e79ef389..000000000000 --- a/sys/luid/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# 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_LUID - bool "Locally Unique ID Generator" - depends on TEST_KCONFIG - select MODULE_PERIPH_CPUID if HAS_PERIPH_CPUID diff --git a/sys/matstat/Kconfig b/sys/matstat/Kconfig deleted file mode 100644 index c1f9a3716733..000000000000 --- a/sys/matstat/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# 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_MATSTAT - bool "Math statistics" - depends on TEST_KCONFIG diff --git a/sys/memarray/Kconfig b/sys/memarray/Kconfig deleted file mode 100644 index 48bceb254c8c..000000000000 --- a/sys/memarray/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# 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_MEMARRAY - bool "Dynamic allocation in static memory arrays" - depends on TEST_KCONFIG diff --git a/sys/mineplex/Kconfig b/sys/mineplex/Kconfig deleted file mode 100644 index db4a6130f677..000000000000 --- a/sys/mineplex/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# 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_MINEPLEX - bool "Mineplex font" - depends on TEST_KCONFIG diff --git a/sys/net/Kconfig b/sys/net/Kconfig index af9e0f4c5e89..a77965f164dc 100644 --- a/sys/net/Kconfig +++ b/sys/net/Kconfig @@ -9,10 +9,8 @@ menu "Networking" rsource "application_layer/Kconfig" rsource "ble/Kconfig" rsource "credman/Kconfig" -rsource "crosslayer/Kconfig" rsource "gnrc/Kconfig" rsource "sock/Kconfig" -rsource "network_layer/Kconfig" rsource "link_layer/Kconfig" rsource "lora/Kconfig" rsource "netif/Kconfig" diff --git a/sys/net/application_layer/Kconfig.coap b/sys/net/application_layer/Kconfig.coap index 5f4582d4dad0..d3f8d92a3b23 100644 --- a/sys/net/application_layer/Kconfig.coap +++ b/sys/net/application_layer/Kconfig.coap @@ -5,18 +5,8 @@ # directory for more details. # -config HAS_PROTOCOL_COAP - bool - help - Specifies that CoAP support is present. - -menuconfig KCONFIG_COAP - bool "Configure CoAP generic options" - depends on HAS_PROTOCOL_COAP - help - Configure CoAP generic options via Kconfig. - -if KCONFIG_COAP +menu "CoAP generic options" + depends on USEMODULE_NANOCOAP || USEMODULE_GCOAP config COAP_ACK_TIMEOUT_MS int "Timeout in milliseconds for a response to a confirmable request" @@ -50,4 +40,4 @@ config COAP_MAX_RETRANSMIT of 4 retransmissions is taken from [RFC 7252, section 4.8](https://tools.ietf.org/html/rfc7252#section-4.8). -endif # KCONFIG_COAP +endmenu # CoAP generic options diff --git a/sys/net/application_layer/asymcute/Kconfig b/sys/net/application_layer/asymcute/Kconfig index 9cb0b50667d5..ee2ebe44eea9 100644 --- a/sys/net/application_layer/asymcute/Kconfig +++ b/sys/net/application_layer/asymcute/Kconfig @@ -4,17 +4,8 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_ASYMCUTE - bool "Configure Asymcute" +menu "Asymcute" depends on USEMODULE_ASYMCUTE - help - Configure Asymcute using Kconfig.`Asymcute` is a asynchronous MQTT-SN - client implementation, aiming at providing the user a high degree of - flexibility. It provides a flexible interface that allows users to issue - any number of concurrent requests to one or more different gateways - simultaneously. - -if KCONFIG_USEMODULE_ASYMCUTE config ASYMCUTE_DEFAULT_PORT int "Default UDP port to listen on" @@ -32,7 +23,7 @@ config ASYMCUTE_TOPIC_MAXLEN int "Maximum topic length" default 32 help - Configure maximum length for client's topic. The value must be less than + Configure maximum length for clients topic. The value must be less than (256 - 8) and less than ('CONFIG_ASYMCUTE_BUFSIZE' - 8). config ASYMCUTE_KEEPALIVE @@ -88,4 +79,4 @@ config ASYMCUTE_N_RETRY information, see MQTT-SN Spec v1.2, section 6.13. For default values, see section 7.2 -> Nretry: 3-5. -endif # KCONFIG_USEMODULE_ASYMCUTE +endmenu # Asymcute diff --git a/sys/net/application_layer/cord/Kconfig b/sys/net/application_layer/cord/Kconfig index be5f55531c41..7c4286e80b28 100644 --- a/sys/net/application_layer/cord/Kconfig +++ b/sys/net/application_layer/cord/Kconfig @@ -4,14 +4,8 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_CORD - bool "Configure CoRE RD client" +menu "CoRE RD client" depends on USEMODULE_CORD_COMMON - help - Configure the CoRE Resource Directory (RD) Endpoint and Lookup Client - using Kconfig. - -if KCONFIG_USEMODULE_CORD config CORD_LT int "CORD client lifetime in seconds" @@ -37,7 +31,7 @@ config CORD_UPDATE_INTERVAL config CORD_EP_EN bool "Enable configuration of node's endpoint ID" help - Enable configuration of node's endpoint name. If not enabled, the ID is + Enable configuration of nodes endpoint name. If not enabled, the ID is generated by concatenation of 'CORD_EP_PREFIX', default value is 'RIOT-' , and a locally unique ID (luid) encoded in hexadecimal formatting with the given length of characters 'CORD_EP_SUFFIX_LEN', default value is @@ -50,4 +44,4 @@ config CORD_EP help Configure node's endpoint ID. -endif # KCONFIG_USEMODULE_CORD +endmenu # CoRE RD client diff --git a/sys/net/application_layer/cord/ep/cord_ep.c b/sys/net/application_layer/cord/ep/cord_ep.c index 4bc13538fad9..b9148d9b2b3a 100644 --- a/sys/net/application_layer/cord/ep/cord_ep.c +++ b/sys/net/application_layer/cord/ep/cord_ep.c @@ -151,7 +151,7 @@ static int _update_remove(unsigned code, gcoap_resp_handler_t handle) ssize_t pkt_len = coap_opt_finish(&pkt, COAP_OPT_FINISH_NONE); /* send request */ - ssize_t send_len = gcoap_req_send(buf, pkt_len, &_rd_remote, handle, NULL); + ssize_t send_len = gcoap_req_send(buf, pkt_len, &_rd_remote, handle, NULL, GCOAP_SOCKET_TYPE_UNDEF); if (send_len <= 0) { return CORD_EP_ERR; } @@ -225,7 +225,7 @@ static int _discover_internal(const sock_udp_ep_t *remote, coap_hdr_set_type(pkt.hdr, COAP_TYPE_CON); coap_opt_add_uri_query(&pkt, "rt", "core.rd"); size_t pkt_len = coap_opt_finish(&pkt, COAP_OPT_FINISH_NONE); - res = gcoap_req_send(buf, pkt_len, remote, _on_discover, NULL); + res = gcoap_req_send(buf, pkt_len, remote, _on_discover, NULL, GCOAP_SOCKET_TYPE_UNDEF); if (res <= 0) { return CORD_EP_ERR; } @@ -296,7 +296,7 @@ int cord_ep_register(const sock_udp_ep_t *remote, const char *regif) pkt_len += res; /* send out the request */ - res = gcoap_req_send(buf, pkt_len, remote, _on_register, NULL); + res = gcoap_req_send(buf, pkt_len, remote, _on_register, NULL, GCOAP_SOCKET_TYPE_UNDEF); if (res <= 0) { retval = CORD_EP_ERR; goto end; diff --git a/sys/net/application_layer/cord/epsim/cord_epsim.c b/sys/net/application_layer/cord/epsim/cord_epsim.c index 4bcefce27edb..9c739c106f69 100644 --- a/sys/net/application_layer/cord/epsim/cord_epsim.c +++ b/sys/net/application_layer/cord/epsim/cord_epsim.c @@ -67,7 +67,7 @@ int cord_epsim_register(const sock_udp_ep_t *rd_ep) /* finish, we don't have any payload */ ssize_t len = coap_opt_finish(&pkt, COAP_OPT_FINISH_NONE); _state = CORD_EPSIM_BUSY; - if (gcoap_req_send(buf, len, rd_ep, _req_handler, NULL) == 0) { + if (gcoap_req_send(buf, len, rd_ep, _req_handler, NULL, GCOAP_SOCKET_TYPE_UNDEF) == 0) { return CORD_EPSIM_ERROR; } diff --git a/sys/net/application_layer/cord/lc/cord_lc.c b/sys/net/application_layer/cord/lc/cord_lc.c index b77e00a3f117..68fb2032b832 100644 --- a/sys/net/application_layer/cord/lc/cord_lc.c +++ b/sys/net/application_layer/cord/lc/cord_lc.c @@ -190,7 +190,7 @@ static ssize_t _lookup_raw(const cord_lc_rd_t *rd, unsigned content_format, if (pkt_len < 0) { return CORD_LC_ERR; } - res = gcoap_req_send(reqbuf, pkt_len, rd->remote, _on_lookup, NULL); + res = gcoap_req_send(reqbuf, pkt_len, rd->remote, _on_lookup, NULL, GCOAP_SOCKET_TYPE_UNDEF); if (res < 0) { return CORD_LC_ERR; } @@ -250,7 +250,7 @@ static int _send_rd_init_req(coap_pkt_t *pkt, const sock_udp_ep_t *remote, return CORD_LC_ERR; } - if (!gcoap_req_send(buf, pkt_len, remote, _on_rd_init, NULL)) { + if (!gcoap_req_send(buf, pkt_len, remote, _on_rd_init, NULL, GCOAP_SOCKET_TYPE_UNDEF)) { DEBUG("cord_lc: error gcoap_req_send()\n"); return CORD_LC_ERR; } diff --git a/sys/net/application_layer/dhcpv6/Kconfig b/sys/net/application_layer/dhcpv6/Kconfig index 3dd24ccbe816..f570fda17ca5 100644 --- a/sys/net/application_layer/dhcpv6/Kconfig +++ b/sys/net/application_layer/dhcpv6/Kconfig @@ -5,20 +5,11 @@ # directory for more details. # -menuconfig KCONFIG_USEMODULE_DHCPV6 - bool "Configure DHCPv6" +menu "DHCPv6" depends on USEMODULE_DHCPV6 - help - Configure DHCPv6 using Kconfig. -if KCONFIG_USEMODULE_DHCPV6 -menuconfig KCONFIG_USEMODULE_DHCPV6_CLIENT - bool "Configure DHCPv6 client" +menu "DHCPv6 client" depends on USEMODULE_DHCPV6_CLIENT - help - Configure DHCPv6 client using Kconfig. - -if KCONFIG_USEMODULE_DHCPV6_CLIENT config DHCPV6_CLIENT_ADDR_LEASE_MAX int "Maximum number of leases to be stored" @@ -28,30 +19,17 @@ config DHCPV6_CLIENT_PFX_LEASE_MAX int "Maximum number of prefix leases to be stored" default 1 -menuconfig KCONFIG_USEMODULE_DHCPV6_CLIENT_MUD_URL - bool "Enable DHCPv6 Client MUD URL" - help - Enable the inclusion of a MUD URL in DHCPv6 packets - as specified in RFC 8520, section 10. This URL - has to point to a MUD file containing YANG-based JSON - with a description of the device and its suggested - network behavior. The URL must use the "https" scheme. - -if KCONFIG_USEMODULE_DHCPV6_CLIENT_MUD_URL +menu "DHCPv6 Client MUD URL" + depends on USEMODULE_DHCPV6_CLIENT_MUD_URL config DHCPV6_CLIENT_MUD_URL string "URL pointing to a Manufacturer Usage Description file" -endif # KCONFIG_USEMODULE_DHCPV6_CLIENT_MUD_URL -endif # KCONFIG_USEMODULE_DHCPV6_CLIENT +endmenu # DHCPv6 Client MUD URL +endmenu # DHCPv6 client -menuconfig KCONFIG_USEMODULE_DHCPV6_RELAY - bool "Configure DHCPv6 relay agent" +menu "DHCPv6 relay agent" depends on USEMODULE_DHCPV6_RELAY - help - Configure DHCPv6 relay agent using Kconfig. - -if KCONFIG_USEMODULE_DHCPV6_RELAY config DHCPV6_RELAY_HOP_LIMIT int "Maximum hop count in relay-forward message (HOP_COUNT_LIMIT)" @@ -61,5 +39,5 @@ config DHCPV6_RELAY_BUFLEN int "Default length of relay agent send and receive buffer" default 256 -endif # KCONFIG_USEMODULE_DHCPV6_RELAY -endif # KCONFIG_USEMODULE_DHCPV6 +endmenu # DHCPv6 relay agent +endmenu # DHCPv6 diff --git a/sys/net/application_layer/dns/Kconfig b/sys/net/application_layer/dns/Kconfig index 3d1a6835db0b..4bdd7cf0303d 100644 --- a/sys/net/application_layer/dns/Kconfig +++ b/sys/net/application_layer/dns/Kconfig @@ -5,34 +5,20 @@ # directory for more details. # -menuconfig KCONFIG_USEMODULE_DNS - bool "Configure DNS" +menu "DNS" depends on USEMODULE_DNS - help - Configure DNS using Kconfig. -if KCONFIG_USEMODULE_DNS -menuconfig KCONFIG_USEMODULE_DNS_MSG - bool "Configure DNS message parser and composer" +menu "DNS message parser and composer" depends on USEMODULE_DNS_MSG - help - Configure DNS message parser and composer using Kconfig. - -if KCONFIG_USEMODULE_DNS_MSG config DNS_MSG_LEN int "Maximum DNS message length" default 128 -endif # KCONFIG_USEMODULE_DNS_MSG +endmenu # DNS message parser and composer -menuconfig KCONFIG_USEMODULE_DNS_CACHE - bool "Configure DNS cache" +menu "DNS cache" depends on USEMODULE_DNS_CACHE - help - Configure DNS cache using Kconfig. - -if KCONFIG_USEMODULE_DNS_CACHE config DNS_CACHE_SIZE int "Maximum number of DNS cache entries" @@ -48,5 +34,5 @@ config DNS_CACHE_AAAA default y if USEMODULE_IPV6 default n -endif # KCONFIG_USEMODULE_DNS_SIZE -endif # KCONFIG_USEMODULE_DNS +endmenu # DNS cache +endmenu # DNS diff --git a/sys/net/application_layer/emcute/Kconfig b/sys/net/application_layer/emcute/Kconfig index cfcdae431498..c47c75536d1c 100644 --- a/sys/net/application_layer/emcute/Kconfig +++ b/sys/net/application_layer/emcute/Kconfig @@ -4,16 +4,8 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_EMCUTE - bool "Configure EMCUTE" +menu "EMCUTE" depends on USEMODULE_EMCUTE - help - Configure EMCUTE using Kconfig.`EMCUTE` is the implementation of the - OASIS MQTT-SN protocol for RIOT. It is designed with a focus on small - memory footprint and usability. It is designed to run on top of UDP - only, making use of net_sock_udp. - -if KCONFIG_USEMODULE_EMCUTE config EMCUTE_DEFAULT_PORT int "Default UDP port to listen on" @@ -75,4 +67,4 @@ config EMCUTE_N_RETRY disconnected. For more information, see MQTT-SN Spec v1.2, section 6.13. For default values, see section 7.2 -> Nretry: 3-5. -endif # KCONFIG_USEMODULE_EMCUTE +endmenu # EMCUTE diff --git a/sys/net/application_layer/gcoap/Kconfig b/sys/net/application_layer/gcoap/Kconfig index b499974e8002..c28e5f94ab35 100644 --- a/sys/net/application_layer/gcoap/Kconfig +++ b/sys/net/application_layer/gcoap/Kconfig @@ -4,35 +4,21 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_GCOAP - bool "Configure GCoAP" +menu "GCoAP" depends on USEMODULE_GCOAP - help - Configure GCoAP module using Kconfig. If not set default values and - CFLAGS will be used. - -if KCONFIG_USEMODULE_GCOAP -menuconfig KCONFIG_USEMODULE_GCOAP_FORWARD_PROXY - bool "Configure forward proxy" +menu "forward proxy" depends on USEMODULE_GCOAP_FORWARD_PROXY - help - Configure forward proxy of GCoAP using Kconfig. -if KCONFIG_USEMODULE_GCOAP_FORWARD_PROXY config GCOAP_FORWARD_PROXY_EMPTY_ACK_MS int "Timeout in milliseconds for the forward proxy to send an empty ACK without response" default 1500 -endif # KCONFIG_USEMODULE_GCOAP_FORWARD_PROXY -menuconfig KCONFIG_USEMODULE_GCOAP_DNS - bool "Configure DNS-over-CoAPS implementation in GCoAP" +endmenu # forward proxy + +menu "DNS-over-CoAPS implementation in GCoAP" depends on USEMODULE_GCOAP_DNS - help - Configure DNS-over-CoAPS submodule of GCoAP using Kconfig. If not set - default values and CFLAGS will be used. -if KCONFIG_USEMODULE_GCOAP_DNS config GCOAP_DNS_SERVER_URI_LEN int "Maximum length of the URI template for the DNS server" default 64 @@ -54,9 +40,10 @@ config GCOAP_DNS_BLOCK_SIZE Should be less than @ref CONFIG_GCOAP_DNS_PDU_BUF_SIZE or @ref CONFIG_GCOAP_PDU_BUF_SIZE and must be a power -endif # KCONFIG_USEMODULE_GCOAP_DNS +endmenu # DNS-over-CoAPS implementation in GCoAP menu "DTLS options" + config GCOAP_DTLS_CREDENTIAL_TAG int "Credential tag" default 5 @@ -191,7 +178,7 @@ config GCOAP_TOKENLEN default 2 range 0 $(gcoap-tokenlen-max) help - Lenght for a token, expressed in bytes. + Length for a token, expressed in bytes. config GCOAP_NO_AUTO_INIT bool "Disable auto-initialization" @@ -199,4 +186,4 @@ config GCOAP_NO_AUTO_INIT Disable gcoap startup during system auto init. If disabled, gcoap_init() must be called by some other means. -endif # KCONFIG_USEMODULE_GCOAP +endmenu # GCoAP diff --git a/sys/net/application_layer/gcoap/dns.c b/sys/net/application_layer/gcoap/dns.c index 9d78dd53c9f8..1b0ce80d2c80 100644 --- a/sys/net/application_layer/gcoap/dns.c +++ b/sys/net/application_layer/gcoap/dns.c @@ -765,6 +765,6 @@ static ssize_t _send(const void *buf, size_t len, const sock_udp_ep_t *remote, if (lock_resp_wait) { mutex_lock(&context->resp_wait); } - return gcoap_req_send_tl(buf, len, remote, _resp_handler, context, tl_type); + return gcoap_req_send(buf, len, remote, _resp_handler, context, tl_type); } /** @} */ diff --git a/sys/net/application_layer/gcoap/forward_proxy.c b/sys/net/application_layer/gcoap/forward_proxy.c index a5d74c967997..808180aeb277 100644 --- a/sys/net/application_layer/gcoap/forward_proxy.c +++ b/sys/net/application_layer/gcoap/forward_proxy.c @@ -208,10 +208,10 @@ static bool _parse_endpoint(sock_udp_ep_t *remote, static ssize_t _dispatch_msg(const void *buf, size_t len, sock_udp_ep_t *remote) { /* Yes it's not a request -- but turns out there is nothing in - * gcoap_req_send_tl that is actually request specific, especially if we + * gcoap_req_send that is actually request specific, especially if we * don't assign a callback. */ - ssize_t res = gcoap_req_send_tl(buf, len, remote, NULL, NULL, - GCOAP_SOCKET_TYPE_UDP); + ssize_t res = gcoap_req_send(buf, len, remote, NULL, NULL, + GCOAP_SOCKET_TYPE_UDP); if (res <= 0) { DEBUG("gcoap_forward_proxy: unable to dispatch message: %d\n", -res); } @@ -440,7 +440,8 @@ static int _gcoap_forward_proxy_via_coap(coap_pkt_t *client_pkt, len = gcoap_req_send((uint8_t *)pkt.hdr, len, &origin_server_ep, - _forward_resp_handler, (void *)client_ep); + _forward_resp_handler, (void *)client_ep, + GCOAP_SOCKET_TYPE_UNDEF); return len; } diff --git a/sys/net/application_layer/gcoap/gcoap.c b/sys/net/application_layer/gcoap/gcoap.c index adf8829b237b..e6fc5d91ff8b 100644 --- a/sys/net/application_layer/gcoap/gcoap.c +++ b/sys/net/application_layer/gcoap/gcoap.c @@ -1612,10 +1612,10 @@ int gcoap_obs_req_forget(const sock_udp_ep_t *remote, const uint8_t *token, return res; } -ssize_t gcoap_req_send_tl(const uint8_t *buf, size_t len, - const sock_udp_ep_t *remote, - gcoap_resp_handler_t resp_handler, void *context, - gcoap_socket_type_t tl_type) +ssize_t gcoap_req_send(const uint8_t *buf, size_t len, + const sock_udp_ep_t *remote, + gcoap_resp_handler_t resp_handler, void *context, + gcoap_socket_type_t tl_type) { gcoap_socket_t socket = { 0 }; gcoap_request_memo_t *memo = NULL; diff --git a/sys/net/application_layer/nanocoap/Kconfig b/sys/net/application_layer/nanocoap/Kconfig index cfba8df40719..e7a62ec746af 100644 --- a/sys/net/application_layer/nanocoap/Kconfig +++ b/sys/net/application_layer/nanocoap/Kconfig @@ -5,17 +5,9 @@ # directory for more details. # -# nanoCoAP provides CoAP functionalities -config USEMODULE_NANOCOAP - bool - select HAS_PROTOCOL_COAP - -menuconfig KCONFIG_USEMODULE_NANOCOAP - bool "Configure nanoCoAP module" +menu "nanoCoAP" depends on USEMODULE_NANOCOAP -if KCONFIG_USEMODULE_NANOCOAP - config NANOCOAP_NOPTS_MAX int "Maximum number of options in a message" default 16 @@ -35,12 +27,9 @@ config NANOCOAP_QS_MAX int "Maximum length of a query string written to a message" default 64 -menuconfig KCONFIG_USEMODULE_NANOCOAP_CACHE - bool "Configure nanoCoAP Cache module" +menu "nanoCoAP Cache module" depends on USEMODULE_NANOCOAP_CACHE -if KCONFIG_USEMODULE_NANOCOAP_CACHE - config NANOCOAP_CACHE_ENTRIES int "Number of maximum cache entries" default 8 @@ -53,6 +42,6 @@ config NANOCOAP_CACHE_RESPONSE_SIZE int "Size of the buffer to store responses in the cache" default 128 -endif # KCONFIG_USEMODULE_NANOCOAP_CACHE +endmenu # nanoCoAP Cache module -endif # KCONFIG_USEMODULE_NANOCOAP +endmenu # nanoCoAP diff --git a/sys/net/application_layer/sock_dodtls/Kconfig b/sys/net/application_layer/sock_dodtls/Kconfig index b78f15550a8f..6abf8afd354a 100644 --- a/sys/net/application_layer/sock_dodtls/Kconfig +++ b/sys/net/application_layer/sock_dodtls/Kconfig @@ -5,13 +5,8 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_SOCK_DODTLS - bool "Configure DNS over DTLS" +menu "DNS over DTLS" depends on USEMODULE_SOCK_DODTLS - help - Configure DNS over DTLS using Kconfig. - -if KCONFIG_USEMODULE_SOCK_DODTLS config SOCK_DODTLS_RETRIES int "Number of DNS over DTLS query retries" @@ -21,4 +16,4 @@ config SOCK_DODTLS_TIMEOUT_MS int "Timeout for DNS over DTLS queries in milliseconds" default 1000 -endif # KCONFIG_USEMODULE_SOCK_DODTLS +endmenu # DNS over DTLS diff --git a/sys/net/application_layer/telnet/Kconfig b/sys/net/application_layer/telnet/Kconfig index 4d706a060c22..1c4f485f9c85 100644 --- a/sys/net/application_layer/telnet/Kconfig +++ b/sys/net/application_layer/telnet/Kconfig @@ -4,14 +4,8 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_TELNET - bool "Configure telnet server" +menu "telnet server" depends on USEMODULE_TELNET - help - Configure telnet module using Kconfig. If not set default values and - CFLAGS will be used. - -if KCONFIG_USEMODULE_TELNET config TELNET_PORT int "Server port" @@ -25,4 +19,4 @@ config TELNET_TCP_QUEUE_SIZE help Maximum number of incoming TCP connections. -endif # KCONFIG_USEMODULE_TELNET +endmenu # telnet server diff --git a/sys/net/ble/skald/Kconfig b/sys/net/ble/skald/Kconfig index 49c2a6ab6cf6..834110946c92 100644 --- a/sys/net/ble/skald/Kconfig +++ b/sys/net/ble/skald/Kconfig @@ -4,13 +4,8 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_SKALD - bool "Configure SKALD" +menu "SKALD" depends on USEMODULE_SKALD - help - Configure Skald, BLE advertising stack, using Kconfig. - -if KCONFIG_USEMODULE_SKALD config SKALD_ADV_CHANNELS string "Advertising channels" @@ -19,4 +14,4 @@ config SKALD_ADV_CHANNELS Configure advertising channels. Default advertising channels are 37, 38 and 39 which can be customised to upto 40 (0-39) channels. -endif # KCONFIG_USEMODULE_SKALD +endmenu # SKALD diff --git a/sys/net/credman/Kconfig b/sys/net/credman/Kconfig index 30c860f9772f..e771211e5ba1 100644 --- a/sys/net/credman/Kconfig +++ b/sys/net/credman/Kconfig @@ -4,14 +4,8 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_CREDMAN - bool "Configure CREDMAN" +menu "CREDMAN" depends on USEMODULE_CREDMAN - help - Configure CREDMAN, Credentials management module for (D)TLS, using - Kconfig. - -if KCONFIG_USEMODULE_CREDMAN config CREDMAN_MAX_CREDENTIALS int "MAX number of credentials in credential pool" @@ -25,4 +19,4 @@ config CREDMAN_MAX_ASN1_OBJ default 8 depends on USEMODULE_CREDMAN_LOAD -endif # KCONFIG_USEMODULE_CREDMAN +endmenu # CREDMAN diff --git a/sys/net/crosslayer/Kconfig b/sys/net/crosslayer/Kconfig deleted file mode 100644 index aa26b5cbc141..000000000000 --- a/sys/net/crosslayer/Kconfig +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) 2022 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. -# - -rsource "netopt/Kconfig" diff --git a/sys/net/crosslayer/netopt/Kconfig b/sys/net/crosslayer/netopt/Kconfig deleted file mode 100644 index b0324a1fd73e..000000000000 --- a/sys/net/crosslayer/netopt/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (c) 2022 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_NETOPT - bool - depends on TEST_KCONFIG - help - Functionalities to map netopt option numbers to strings. diff --git a/sys/net/gnrc/application_layer/dhcpv6/Kconfig b/sys/net/gnrc/application_layer/dhcpv6/Kconfig index 9ea44a0739b0..6aca74941267 100644 --- a/sys/net/gnrc/application_layer/dhcpv6/Kconfig +++ b/sys/net/gnrc/application_layer/dhcpv6/Kconfig @@ -1,12 +1,7 @@ -menuconfig KCONFIG_USEMODULE_GNRC_DHCPV6 - bool "Configure GNRC-part of DHCPv6" +menu "GNRC-part of DHCPv6" depends on USEMODULE_GNRC_DHCPV6 - help - Configure GNRC-part of DHCPv6 via Kconfig. - -if KCONFIG_USEMODULE_GNRC_DHCPV6 + depends on USEMODULE_GNRC_DHCPV6_CLIENT_6LBR -if USEMODULE_GNRC_DHCPV6_CLIENT_6LBR config GNRC_DHCPV6_CLIENT_6LBR_UPSTREAM int "Identifier for the upstream interface of the 6LoWPAN border router" default 0 @@ -20,7 +15,6 @@ config GNRC_DHCPV6_CLIENT_6LBR_6LO_CTX_MIN help @see [RFC 6775, section 4.2](https://tools.ietf.org/html/rfc6775#section-4.2) - config GNRC_DHCPV6_CLIENT_6LBR_STATIC_ROUTE bool "Use static routes to upstream interface" help @@ -29,6 +23,5 @@ config GNRC_DHCPV6_CLIENT_6LBR_STATIC_ROUTE that the upstream router can set a static route for the delegated prefix via that address. It is recommended to increase at least @ref CONFIG_GNRC_NETIF_IPV6_ADDRS_NUMOF to that end. -endif # USEMODULE_GNRC_DHCPV6_CLIENT_6LBR -endif # KCONFIG_USEMODULE_GNRC_DHCPV6 +endmenu # GNRC-part of DHCPv6 diff --git a/sys/net/gnrc/link_layer/gomach/Kconfig b/sys/net/gnrc/link_layer/gomach/Kconfig index b53a48838a81..2ed2dbc6ca03 100644 --- a/sys/net/gnrc/link_layer/gomach/Kconfig +++ b/sys/net/gnrc/link_layer/gomach/Kconfig @@ -4,13 +4,9 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_GNRC_GOMACH - bool "Configure GNRC GOMACH" - depends on USEMODULE_GNRC_GOMACH - help - Configure the GNRC GOMACH using Kconfig. -if KCONFIG_USEMODULE_GNRC_GOMACH +menu "GNRC GOMACH" + depends on USEMODULE_GNRC_GOMACH config GNRC_GOMACH_CP_DURATION_US int "Wake-up period (WP) duration in microseconds" @@ -32,7 +28,7 @@ config GNRC_GOMACH_SUPERFRAME_DURATION_US duration, i.e , time between two consecutive wake-ups. The configurations should not be shorter than 10 times of 'CONFIG_GNRC_GOMACH_CP_DURATION_US' and not shorter than the RTT tickle - interval.This configuration governs power consumption and GoMacH's + interval.This configuration governs power consumption and GoMacHs reactiveness to traffic loads.In GoMacH, nodes adopt duty-cycle scheme to conserve power. That is, time is divided into repeated cycles (superframes), and in each cycle, a node only wakes up for a short @@ -82,7 +78,7 @@ config GNRC_GOMACH_NO_TX_ISR_US help Configure 'CONFIG_GNRC_GOMACH_NO_TX_ISR_US',the timeout duration for confirming TX-No-ISR event in GoMacH. This configuration is used to - confirm/catch a case that a transmission doesn't have its + confirm/catch a case that a transmission doesnt have its 'NETDEV_EVENT_TX_COMPLETE' interrupt event, which is considered as a hardware abnormal event. Upon this timeout expiration, GoMach will accordingly take actions to maintain its state-machine. @@ -163,12 +159,12 @@ config GNRC_GOMACH_RX_DUPCHK_UNIT_LIFE int "Life time of check-duplicate-packet in cycle count" default 30 help - Configure 'CONFIG_GNRC_GOMACH_RX_DUPCHK_UNIT_LIFE', GoMacH's + Configure 'CONFIG_GNRC_GOMACH_RX_DUPCHK_UNIT_LIFE', GoMacHs check-duplicate-packet unit life time in cycle count. In GoMacH, to avoid receiving duplicate-packet, we currently introduce a data type of - 'gnrc_gomach_dupchk_unit_t' to record the recent senders' information + 'gnrc_gomach_dupchk_unit_t' to record the recent senders information (especially MAC TX sequence). This configuration defines the - check-duplicate-packet data unit's life time in cycle count. Once + check-duplicate-packet data units life time in cycle count. Once expired, the related data unit will be reset. This configuration maybe removed in the future. @@ -206,7 +202,7 @@ config GNRC_GOMACH_T2U_RETYR_THRESHOLD help Configure 'CONFIG_GNRC_GOMACH_T2U_RETYR_THRESHOLD', maximum number of t2u attempts before dropping data packet in GoMacH. In case the - receiver's phase is unknown to the sender, the sender adopts the t2u + receivers phase is unknown to the sender, the sender adopts the t2u (transmit-to-unknown) procedure to get phase-locked with the receiver. This configuration defines the maximum t2u attempts before dropping the data packet in GoMacH. @@ -224,4 +220,4 @@ config GNRC_GOMACH_MAX_T2U_RETYR_THRESHOLD then we re-initiate the radio, trying to re-calibrate the radio for bringing it back to normal condition. -endif # KCONFIG_USEMODULE_GNRC_GOMACH +endmenu # GNRC GOMACH diff --git a/sys/net/gnrc/link_layer/gomach/gomach.c b/sys/net/gnrc/link_layer/gomach/gomach.c index 90ab50bb1326..d220327ca566 100644 --- a/sys/net/gnrc/link_layer/gomach/gomach.c +++ b/sys/net/gnrc/link_layer/gomach/gomach.c @@ -1788,53 +1788,7 @@ static void gomach_vtdma_end(gnrc_netif_t *netif) /* Switch the radio to the public-channel. */ gnrc_gomach_turn_channel(netif, netif->mac.prot.gomach.cur_pub_channel); - /* Check if there is packet to send. */ - if (gnrc_gomach_find_next_tx_neighbor(netif)) { - if (netif->mac.tx.current_neighbor == &netif->mac.tx.neighbors[0]) { - /* The packet is for broadcasting. */ - if (!gnrc_gomach_get_unintd_preamble(netif)) { - netif->mac.prot.gomach.basic_state = GNRC_GOMACH_TRANSMIT; - netif->mac.tx.transmit_state = GNRC_GOMACH_BROADCAST; - } - else { - netif->mac.rx.listen_state = GNRC_GOMACH_LISTEN_SLEEP_INIT; - } - } - else { - switch (netif->mac.tx.current_neighbor->mac_type) { - /* The packet waiting to be sent is for unicast. */ - case GNRC_GOMACH_TYPE_UNKNOWN: { - /* The neighbor's phase is unknown yet, try to run t2u (transmission - * to unknown device) procedure to phase-lock the neighbor. */ - if (!gnrc_gomach_get_unintd_preamble(netif)) { - netif->mac.prot.gomach.basic_state = GNRC_GOMACH_TRANSMIT; - netif->mac.tx.transmit_state = GNRC_GOMACH_TRANS_TO_UNKNOWN; - } - else { - netif->mac.rx.listen_state = GNRC_GOMACH_LISTEN_SLEEP_INIT; - } - } break; - case GNRC_GOMACH_TYPE_KNOWN: { - /* If the neighbor's phase is known, go to t2k (transmission - * to known device) procedure. Here, we don't worry that the t2k - * unicast transmission will interrupt with possible ongoing - * preamble transmissions of other devices. */ - netif->mac.prot.gomach.basic_state = GNRC_GOMACH_TRANSMIT; - netif->mac.tx.transmit_state = GNRC_GOMACH_TRANS_TO_KNOWN; - } break; - default: { - LOG_ERROR("ERROR: [GOMACH] vTDMA: unknown MAC type of the neighbor.\n"); - break; - } - } - } - } - else { - /* No packet to send, go to sleep. */ - netif->mac.rx.listen_state = GNRC_GOMACH_LISTEN_SLEEP_INIT; - } - - gnrc_gomach_set_update(netif, true); + _no_vtdma_after_cp(netif); } static void gomach_sleep_init(gnrc_netif_t *netif) diff --git a/sys/net/gnrc/link_layer/lorawan/Kconfig b/sys/net/gnrc/link_layer/lorawan/Kconfig index 265b8cff43f4..9fa7130a6003 100644 --- a/sys/net/gnrc/link_layer/lorawan/Kconfig +++ b/sys/net/gnrc/link_layer/lorawan/Kconfig @@ -4,21 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -config USEMODULE_GNRC_LORAWAN - bool - select HAVE_LORAWAN -menuconfig KCONFIG_USEMODULE_GNRC_LORAWAN - bool "Configure GNRC LoRaWAN" +menu "GNRC LoRaWAN" depends on USEMODULE_GNRC_LORAWAN - help - Configure GNRC LoRaWAN module using Kconfig. - -if KCONFIG_USEMODULE_GNRC_LORAWAN config GNRC_LORAWAN_MIN_SYMBOLS_TIMEOUT int "Minimum symbols to detect a LoRa preamble" default 30 range 0 1024 -endif # KCONFIG_USEMODULE_GNRC_LORAWAN +endmenu # GNRC LoRaWAN diff --git a/sys/net/gnrc/link_layer/lwmac/Kconfig b/sys/net/gnrc/link_layer/lwmac/Kconfig index 14fee34781f2..9f2a2f79cd50 100644 --- a/sys/net/gnrc/link_layer/lwmac/Kconfig +++ b/sys/net/gnrc/link_layer/lwmac/Kconfig @@ -4,13 +4,9 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_GNRC_LWMAC - bool "Configure GNRC LWMAC" - depends on USEMODULE_GNRC_LWMAC - help - Configure the GNRC LWMAC using Kconfig. -if KCONFIG_USEMODULE_GNRC_LWMAC +menu "GNRC LWMAC" + depends on USEMODULE_GNRC_LWMAC config GNRC_LWMAC_WAKEUP_INTERVAL_US int "Time between consecutive wake-ups in microseconds" @@ -56,7 +52,7 @@ config GNRC_LWMAC_WR_PREPARATION_US before it can be sent (higher with debugging output).In LWMAC, when a sender wants to send a data packet to the receiver, it starts sending the WR stream a little bit earlier (advance) to the beginning edge of - destination's wake-up phase over time. The idea is not to miss the + destinations wake-up phase over time. The idea is not to miss the wake-up period of the receiver, otherwise will lead to a long WR procedure. @@ -67,7 +63,7 @@ config GNRC_LWMAC_DATA_DELAY_US Configure 'CONFIG_GNRC_LWMAC_DATA_DELAY_US', time to wait after a WA for data to arrive in microseconds. When a node in LWMAC gets a WR during its wake-up period, it immediately replies a WA packet to the - sender for acknowledging the sender's transmission request. After + sender for acknowledging the senders transmission request. After sending the WA, the receiver waits for the data packet from the sender, with a timeout of 'CONFIG_GNRC_LWMAC_DATA_DELAY_US' duration. In case no data will be received in this period, the receiver regards @@ -75,7 +71,7 @@ config GNRC_LWMAC_DATA_DELAY_US receiver receives other unintended packets, like WR/WA packets from other neighbor communication pairs, the receiver resets this timeout and continues to wait for the data packet, with the consideration that - the sender's data transmission might be delayed due to other ongoing + the senders data transmission might be delayed due to other ongoing transmissions (the data packet is transmitted with CSMA/CA). This data timeout is long enough to catch the beginning of the packet if the transceiver supports 'NETDEV_EVENT_RX_STARTED' event (this can be @@ -138,6 +134,7 @@ config GNRC_LWMAC_TIMEOUT_COUNT help Configure 'CONFIG_GNRC_LWMAC_TIMEOUT_COUNT', the default value for the maximum number of parallel timeouts in LWMAC. + config GNRC_LWMAC_RADIO_REINIT_THRESHOLD int "Maximum preamble attempts before re-initialize radio" default 10 @@ -150,4 +147,4 @@ config GNRC_LWMAC_RADIO_REINIT_THRESHOLD then we re-initialize the radio, trying to re-calibrate the radio for bringing it back to normal condition. -endif # KCONFIG_USEMODULE_GNRC_LWMAC +endmenu # GNRC LWMAC diff --git a/sys/net/gnrc/link_layer/lwmac/lwmac.c b/sys/net/gnrc/link_layer/lwmac/lwmac.c index 786ec394d9e0..2cde9649af97 100644 --- a/sys/net/gnrc/link_layer/lwmac/lwmac.c +++ b/sys/net/gnrc/link_layer/lwmac/lwmac.c @@ -457,17 +457,8 @@ static void _sleep_management(gnrc_netif_t *netif) } } -static void _rx_management_failed(gnrc_netif_t *netif) +static void _rx_management_attempt_sleep(gnrc_netif_t *netif) { - /* This may happen frequently because we'll receive WA from - * every node in range. */ - LOG_DEBUG("[LWMAC] Reception was NOT successful\n"); - gnrc_lwmac_rx_stop(netif); - - if (netif->mac.rx.rx_bad_exten_count >= CONFIG_GNRC_LWMAC_MAX_RX_EXTENSION_NUM) { - gnrc_lwmac_set_quit_rx(netif, true); - } - /* Here we check if we are close to the end of the cycle. If yes, * go to sleep. Firstly, get the relative phase. */ uint32_t phase = rtt_get_counter(); @@ -492,6 +483,20 @@ static void _rx_management_failed(gnrc_netif_t *netif) } } +static void _rx_management_failed(gnrc_netif_t *netif) +{ + /* This may happen frequently because we'll receive WA from + * every node in range. */ + LOG_DEBUG("[LWMAC] Reception was NOT successful\n"); + gnrc_lwmac_rx_stop(netif); + + if (netif->mac.rx.rx_bad_exten_count >= CONFIG_GNRC_LWMAC_MAX_RX_EXTENSION_NUM) { + gnrc_lwmac_set_quit_rx(netif, true); + } + + _rx_management_attempt_sleep(netif); +} + static void _rx_management_success(gnrc_netif_t *netif) { LOG_DEBUG("[LWMAC] Reception was successful\n"); @@ -499,28 +504,7 @@ static void _rx_management_success(gnrc_netif_t *netif) /* Dispatch received packets, timing is not critical anymore */ gnrc_mac_dispatch(&netif->mac.rx); - /* Here we check if we are close to the end of the cycle. If yes, - * go to sleep. Firstly, get the relative phase. */ - uint32_t phase = rtt_get_counter(); - if (phase < netif->mac.prot.lwmac.last_wakeup) { - phase = (RTT_US_TO_TICKS(GNRC_LWMAC_PHASE_MAX) - netif->mac.prot.lwmac.last_wakeup) + - phase; - } - else { - phase = phase - netif->mac.prot.lwmac.last_wakeup; - } - /* If the relative phase is beyond 4/5 cycle time, go to sleep. */ - if (phase > (4 * RTT_US_TO_TICKS(CONFIG_GNRC_LWMAC_WAKEUP_INTERVAL_US) / 5)) { - gnrc_lwmac_set_quit_rx(netif, true); - } - - if (gnrc_lwmac_get_quit_rx(netif)) { - lwmac_set_state(netif, GNRC_LWMAC_SLEEPING); - } - else { - /* Go back to LISTENING after successful reception */ - lwmac_set_state(netif, GNRC_LWMAC_LISTENING); - } + _rx_management_attempt_sleep(netif); } static void _rx_management(gnrc_netif_t *netif) diff --git a/sys/net/gnrc/link_layer/mac/Kconfig b/sys/net/gnrc/link_layer/mac/Kconfig index d507b6462218..c677b57aae2d 100644 --- a/sys/net/gnrc/link_layer/mac/Kconfig +++ b/sys/net/gnrc/link_layer/mac/Kconfig @@ -4,13 +4,9 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_GNRC_MAC - bool "Configure GNRC MAC" - depends on USEMODULE_GNRC_MAC - help - Configure the GNRC MAC using Kconfig. -if KCONFIG_USEMODULE_GNRC_MAC +menu "GNRC MAC" + depends on USEMODULE_GNRC_MAC config GNRC_MAC_RX_QUEUE_SIZE_EXP int "Exponent for the RX queue size (resulting in the queue size 2^n)" @@ -43,4 +39,4 @@ config GNRC_MAC_TX_QUEUE_SIZE_EXP config GNRC_MAC_DISABLE_DUTYCYCLE_RECORD bool "Disable MAC radio duty-cycle recording and displaying" -endif # KCONFIG_USEMODULE_GNRC_MAC +endmenu # GNRC MAC diff --git a/sys/net/gnrc/netif/Kconfig b/sys/net/gnrc/netif/Kconfig index 27570d65ddbc..a77bc9fd964c 100644 --- a/sys/net/gnrc/netif/Kconfig +++ b/sys/net/gnrc/netif/Kconfig @@ -4,13 +4,8 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_GNRC_NETIF - bool "Configure GNRC network interface" +menu "GNRC network interface" depends on USEMODULE_GNRC_NETIF - help - Configure GNRC network interface using Kconfig. - -if KCONFIG_USEMODULE_GNRC_NETIF config GNRC_NETIF_MSG_QUEUE_SIZE_EXP int "Exponent for the message queue size for network interface threads (as 2^n)" @@ -27,7 +22,7 @@ config GNRC_NETIF_IPV6_ADDRS_NUMOF help If you change this, please make sure that @ref CONFIG_GNRC_NETIF_IPV6_GROUPS_NUMOF is also large enough to fit the - addresses' solicited nodes multicast addresses. + addresses solicited nodes multicast addresses. Default: 2 (1 link-local + 1 global address). config GNRC_NETIF_DEFAULT_HL @@ -69,6 +64,6 @@ config GNRC_NETIF_IPV6_BR_AUTO_6CTX When set, 6LoWPAN compression context 0 will be automatically set for the prefix configured by prefix deligation at the border router. -endif # KCONFIG_USEMODULE_GNRC_NETIF +endmenu # GNRC network interface rsource "pktq/Kconfig" diff --git a/sys/net/gnrc/netif/pktq/Kconfig b/sys/net/gnrc/netif/pktq/Kconfig index f7c28cded949..a4c7fde71c47 100644 --- a/sys/net/gnrc/netif/pktq/Kconfig +++ b/sys/net/gnrc/netif/pktq/Kconfig @@ -1,20 +1,15 @@ -menuconfig KCONFIG_USEMODULE_GNRC_NETIF_PKTQ - bool "Configure packet queues for GNRC network interface" +menu "packet queues for GNRC network interface" depends on USEMODULE_GNRC_NETIF_PKTQ - help - Configure packet queues for GNRC network interface using Kconfig. -if KCONFIG_USEMODULE_GNRC_NETIF_PKTQ config GNRC_NETIF_PKTQ_POOL_SIZE int "Packet queue pool size for all network interfaces" - depends on USEMODULE_GNRC_NETIF_PKTQ default 16 config GNRC_NETIF_PKTQ_TIMER_US int "Time in microseconds for when to try to send a queued packet at the latest" - depends on USEMODULE_GNRC_NETIF_PKTQ default 5000 help Set to -1 to deactivate dequeuing by timer. For this it has to be ensured that none of the notifications by the driver are missed! -endif # KCONFIG_USEMODULE_GNRC_NETIF_PKTQ + +endmenu # packet queues for GNRC network interface diff --git a/sys/net/gnrc/network_layer/ipv6/Kconfig b/sys/net/gnrc/network_layer/ipv6/Kconfig index cb2396e9eed9..689aec9f1049 100644 --- a/sys/net/gnrc/network_layer/ipv6/Kconfig +++ b/sys/net/gnrc/network_layer/ipv6/Kconfig @@ -6,13 +6,8 @@ # menu "IPv6" -menuconfig KCONFIG_USEMODULE_GNRC_IPV6 - bool "Configure GNRC IPv6 module" +menu "GNRC IPv6 module" depends on USEMODULE_GNRC_IPV6 - help - Configure GNRC IPv6 module using Kconfig. - -if KCONFIG_USEMODULE_GNRC_IPV6 config GNRC_IPV6_MSG_QUEUE_SIZE_EXP int "Exponent for the message queue size used for the IPv6 thread (as 2^n)" @@ -42,10 +37,10 @@ config GNRC_IPV6_STATIC_LLADDR_IS_FIXED bool "Same link-local address on every interface" depends on GNRC_IPV6_STATIC_LLADDR_ENABLE help - Don't add the interface PID to the least significant byte + Dont add the interface PID to the least significant byte of the address. -endif # KCONFIG_USEMODULE_GNRC_IPV6 +endmenu # GNRC IPv6 module rsource "blacklist/Kconfig" rsource "ext/frag/Kconfig" diff --git a/sys/net/gnrc/network_layer/ipv6/blacklist/Kconfig b/sys/net/gnrc/network_layer/ipv6/blacklist/Kconfig index 6e0ae8cc1a95..1c3b44a0abb0 100644 --- a/sys/net/gnrc/network_layer/ipv6/blacklist/Kconfig +++ b/sys/net/gnrc/network_layer/ipv6/blacklist/Kconfig @@ -4,16 +4,11 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_GNRC_IPV6_BLACKLIST - bool "Configure GNRC IPv6 Blacklisting" +menu "GNRC IPv6 Blacklisting" depends on USEMODULE_GNRC_IPV6_BLACKLIST - help - Configure GNRC IPv6 Blacklisting module using Kconfig. - -if KCONFIG_USEMODULE_GNRC_IPV6_BLACKLIST config GNRC_IPV6_BLACKLIST_SIZE int "Maximum size of the blacklist" default 8 -endif # KCONFIG_USEMODULE_GNRC_IPV6_BLACKLIST +endmenu # GNRC IPv6 Blacklisting diff --git a/sys/net/gnrc/network_layer/ipv6/ext/frag/Kconfig b/sys/net/gnrc/network_layer/ipv6/ext/frag/Kconfig index 65323f4e85d5..af21f73f477a 100644 --- a/sys/net/gnrc/network_layer/ipv6/ext/frag/Kconfig +++ b/sys/net/gnrc/network_layer/ipv6/ext/frag/Kconfig @@ -4,13 +4,8 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_GNRC_IPV6_EXT_FRAG - bool "Configure GNRC IPv6 fragmentation and reassembly" +menu "GNRC IPv6 fragmentation and reassembly" depends on USEMODULE_GNRC_IPV6_EXT_FRAG - help - Configure GNRC IPv6 fragmentation and reassembly via Kconfig. - -if KCONFIG_USEMODULE_GNRC_IPV6_EXT_FRAG config GNRC_IPV6_EXT_FRAG_SEND_SIZE int "Number of entries IPv6 in the send buffer" @@ -47,4 +42,4 @@ config GNRC_IPV6_EXT_FRAG_RBUF_DO_NOT_OVERRIDE entry when a fragment for a new datagram is received. When set to 1, no entry will be overwritten (they will still timeout normally) -endif # KCONFIG_USEMODULE_GNRC_IPV6_EXT_FRAG +endmenu # GNRC IPv6 fragmentation and reassembly diff --git a/sys/net/gnrc/network_layer/ipv6/nib/Kconfig b/sys/net/gnrc/network_layer/ipv6/nib/Kconfig index 9bad4fa94632..bf87ffdcd224 100644 --- a/sys/net/gnrc/network_layer/ipv6/nib/Kconfig +++ b/sys/net/gnrc/network_layer/ipv6/nib/Kconfig @@ -4,10 +4,8 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_GNRC_IPV6_NIB - bool "Configure GNRC IPv6 NIB" - -if KCONFIG_USEMODULE_GNRC_IPV6_NIB +menu "GNRC IPv6 NIB" + depends on USEMODULE_GNRC_IPV6_NIB config GNRC_IPV6_NIB_6LBR bool "6LoWPAN border router features" @@ -57,7 +55,7 @@ config GNRC_IPV6_NIB_DNS config GNRC_IPV6_NIB_ADV_ROUTER bool "Activate router advertising at interface start-up" - default n if MODULE_DHCPV6_CLIENT_IA_PD || USEMODULE_GNRC_UHCPC + default n if USEMODULE_DHCPV6_CLIENT_IA_PD || USEMODULE_GNRC_UHCPC default n if USEMODULE_GNRC_IPV6_AUTO_SUBNETS default y if GNRC_IPV6_NIB_ROUTER && (!GNRC_IPV6_NIB_6LR || GNRC_IPV6_NIB_6LBR) @@ -84,7 +82,7 @@ config GNRC_IPV6_NIB_MULTIHOP_P6C config GNRC_IPV6_NIB_NO_RTR_SOL bool "Disable router solicitations" help - @warning Only set this if you know what you're doing. + @warning Only set this if you know what youre doing. if GNRC_IPV6_NIB_NO_RTR_SOL comment "Disabling router solicitations will make your host have to wait longer" @@ -134,4 +132,4 @@ comment "Warning: Behavior for more than 2 Authoritative Border Router entries" comment "is currently not specified or tested." endif -endif # KCONFIG_USEMODULE_GNRC_IPV6_NIB +endmenu # GNRC IPv6 NIB diff --git a/sys/net/gnrc/network_layer/ipv6/static_addr/Kconfig b/sys/net/gnrc/network_layer/ipv6/static_addr/Kconfig index 539682dd25a7..a00a179c0f30 100644 --- a/sys/net/gnrc/network_layer/ipv6/static_addr/Kconfig +++ b/sys/net/gnrc/network_layer/ipv6/static_addr/Kconfig @@ -4,13 +4,8 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_GNRC_IPV6_STATIC_ADDR - bool "Configure static IPv6 addresses and routes" +menu "Static IPv6 addresses and routes" depends on USEMODULE_GNRC_IPV6_STATIC_ADDR - help - Configure GNRC IPv6 Whitelisting module using Kconfig. - -if KCONFIG_USEMODULE_GNRC_IPV6_STATIC_ADDR config GNRC_IPV6_STATIC_ADDR string "Static IPv6 address of the upstream interface" @@ -31,4 +26,4 @@ config GNRC_IPV6_STATIC_ADDR_DOWNSTREAM config GNRC_IPV6_STATIC_DEFAULT_ROUTER string "Static IPv6 address of the default router" -endif # KCONFIG_USEMODULE_GNRC_IPV6_STATIC_ADDR +endmenu # Static IPv6 addresses and routes diff --git a/sys/net/gnrc/network_layer/ipv6/whitelist/Kconfig b/sys/net/gnrc/network_layer/ipv6/whitelist/Kconfig index a40bc7e9173c..f9e8cd93f026 100644 --- a/sys/net/gnrc/network_layer/ipv6/whitelist/Kconfig +++ b/sys/net/gnrc/network_layer/ipv6/whitelist/Kconfig @@ -4,16 +4,11 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_GNRC_IPV6_WHITELIST - bool "Configure GNRC IPv6 Whitelisting" +menu "GNRC IPv6 Whitelisting" depends on USEMODULE_GNRC_IPV6_WHITELIST - help - Configure GNRC IPv6 Whitelisting module using Kconfig. - -if KCONFIG_USEMODULE_GNRC_IPV6_WHITELIST config GNRC_IPV6_WHITELIST_SIZE int "Maximum size of the whitelist" default 8 -endif # KCONFIG_USEMODULE_GNRC_IPV6_WHITELIST +endmenu # GNRC IPv6 Whitelisting diff --git a/sys/net/gnrc/network_layer/sixlowpan/Kconfig b/sys/net/gnrc/network_layer/sixlowpan/Kconfig index 2a1855e8972c..2600f2d7a8bd 100644 --- a/sys/net/gnrc/network_layer/sixlowpan/Kconfig +++ b/sys/net/gnrc/network_layer/sixlowpan/Kconfig @@ -5,13 +5,8 @@ # directory for more details. # -menuconfig KCONFIG_USEMODULE_GNRC_SIXLOWPAN - bool "Configure GNRC 6LoWPAN" +menu "GNRC 6LoWPAN" depends on USEMODULE_GNRC_SIXLOWPAN - help - Configure GNRC 6LoWPAN module using Kconfig. - -if KCONFIG_USEMODULE_GNRC_SIXLOWPAN rsource "frag/Kconfig" rsource "nd/Kconfig" @@ -24,4 +19,4 @@ config GNRC_SIXLOWPAN_MSG_QUEUE_SIZE_EXP represents the exponent of 2^n, which will be used as the size of the queue. -endif # KCONFIG_USEMODULE_GNRC_SIXLOWPAN +endmenu # GNRC 6LoWPAN diff --git a/sys/net/gnrc/network_layer/sixlowpan/frag/fb/Kconfig b/sys/net/gnrc/network_layer/sixlowpan/frag/fb/Kconfig index 745485b9dab2..f0f389a39f65 100644 --- a/sys/net/gnrc/network_layer/sixlowpan/frag/fb/Kconfig +++ b/sys/net/gnrc/network_layer/sixlowpan/frag/fb/Kconfig @@ -4,20 +4,15 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_GNRC_SIXLOWPAN_FRAG_FB - bool "Configure GNRC 6LoWPAN Fragmentation buffer" +menu "GNRC 6LoWPAN Fragmentation buffer" depends on USEMODULE_GNRC_SIXLOWPAN_FRAG_FB - help - Configure GNRC 6LoWPAN Fragmentation buffer using Kconfig. - -if KCONFIG_USEMODULE_GNRC_SIXLOWPAN_FRAG_FB config GNRC_SIXLOWPAN_FRAG_FB_SIZE int "Number of datagrams that can be fragmented simultaneously" - default 4 if MODULE_GNRC_SIXLOWPAN_FRAG_SFR + default 4 if USEMODULE_GNRC_SIXLOWPAN_FRAG_SFR default 1 help This determines the number of @ref gnrc_sixlowpan_frag_fb_t instances available. -endif # KCONFIG_USEMODULE_GNRC_SIXLOWPAN_FRAG_FB +endmenu # GNRC 6LoWPAN Fragmentation buffer diff --git a/sys/net/gnrc/network_layer/sixlowpan/frag/rb/Kconfig b/sys/net/gnrc/network_layer/sixlowpan/frag/rb/Kconfig index 9070ff076cd6..74e91b1fd749 100644 --- a/sys/net/gnrc/network_layer/sixlowpan/frag/rb/Kconfig +++ b/sys/net/gnrc/network_layer/sixlowpan/frag/rb/Kconfig @@ -4,13 +4,8 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_GNRC_SIXLOWPAN_FRAG_RB - bool "Configure GNRC 6LoWPAN Reassembly buffer" +menu "GNRC 6LoWPAN Reassembly buffer" depends on USEMODULE_GNRC_SIXLOWPAN_FRAG_RB - help - Configure GNRC 6LoWPAN Reassembly buffer using Kconfig. - -if KCONFIG_USEMODULE_GNRC_SIXLOWPAN_FRAG_RB config GNRC_SIXLOWPAN_FRAG_RBUF_SIZE int "Size of the reassembly buffer" @@ -39,4 +34,4 @@ config GNRC_SIXLOWPAN_FRAG_RBUF_DEL_TIMER of a reassembly buffer entry on late arriving link-layer uplicates. -endif # KCONFIG_USEMODULE_GNRC_SIXLOWPAN_FRAG_RB +endmenu # GNRC 6LoWPAN Reassembly buffer diff --git a/sys/net/gnrc/network_layer/sixlowpan/frag/sfr/Kconfig b/sys/net/gnrc/network_layer/sixlowpan/frag/sfr/Kconfig index e73248eab4db..7b1098d0afdc 100644 --- a/sys/net/gnrc/network_layer/sixlowpan/frag/sfr/Kconfig +++ b/sys/net/gnrc/network_layer/sixlowpan/frag/sfr/Kconfig @@ -4,13 +4,8 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_GNRC_SIXLOWPAN_FRAG_SFR - bool "Configure GNRC 6LoWPAN Selective Fragment Recovery" +menu "GNRC 6LoWPAN Selective Fragment Recovery" depends on USEMODULE_GNRC_SIXLOWPAN_FRAG_SFR - help - Configure GNRC 6LoWPAN Selective Fragement Recovery using Kconfig. - -if KCONFIG_USEMODULE_GNRC_SIXLOWPAN_FRAG_SFR config GNRC_SIXLOWPAN_SFR_MIN_FRAG_SIZE int "Default minimum value for fragment size (MinFragmentSize)" @@ -34,7 +29,7 @@ config GNRC_SIXLOWPAN_SFR_OPT_FRAG_SIZE config GNRC_SIXLOWPAN_SFR_USE_ECN bool "Indicates whether the sender should react to Explicit Content Notification (UseECN)" - default true if KCONFIG_USEMODULE_GNRC_SIXLOWPAN_FRAG_SFR_CONGURE + default true if USEMODULE_GNRC_SIXLOWPAN_FRAG_SFR_CONGURE default false help When the sender reacts to Explicit Congestion Notification (ECN) its @@ -42,7 +37,7 @@ config GNRC_SIXLOWPAN_SFR_USE_ECN CONFIG_GNRC_SIXLOWPAN_SFR_MIN_WIN_SIZE and @ref CONFIG_GNRC_SIXLOWPAN_SFR_MAX_WIN_SIZE. -if GNRC_SIXLOWPAN_SFR_USE_ECN && !KCONFIG_USEMODULE_GNRC_SIXLOWPAN_FRAG_SFR_CONGURE +if GNRC_SIXLOWPAN_SFR_USE_ECN && !USEMODULE_GNRC_SIXLOWPAN_FRAG_SFR_CONGURE comment "Warning: Reaction to ECN requires module `gnrc_sixlowpan_frag_sfr_congure`" endif @@ -99,11 +94,9 @@ config GNRC_SIXLOWPAN_SFR_DG_RETRIES int "The maximum number of retries from scratch for a particular datagram (MaxDatagramRetries)" default 0 -menuconfig KCONFIG_USEMODULE_GNRC_SIXLOWPAN_FRAG_SFR_ECN_IF_IN - bool "Configure SFR ECN based on the message queue of the incoming netif" +menu "SFR ECN based on the message queue of the incoming netif" depends on USEMODULE_GNRC_SIXLOWPAN_FRAG_SFR_ECN_IF_IN -if KCONFIG_USEMODULE_GNRC_SIXLOWPAN_FRAG_SFR_ECN_IF_IN config GNRC_SIXLOWPAN_SFR_ECN_IF_IN_NUM int "The numerator for the factor for when to mark ECN on incoming netif queue state" default 1 @@ -121,13 +114,11 @@ config GNRC_SIXLOWPAN_SFR_ECN_IF_IN_DEN ECN bit of an RFRAG header when the message queue of the incoming `netif` is filled by @ref CONFIG_GNRC_SIXLOWPAN_SFR_ECN_IF_IN_NUM / @ref CONFIG_GNRC_SIXLOWPAN_SFR_ECN_IF_IN_DEN -endif +endmenu # SFR ECN based on the message queue of the incoming netif -menuconfig KCONFIG_USEMODULE_GNRC_SIXLOWPAN_FRAG_SFR_ECN_IF_OUT - bool "Configure SFR ECN based on the output queue of the outgoing netif" +menu "SFR ECN based on the output queue of the outgoing netif" depends on USEMODULE_GNRC_SIXLOWPAN_FRAG_SFR_ECN_IF_OUT -if KCONFIG_USEMODULE_GNRC_SIXLOWPAN_FRAG_SFR_ECN_IF_OUT config GNRC_SIXLOWPAN_SFR_ECN_IF_OUT_NUM int "The numerator for the factor for when to mark ECN on the outgoing netif's output queue state" default 1 @@ -145,13 +136,11 @@ config GNRC_SIXLOWPAN_SFR_ECN_IF_OUT_DEN ECN bit of an RFRAG header when the output queue of the outgoing `netif` is filled by @ref CONFIG_GNRC_SIXLOWPAN_SFR_ECN_IF_OUT_NUM / @ref CONFIG_GNRC_SIXLOWPAN_SFR_ECN_IF_OUT_DEN -endif +endmenu # SFR ECN based on the output queue of the outgoing netif -menuconfig KCONFIG_USEMODULE_GNRC_SIXLOWPAN_FRAG_SFR_ECN_FQUEUE - bool "Configure SFR ECN based on SFR's frame queue" +menu "SFR ECN based on SFR's frame queue" depends on USEMODULE_GNRC_SIXLOWPAN_FRAG_SFR_ECN_FQUEUE -if KCONFIG_USEMODULE_GNRC_SIXLOWPAN_FRAG_SFR_ECN_FQUEUE config GNRC_SIXLOWPAN_SFR_ECN_FQUEUE_NUM int "The numerator for the factor for when to mark ECN on frame queue state" default 1 @@ -167,14 +156,13 @@ config GNRC_SIXLOWPAN_SFR_ECN_FQUEUE_DEN When `gnrc_sixlowpan_frag_sfr_ecn_fqueue` is compiled in, nodes will set the ECN bit of an RFRAG header when the frame queue for SFR is filled by @ref CONFIG_GNRC_SIXLOWPAN_SFR_ECN_FQUEUE_NUM / @ref CONFIG_GNRC_SIXLOWPAN_SFR_ECN_FQUEUE_DEN -endif +endmenu # SFR ECN based on SFR's frame queue config GNRC_SIXLOWPAN_SFR_MOCK_ARQ_TIMER bool "Deactivate automatic handling of ARQ timer" - default n help This requires an external source (e.g. a test application) to call @ref gnrc_sixlowpan_frag_sfr_arq_timeout() for @ref net_gnrc_sixlowpan_frag_sfr to still work properly. -endif +endmenu # GNRC 6LoWPAN Selective Fragment Recovery diff --git a/sys/net/gnrc/network_layer/sixlowpan/frag/vrb/Kconfig b/sys/net/gnrc/network_layer/sixlowpan/frag/vrb/Kconfig index f0dd1711763d..360eb8aadad8 100644 --- a/sys/net/gnrc/network_layer/sixlowpan/frag/vrb/Kconfig +++ b/sys/net/gnrc/network_layer/sixlowpan/frag/vrb/Kconfig @@ -4,13 +4,8 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_GNRC_SIXLOWPAN_FRAG_VRB - bool "Configure GNRC 6LoWPAN Virtual reassembly buffer" +menu "GNRC 6LoWPAN Virtual reassembly buffer" depends on USEMODULE_GNRC_SIXLOWPAN_FRAG_VRB - help - Configure GNRC 6LoWPAN Virtual reassembly buffer module using Kconfig. - -if KCONFIG_USEMODULE_GNRC_SIXLOWPAN_FRAG_VRB config GNRC_SIXLOWPAN_FRAG_VRB_SIZE int "Size of the virtual reassembly buffer" @@ -23,4 +18,4 @@ config GNRC_SIXLOWPAN_FRAG_VRB_TIMEOUT_US int "Timeout for a virtual reassembly buffer entry in microseconds" default 3000000 -endif # KCONFIG_USEMODULE_GNRC_SIXLOWPAN_FRAG_VRB +endmenu # GNRC 6LoWPAN Virtual reassembly buffer diff --git a/sys/net/gnrc/network_layer/sixlowpan/nd/Kconfig b/sys/net/gnrc/network_layer/sixlowpan/nd/Kconfig index 3d19af8515b5..2b1e7ea7b060 100644 --- a/sys/net/gnrc/network_layer/sixlowpan/nd/Kconfig +++ b/sys/net/gnrc/network_layer/sixlowpan/nd/Kconfig @@ -4,13 +4,8 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_GNRC_SIXLOWPAN_ND - bool "Configure GNRC 6LoWPAN Neighbor Discovery" +menu "GNRC 6LoWPAN Neighbor Discovery" depends on USEMODULE_GNRC_SIXLOWPAN_ND - help - Configure GNRC 6LoWPAN Neighbor Discovery module using Kconfig. - -if KCONFIG_USEMODULE_GNRC_SIXLOWPAN_ND config GNRC_SIXLOWPAN_ND_AR_LTIME int "Registration lifetime for the address registration option in minutes" @@ -21,4 +16,4 @@ config GNRC_SIXLOWPAN_ND_AR_LTIME greater than the time the device spends sleeping. See RFC 6775, section 5.8.1. -endif # KCONFIG_USEMODULE_GNRC_SIXLOWPAN_ND +endmenu # GNRC 6LoWPAN Neighbor Discovery diff --git a/sys/net/gnrc/pktbuf/Kconfig b/sys/net/gnrc/pktbuf/Kconfig index 6ad325d62436..b327d7d11c06 100644 --- a/sys/net/gnrc/pktbuf/Kconfig +++ b/sys/net/gnrc/pktbuf/Kconfig @@ -4,13 +4,8 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_GNRC_PKTBUF_STATIC - bool "Configure the GNRC Packet Buffer" +menu "GNRC Packet Buffer" depends on USEMODULE_GNRC_PKTBUF_STATIC - help - Configure the GNRC_PKTBUF using Kconfig. - -if KCONFIG_USEMODULE_GNRC_PKTBUF_STATIC config GNRC_PKTBUF_SIZE int "Maximum size of the static packet buffer" @@ -21,4 +16,4 @@ config GNRC_PKTBUF_SIZE packets (2 incoming, 2 outgoing; 2 * 2 * 1280 B = 5 KiB) + Meta-Data (roughly estimated to 1 KiB; might be smaller). -endif # KCONFIG_USEMODULE_GNRC_PKTBUF_STATIC +endmenu # GNRC Packet Buffer diff --git a/sys/net/gnrc/pktdump/Kconfig b/sys/net/gnrc/pktdump/Kconfig index 6509a293c9dd..a0b631143bc1 100644 --- a/sys/net/gnrc/pktdump/Kconfig +++ b/sys/net/gnrc/pktdump/Kconfig @@ -4,13 +4,8 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_GNRC_PKTDUMP - bool "Configure GNRC Packet Dump" +menu "GNRC Packet Dump" depends on USEMODULE_GNRC_PKTDUMP - help - Configure the GNRC_PKTDUMP using Kconfig. - -if KCONFIG_USEMODULE_GNRC_PKTDUMP config GNRC_PKTDUMP_MSG_QUEUE_SIZE_EXP int "Exponent for the queue size (resulting in the queue size 2^n)" @@ -20,4 +15,4 @@ config GNRC_PKTDUMP_MSG_QUEUE_SIZE_EXP represents the exponent of 2^n, which will be used as the size of the queue. -endif # KCONFIG_USEMODULE_GNRC_PKTDUMP +endmenu # GNRC Packet Dump diff --git a/sys/net/gnrc/routing/rpl/Kconfig b/sys/net/gnrc/routing/rpl/Kconfig index 8c3a3d944cee..f6363cd9b0d5 100644 --- a/sys/net/gnrc/routing/rpl/Kconfig +++ b/sys/net/gnrc/routing/rpl/Kconfig @@ -5,12 +5,9 @@ # directory for more details. # -menuconfig KCONFIG_USEMODULE_GNRC_RPL - bool "Configure RPL routing protocol" +menu "RPL routing protocol" depends on USEMODULE_GNRC_RPL -if KCONFIG_USEMODULE_GNRC_RPL - menu "Trickle parameters" config GNRC_RPL_DEFAULT_DIO_INTERVAL_DOUBLINGS @@ -151,4 +148,4 @@ config GNRC_RPL_MSG_QUEUE_SIZE_EXP represents the exponent of 2^n, which will be used as the size of the queue. -endif # KCONFIG_USEMODULE_GNRC_RPL +endmenu # RPL routing protocol diff --git a/sys/net/gnrc/transport_layer/tcp/Kconfig b/sys/net/gnrc/transport_layer/tcp/Kconfig index 923eb60dedb4..474509ad0351 100644 --- a/sys/net/gnrc/transport_layer/tcp/Kconfig +++ b/sys/net/gnrc/transport_layer/tcp/Kconfig @@ -4,13 +4,9 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_GNRC_TCP - bool "Configure GNRC_TCP" - depends on USEMODULE_GNRC_TCP - help - Configure the GNRC_TCP using Kconfig. -if KCONFIG_USEMODULE_GNRC_TCP +menu "GNRC_TCP" + depends on USEMODULE_GNRC_TCP config GNRC_TCP_CONNECTION_TIMEOUT_DURATION_MS int "Timeout duration for user calls in milliseconds" @@ -153,4 +149,4 @@ config GNRC_TCP_EXPERIMENTAL_DYN_MSL_RTO_MUL This is the factor that is multiplied with the current retransmission timeout value to determine the MSL value. -endif # KCONFIG_USEMODULE_GNRC_TCP +endmenu # GNRC_TCP diff --git a/sys/net/link_layer/Kconfig b/sys/net/link_layer/Kconfig index 7b0c2c779420..0c716c52757a 100644 --- a/sys/net/link_layer/Kconfig +++ b/sys/net/link_layer/Kconfig @@ -5,8 +5,6 @@ # directory for more details. rsource "csma_sender/Kconfig" -rsource "eui_provider/Kconfig" rsource "ieee802154/Kconfig" rsource "l2filter/Kconfig" -rsource "l2util/Kconfig" rsource "Kconfig.lorawan" diff --git a/sys/net/link_layer/Kconfig.lorawan b/sys/net/link_layer/Kconfig.lorawan index fcf6c201c965..7fb38aa77e9d 100644 --- a/sys/net/link_layer/Kconfig.lorawan +++ b/sys/net/link_layer/Kconfig.lorawan @@ -1,22 +1,5 @@ -# Copyright (c) 2020 Freie Universitaet Berlin -# -# 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 HAVE_LORAWAN - bool - help - Indicates that LoRaWAN support is present. - -menuconfig KCONFIG_USEMODULE_LORAWAN - bool "Configure LoRaWAN MAC" - depends on HAVE_LORAWAN - help - Configure LoRaWAN module using Kconfig. This may override configurations - in LoRa PHY. - -if KCONFIG_USEMODULE_LORAWAN +menu "LoRaWAN MAC" + depends on USEMODULE_LORAWAN choice bool "Channel plan" @@ -588,4 +571,4 @@ config LORAMAC_DEFAULT_REDUNDANCY By default, uplinks are sent without retransmissions (this means, the device sends only one uplink packet) -endif # KCONFIG_USEMODULE_LORAWAN +endmenu # LoRaWAN MAC diff --git a/sys/net/link_layer/csma_sender/Kconfig b/sys/net/link_layer/csma_sender/Kconfig index 115b7179ae3a..176572dc9b57 100644 --- a/sys/net/link_layer/csma_sender/Kconfig +++ b/sys/net/link_layer/csma_sender/Kconfig @@ -4,13 +4,8 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_CSMA_SENDER - bool "Configure CSMA sender" +menu "CSMA sender" depends on USEMODULE_CSMA_SENDER - help - Configure the CSMA_SENDER using Kconfig. - -if KCONFIG_USEMODULE_CSMA_SENDER config CSMA_SENDER_MIN_BE_DEFAULT int "Exponent for minimum CSMA/CA backoff time" @@ -39,4 +34,4 @@ config CSMA_SENDER_BACKOFF_PERIOD_UNIT Configure 'CONFIG_CSMA_SENDER_BACKOFF_PERIOD_UNIT'. Maximum and Minimum CSMA backoff time depends on unit times the value of this configuration. -endif # KCONFIG_USEMODULE_CSMA_SENDER +endmenu # CSMA sender diff --git a/sys/net/link_layer/eui_provider/Kconfig b/sys/net/link_layer/eui_provider/Kconfig deleted file mode 100644 index dee210b65cac..000000000000 --- a/sys/net/link_layer/eui_provider/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# 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_EUI_PROVIDER - bool "IEEE EUI-48/64 provider" - depends on TEST_KCONFIG - select MODULE_LUID diff --git a/sys/net/link_layer/ieee802154/Kconfig b/sys/net/link_layer/ieee802154/Kconfig index c44d93c510cd..85e6518e64ed 100644 --- a/sys/net/link_layer/ieee802154/Kconfig +++ b/sys/net/link_layer/ieee802154/Kconfig @@ -4,187 +4,158 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. -menuconfig MODULE_IEEE802154 - bool "IEEE 802.15.4 support" - depends on TEST_KCONFIG - -if MODULE_IEEE802154 +menu "IEEE802.15.4" + depends on USEMODULE_IEEE802154 -config MODULE_IEEE802154_SECURITY - bool "IEEE 802.15.4 security" - select MODULE_CRYPTO - select MODULE_CIPHER_MODES +choice + bool "IEEE802.15.4 default PHY mode" + default IEEE802154_DEFAULT_PHY_OQPSK help - IEEE 802.15.4 security interface + IEEE802.15.4 default mode -config MODULE_IEEE802154_SUBMAC - bool "IEEE 802.15.4 submac" - select ZTIMER_USEC - help - This module defines a common layer for handling the lower part of the IEEE 802.15.4 MAC layer. + config IEEE802154_DEFAULT_PHY_BPSK + bool "BPSK" + help + Binary Phase Shift Keying -endif # MODULE_IEEE802154 + config IEEE802154_DEFAULT_PHY_ASK + bool "ASK" + help + Amplitude-Shift Keying -menuconfig KCONFIG_USEMODULE_IEEE802154 - bool "Configure IEEE802.15.4" - depends on USEMODULE_IEEE802154 - help - Configure IEEE802.15.4 module using Kconfig + config IEEE802154_DEFAULT_PHY_OQPSK + bool "O-QPSK" + help + Offset Quadrature Phase-Shift Keying -if KCONFIG_USEMODULE_IEEE802154 + config IEEE802154_DEFAULT_PHY_MR_OQPSK + bool "MR-O-QPSK" + help + Multi-Rate Offset Quadrature Phase-Shift Keying - choice - bool "IEEE802.15.4 default PHY mode" - default IEEE802154_DEFAULT_PHY_OQPSK + config IEEE802154_DEFAULT_PHY_MR_OFDM + bool "MR-OFDM" help - IEEE802.15.4 default mode - - config IEEE802154_DEFAULT_PHY_BPSK - bool "BPSK" - help - Binary Phase Shift Keying - - config IEEE802154_DEFAULT_PHY_ASK - bool "ASK" - help - Amplitude-Shift Keying - - config IEEE802154_DEFAULT_PHY_OQPSK - bool "O-QPSK" - help - Offset Quadrature Phase-Shift Keying - - config IEEE802154_DEFAULT_PHY_MR_OQPSK - bool "MR-O-QPSK" - help - Multi-Rate Offset Quadrature Phase-Shift Keying - - config IEEE802154_DEFAULT_PHY_MR_OFDM - bool "MR-OFDM" - help - Multi-Rate Orthogonal Frequency-Division Multiplexing - - config IEEE802154_DEFAULT_PHY_MR_FSK - bool "MR-FSK" - help - Multi-Rate Frequency Shift Keying - - endchoice # IEEE802.15.4 default PHY mode - - config IEEE802154_DEFAULT_SUBGHZ_CHANNEL - int "IEEE802.15.4 default sub-GHZ channel" - default 5 - - config IEEE802154_DEFAULT_SUBGHZ_PAGE - int "IEEE802.15.4 default sub-GHZ page" - default 2 - - config IEEE802154_DEFAULT_CHANNEL - int "IEEE802.15.4 default channel" - default 26 - - config IEEE802154_DEFAULT_PANID - hex "IEEE802.15.4 default PANID" - default 0x0023 - range 0x0 0xFFFF - - config IEEE802154_DEFAULT_TXPOWER - int "IEEE802.15.4 default TX power (in dBm)" - default 0 - - config IEEE802154_DEFAULT_CSMA_CA_MIN - int "IEEE802.15.4 default CSMA-CA minimum backoff exponent" - default 3 - - config IEEE802154_DEFAULT_CSMA_CA_RETRIES - int "IEEE802.15.4 default CSMA-CA maximum number of retries" - default 4 - - config IEEE802154_DEFAULT_CSMA_CA_MAX - int "IEEE802.15.4 default CSMA-CA maximum backoff exponent" - default 5 - - config IEEE802154_DEFAULT_MAX_FRAME_RETRANS - int "IEEE802.15.4 default maximum frame retransmissions" - default 4 - - config IEEE802154_AUTO_ACK_DISABLE - bool "Disable Auto ACK support" if (!USEPKG_OPENWSN && !USEPKG_OPENDSME) - default y if (USEPKG_OPENWSN || USEPKG_OPENDSME) - - config IEEE802154_DSME_CAP_REDUCTION - bool "Enable CAP reduction" if USEPKG_OPENDSME - default n if USEPKG_OPENDSME - - config IEEE802154_DSME_SUPERFRAME_ORDER - int "Set the DSME superframe order" if USEPKG_OPENDSME - default 3 + Multi-Rate Orthogonal Frequency-Division Multiplexing + + config IEEE802154_DEFAULT_PHY_MR_FSK + bool "MR-FSK" help - The SO sets the slot duration to `60 * symbol_time_us * 2^SO` usecs. - E.g for O-QPSK an SO=3 renders a slot duration of `60 * 16 * 8` = 7.6 ms and - a superframe duration of 122.88 ms. + Multi-Rate Frequency Shift Keying - Settings this value to 3 allows to transmit full IEEE 802.15.4 O-QPSK frames - (127 bytes). +endchoice # IEEE802.15.4 default PHY mode - config IEEE802154_DSME_MULTISUPERFRAME_ORDER - int "Set the DSME multisuperframe order" if USEPKG_OPENDSME - default 3 - help - The MO sets the number of superframes per multisuperframe to `2^(MO-SO)`. +config IEEE802154_DEFAULT_SUBGHZ_CHANNEL + int "IEEE802.15.4 default sub-GHZ channel" + default 5 - config IEEE802154_DSME_BEACON_ORDER - int "Set the DSME beacon order" if USEPKG_OPENDSME - default 3 - help - The BO sets the beacon interval to `2^(BO-SO)` superframes. +config IEEE802154_DEFAULT_SUBGHZ_PAGE + int "IEEE802.15.4 default sub-GHZ page" + default 2 - config IEEE802154_DSME_STATIC_GTS - bool "Use static GTS allocation" if USEPKG_OPENDSME - default 0 - help - When set, the MAC implementation will not use scheduling functions. - This requires that the upper layer allocates slots manually using NETOPT_GTS_ALLOC. +config IEEE802154_DEFAULT_CHANNEL + int "IEEE802.15.4 default channel" + default 26 - config IEEE802154_DSME_GTS_EXPIRATION - int "Set expiration time of DSME GTS slot" if USEPKG_OPENDSME - default 16 - help - Sets the expiration time of DSME GTS slot (in number of idle slots). If DSME - detects no activity, it will deallocate the GTS slot. +config IEEE802154_DEFAULT_PANID + hex "IEEE802.15.4 default PANID" + default 0x0023 + range 0x0 0xFFFF - config IEEE802154_DSME_MAC_RESPONSE_WAIT_TIME - int "Set expiration time of DSME GTS slot" if USEPKG_OPENDSME - default 244 - help - This configuration sets the maximum wait times for MAC commands (association, - DSME GTS allocation, etc). - The unit is "base superframe duration" (60 * symbol_time_us). +config IEEE802154_DEFAULT_TXPOWER + int "IEEE802.15.4 default TX power (in dBm)" + default 0 - config IEEE802154_DSME_SCAN_DURATION - int "Set the scan duration" if USEPKG_OPENDSME - default 4 - help - Set the scan duration for each channel to `60 * symbol_time_us * - (2^scanDuration + 1)` +config IEEE802154_DEFAULT_CSMA_CA_MIN + int "IEEE802.15.4 default CSMA-CA minimum backoff exponent" + default 3 - config IEEE802154_DSME_MIN_COORD_LQI - int "Set the minimum LQI to consider a beacon from a coordinator valid" if USEPKG_OPENDSME - default 100 +config IEEE802154_DEFAULT_CSMA_CA_RETRIES + int "IEEE802.15.4 default CSMA-CA maximum number of retries" + default 4 - config IEEE802154_DEFAULT_ACK_REQ - bool "Request ACKs by default" - default y +config IEEE802154_DEFAULT_CSMA_CA_MAX + int "IEEE802.15.4 default CSMA-CA maximum backoff exponent" + default 5 -menuconfig KCONFIG_USEMODULE_IEEE802154_SECURITY - bool "Configure IEEE802.15.4 Security" - depends on USEMODULE_IEEE802154_SECURITY +config IEEE802154_DEFAULT_MAX_FRAME_RETRANS + int "IEEE802.15.4 default maximum frame retransmissions" + default 4 + +config IEEE802154_AUTO_ACK_DISABLE + bool "Disable Auto ACK support" if (!USEPKG_OPENWSN && !USEPKG_OPENDSME) + default y if (USEPKG_OPENWSN || USEPKG_OPENDSME) + +config IEEE802154_DSME_CAP_REDUCTION + bool "Enable CAP reduction" if USEPKG_OPENDSME + default n if USEPKG_OPENDSME + +config IEEE802154_DSME_SUPERFRAME_ORDER + int "Set the DSME superframe order" if USEPKG_OPENDSME + default 3 + help + The SO sets the slot duration to `60 * symbol_time_us * 2^SO` usecs. + E.g for O-QPSK an SO=3 renders a slot duration of `60 * 16 * 8` = 7.6 ms and + a superframe duration of 122.88 ms. + + Settings this value to 3 allows to transmit full IEEE 802.15.4 O-QPSK frames + (127 bytes). + +config IEEE802154_DSME_MULTISUPERFRAME_ORDER + int "Set the DSME multisuperframe order" if USEPKG_OPENDSME + default 3 + help + The MO sets the number of superframes per multisuperframe to `2^(MO-SO)`. + +config IEEE802154_DSME_BEACON_ORDER + int "Set the DSME beacon order" if USEPKG_OPENDSME + default 3 + help + The BO sets the beacon interval to `2^(BO-SO)` superframes. + +config IEEE802154_DSME_STATIC_GTS + bool "Use static GTS allocation" if USEPKG_OPENDSME + default 0 + help + When set, the MAC implementation will not use scheduling functions. + This requires that the upper layer allocates slots manually using NETOPT_GTS_ALLOC. + +config IEEE802154_DSME_GTS_EXPIRATION + int "Set expiration time of DSME GTS slot" if USEPKG_OPENDSME + default 16 + help + Sets the expiration time of DSME GTS slot (in number of idle slots). If DSME + detects no activity, it will deallocate the GTS slot. + +config IEEE802154_DSME_MAC_RESPONSE_WAIT_TIME + int "Set expiration time of DSME GTS slot" if USEPKG_OPENDSME + default 244 + help + This configuration sets the maximum wait times for MAC commands (association, + DSME GTS allocation, etc). + The unit is "base superframe duration" (60 * symbol_time_us). + +config IEEE802154_DSME_SCAN_DURATION + int "Set the scan duration" if USEPKG_OPENDSME + default 4 help - Configure IEEE802.15.4 security module using Kconfig + Set the scan duration for each channel to `60 * symbol_time_us * + (2^scanDuration + 1)` + +config IEEE802154_DSME_MIN_COORD_LQI + int "Set the minimum LQI to consider a beacon from a coordinator valid" if USEPKG_OPENDSME + default 100 + +config IEEE802154_DEFAULT_ACK_REQ + bool "Request ACKs by default" + default y + +menu "IEEE802.15.4 Security" + depends on USEMODULE_IEEE802154_SECURITY config IEEE802154_SEC_DEFAULT_KEY string "Default key to be used for encryption and decryption (>=16B)" default "pizza_margherita" - depends on KCONFIG_USEMODULE_IEEE802154_SECURITY -endif # KCONFIG_USEMODULE_IEEE802154 +endmenu # IEEE802.15.4 Security +endmenu # IEEE802.15.4 diff --git a/sys/net/link_layer/l2filter/Kconfig b/sys/net/link_layer/l2filter/Kconfig index c43c12369429..868161981b5e 100644 --- a/sys/net/link_layer/l2filter/Kconfig +++ b/sys/net/link_layer/l2filter/Kconfig @@ -4,14 +4,9 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_L2FILTER - bool "Configure L2filter" - depends on USEMODULE_L2FILTER - help - Configure L2filter using Kconfig. This module is used for filtering - (allowlisting or denylisting) link layer addresses. -if KCONFIG_USEMODULE_L2FILTER +menu "L2filter" + depends on USEMODULE_L2FILTER config L2FILTER_ADDR_MAXLEN int "Maximum length of addresses that can be stored in the filter list" @@ -21,4 +16,4 @@ config L2FILTER_LISTSIZE int "Number of slots in each filter list (filter entries per device)" default 8 -endif # KCONFIG_USEMODULE_L2FILTER +endmenu # L2filter diff --git a/sys/net/link_layer/l2scan_list/Kconfig b/sys/net/link_layer/l2scan_list/Kconfig deleted file mode 100644 index accb7e2595e2..000000000000 --- a/sys/net/link_layer/l2scan_list/Kconfig +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) 2023 ML!PA Consulting Gmbh -# -# 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_L2SCAN_LIST - bool "List of scanned Link Layer access points" diff --git a/sys/net/link_layer/l2util/Kconfig b/sys/net/link_layer/l2util/Kconfig deleted file mode 100644 index 44d77fb2004b..000000000000 --- a/sys/net/link_layer/l2util/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# 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_L2UTIL - bool "Link layer utils" - select MODULE_FMT diff --git a/sys/net/lora/Kconfig b/sys/net/lora/Kconfig index f9a5b9d5d460..4ab09a69c2cb 100644 --- a/sys/net/lora/Kconfig +++ b/sys/net/lora/Kconfig @@ -5,17 +5,8 @@ # directory for more details. # -config MODULE_LORA - bool "LoRa PHY support" - depends on TEST_KCONFIG - -menuconfig KCONFIG_USEMODULE_LORA - bool "Configure LoRa PHY" +menu "LoRa PHY" depends on USEMODULE_LORA - help - Configure LoRa PHY using Kconfig. - -if KCONFIG_USEMODULE_LORA config LORA_PREAMBLE_LENGTH_DEFAULT int "Preamble length" @@ -157,4 +148,4 @@ config LORA_PAYLOAD_LENGTH_DEFAULT Configure the length of payload. The option is unused while using explicit header mode as PHDR carries the length information. -endif # KCONFIG_USEMODULE_LORA +endmenu # LoRa PHY diff --git a/sys/net/netif/Kconfig b/sys/net/netif/Kconfig index 9477f38ebd5d..80d30cc5b22d 100644 --- a/sys/net/netif/Kconfig +++ b/sys/net/netif/Kconfig @@ -4,16 +4,11 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_NETIF - bool "Configure Network Interfaces" +menu "Network Interfaces" depends on USEMODULE_NETIF - help - Configure Network Interfaces (NETIF) using Kconfig. - -if KCONFIG_USEMODULE_NETIF config NETIF_NAMELENMAX int "Maximum length for an interface name" default 8 -endif # KCONFIG_USEMODULE_NETIF +endmenu # Network Interfaces diff --git a/sys/net/network_layer/Kconfig b/sys/net/network_layer/Kconfig deleted file mode 100644 index 82fa6155fa23..000000000000 --- a/sys/net/network_layer/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# 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. -# -menu "Network Layer" - -rsource "ipv4/addr/Kconfig" -rsource "ipv6/addr/Kconfig" - -endmenu # Network Layer diff --git a/sys/net/network_layer/ipv4/addr/Kconfig b/sys/net/network_layer/ipv4/addr/Kconfig deleted file mode 100644 index 10e49816c087..000000000000 --- a/sys/net/network_layer/ipv4/addr/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# 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_IPV4_ADDR - bool "IPv4 address conversion" - depends on TEST_KCONFIG diff --git a/sys/net/network_layer/ipv6/addr/Kconfig b/sys/net/network_layer/ipv6/addr/Kconfig deleted file mode 100644 index 3197f48e6baf..000000000000 --- a/sys/net/network_layer/ipv6/addr/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# 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_IPV6_ADDR - bool "IPv6 address conversion" - depends on TEST_KCONFIG diff --git a/sys/net/sock/Kconfig b/sys/net/sock/Kconfig index 73e6642389ec..6d17320e2138 100644 --- a/sys/net/sock/Kconfig +++ b/sys/net/sock/Kconfig @@ -4,12 +4,9 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_SOCK_UTIL - bool "Configure SOCK utility functions" +menu "SOCK utility functions" depends on USEMODULE_SOCK_UTIL -if KCONFIG_USEMODULE_SOCK_UTIL - config SOCK_SCHEME_MAXLEN int "Maximum length of the scheme part" default 16 @@ -28,14 +25,11 @@ config SOCK_URLPATH_MAXLEN help This value is used in sock_urlsplit(). -endif # KCONFIG_USEMODULE_SOCK_UTIL +endmenu # SOCK utility functions -menuconfig KCONFIG_USEMODULE_SOCK_DTLS - bool "Configure SOCK DTLS" +menu "SOCK DTLS" depends on USEMODULE_SOCK_DTLS -if KCONFIG_USEMODULE_SOCK_DTLS - config DTLS_HANDSHAKE_BUFSIZE_EXP int "Exponent for the DTLS buffer size (resulting in the buffer size 2^n)" default 8 @@ -52,4 +46,4 @@ config DTLS_PSK_ID_HINT_MAX_SIZE int "Maximum size for a PSK Identity hint string" default 32 -endif # KCONFIG_USEMODULE_SOCK_DTLS +endmenu # SOCK DTLS diff --git a/sys/od/Kconfig b/sys/od/Kconfig deleted file mode 100644 index 74526c4315ed..000000000000 --- a/sys/od/Kconfig +++ /dev/null @@ -1,14 +0,0 @@ -# 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_OD - bool "OD Hex Dump" - select MODULE_FMT - depends on TEST_KCONFIG - -config MODULE_OD_STRING - bool "Print ASCII representation of the dumped data" - depends on MODULE_OD diff --git a/sys/oneway-malloc/Kconfig b/sys/oneway-malloc/Kconfig deleted file mode 100644 index 9d83d4ac5d69..000000000000 --- a/sys/oneway-malloc/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# 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_ONEWAY_MALLOC - bool "One way malloc" - depends on TEST_KCONFIG - help - A malloc implementation without free for boards where the - toolchain does not implement dynamic memory allocation. diff --git a/sys/phydat/Kconfig b/sys/phydat/Kconfig deleted file mode 100644 index f754bd3c3d59..000000000000 --- a/sys/phydat/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# 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_PHYDAT - bool "Phydat" - depends on TEST_KCONFIG - select MODULE_FMT - help - Generic data container for physical data and utility functions. diff --git a/sys/pipe/Kconfig b/sys/pipe/Kconfig deleted file mode 100644 index 3cde3abf76af..000000000000 --- a/sys/pipe/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (c) 2023 Inria -# -# 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_PIPE - bool "Statically allocated pipes" - depends on TEST_KCONFIG - help - Implementation for statically allocated pipes. diff --git a/sys/pm_layered/Kconfig b/sys/pm_layered/Kconfig deleted file mode 100644 index 650a95b7ceb3..000000000000 --- a/sys/pm_layered/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# 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_PM_LAYERED - bool "Platform-independent Power Management" - depends on MODULE_PERIPH_PM - depends on TEST_KCONFIG diff --git a/sys/posix/Kconfig b/sys/posix/Kconfig deleted file mode 100644 index 6d4f651821c2..000000000000 --- a/sys/posix/Kconfig +++ /dev/null @@ -1,18 +0,0 @@ -# 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. -# - -menu "Posix" - depends on TEST_KCONFIG - -config MODULE_POSIX_HEADERS - bool - -rsource "inet/Kconfig" -rsource "pthread/Kconfig" -rsource "sleep/Kconfig" - -endmenu # Posix diff --git a/sys/posix/inet/Kconfig b/sys/posix/inet/Kconfig deleted file mode 100644 index 7c5f520a04d6..000000000000 --- a/sys/posix/inet/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# 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_POSIX_INET - bool "POSIX Internet Support" - select MODULE_POSIX_HEADERS diff --git a/sys/posix/pthread/Kconfig b/sys/posix/pthread/Kconfig deleted file mode 100644 index adb62750f6f8..000000000000 --- a/sys/posix/pthread/Kconfig +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2022 Inria -# -# 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_PTHREAD - bool "Pthread Support" - depends on TEST_KCONFIG - select MODULE_TIMEX - select MODULE_ZTIMER - select MODULE_ZTIMER64_XTIMER_COMPAT if MODULE_ZTIMER_XTIMER_COMPAT - select ZTIMER64_USEC diff --git a/sys/posix/sleep/Kconfig b/sys/posix/sleep/Kconfig deleted file mode 100644 index d69349b1a285..000000000000 --- a/sys/posix/sleep/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# 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_POSIX_SLEEP - bool "Posix Sleep" - depends on MODULE_ZTIMER_MSEC - depends on MODULE_ZTIMER_USEC - select MODULE_POSIX_HEADERS diff --git a/sys/preprocessor/Kconfig b/sys/preprocessor/Kconfig deleted file mode 100644 index 364fe051e89a..000000000000 --- a/sys/preprocessor/Kconfig +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright (c) 2022 Otto-von-Guericke-Universität Magdeburg -# -# 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_PREPROCESSOR - bool "Preprocessor utilities" - depends on TEST_KCONFIG - -config MODULE_PREPROCESSOR_SUCCESSOR - bool "Generate preprocessor_successor.h to do preprocessor based successor arithmetic" - depends on TEST_KCONFIG - select MODULE_PREPROCESSOR diff --git a/sys/progress_bar/Kconfig b/sys/progress_bar/Kconfig index afae74278679..1a43012d044f 100644 --- a/sys/progress_bar/Kconfig +++ b/sys/progress_bar/Kconfig @@ -5,17 +5,8 @@ # directory for more details. # -config MODULE_PROGRESS_BAR - bool "A simple CLI progress bar" - depends on TEST_KCONFIG - -menuconfig KCONFIG_USEMODULE_PROGRESS_BAR - bool "Configure progress bar module" +menu "progress bar module" depends on USEMODULE_PROGRESS_BAR - help - Configure the progress bar module using Kconfig. - -if KCONFIG_USEMODULE_PROGRESS_BAR config PROGRESS_BAR_LENGTH int "Progress bar length" @@ -55,4 +46,4 @@ config PROGRESS_BAR_SUFFIX_MAX_LENGTH int "Progress bar suffix max length" default 32 -endif # KCONFIG_USEMODULE_PROGRESS_BAR +endmenu # progress bar module diff --git a/sys/ps/Kconfig b/sys/ps/Kconfig deleted file mode 100644 index a53da749049d..000000000000 --- a/sys/ps/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# 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 diff --git a/sys/psa_crypto/Kconfig b/sys/psa_crypto/Kconfig index 4bdda0b10ead..a730ec2fe5a1 100644 --- a/sys/psa_crypto/Kconfig +++ b/sys/psa_crypto/Kconfig @@ -5,20 +5,10 @@ # directory for more details. # -menuconfig MODULE_PSA_CRYPTO - bool "PSA Crypto" - depends on TEST_KCONFIG - select MODULE_RANDOM +if USEMODULE_PSA_CRYPTO -if MODULE_PSA_CRYPTO - -rsource "Kconfig.asymmetric" -rsource "Kconfig.ciphers" -rsource "Kconfig.hashes" -rsource "Kconfig.mac" rsource "Kconfig.keys" rsource "psa_se_mgmt/Kconfig" -rsource "psa_key_slot_mgmt/Kconfig" -endif # MODULE_PSA_CRYPTO +endif # USEMODULE_PSA_CRYPTO diff --git a/sys/psa_crypto/Kconfig.asymmetric b/sys/psa_crypto/Kconfig.asymmetric deleted file mode 100644 index 081d40a6c2ad..000000000000 --- a/sys/psa_crypto/Kconfig.asymmetric +++ /dev/null @@ -1,83 +0,0 @@ -# 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_PSA_ASYMMETRIC - bool "PSA Asymmetric Crypto" - select MODULE_PSA_KEY_MANAGEMENT - -if MODULE_PSA_ASYMMETRIC - -menuconfig MODULE_PSA_ASYMMETRIC_ECC_P192R1 - bool "ECC NIST-P192R1" - select PSA_KEY_SIZE_192 - -if MODULE_PSA_ASYMMETRIC_ECC_P192R1 - -choice PSA_ASYMMETRIC_ECC_P192R1_BACKEND - bool "ECC NIST-P192R1 Implementation" - -config MODULE_PSA_ASYMMETRIC_ECC_P192R1_BACKEND_PERIPH - bool "Hardware accelerated with peripheral" - depends on HAS_PERIPH_ECC_P192R1 - select MODULE_PERIPH_ECC_P192R1 - -config MODULE_PSA_ASYMMETRIC_ECC_P192R1_BACKEND_MICROECC - bool "Micro-ECC Package" - select PACKAGE_MICRO-ECC - select MODULE_PSA_UECC_P192 - -endchoice - -endif # MODULE_PSA_ASYMMETRIC_ECC_P192R1 - -menuconfig MODULE_PSA_ASYMMETRIC_ECC_P256R1 - bool "ECC NIST-P256R1" - select PSA_KEY_SIZE_256 - -if MODULE_PSA_ASYMMETRIC_ECC_P256R1 - -choice PSA_ASYMMETRIC_ECC_P256R1_BACKEND - bool "ECC NIST-P256R1 Implementation" - -config MODULE_PSA_ASYMMETRIC_ECC_P256R1_BACKEND_PERIPH - bool "Hardware Accelerated" - depends on HAS_PERIPH_ECC_P256R1 - select MODULE_PERIPH_ECC_P256R1 - -config MODULE_PSA_ASYMMETRIC_ECC_P256R1_BACKEND_MICROECC - bool "Micro-ECC Package" - select PACKAGE_MICRO-ECC - select MODULE_PSA_UECC_P256 - -endchoice - -endif # MODULE_PSA_ASYMMETRIC_ECC_P256R1 - -menuconfig MODULE_PSA_ASYMMETRIC_ECC_ED25519 - bool "ECC Edwards25519" - select PSA_KEY_SIZE_256 - -if MODULE_PSA_ASYMMETRIC_ECC_ED25519 - -choice MODULE_PSA_ASYMMETRIC_ECC_ED25519_BACKEND - bool "ECC Edwards25519 Implementation" - -config MODULE_PSA_ASYMMETRIC_ECC_ED25519_BACKEND_PERIPH - bool "Hardware Accelerated" - depends on HAS_PERIPH_ECC_ED25519 - select MODULE_PERIPH_ECC_ED25519 - -config MODULE_PSA_ASYMMETRIC_ECC_ED25519_BACKEND_C25519 - bool "C25519 Package" - select PACKAGE_C25519 - select MODULE_PSA_C25519_EDSIGN - -endchoice - -endif # MODULE_PSA_ASYMMETRIC_ECC_ED25519 - -endif # MODULE_PSA_ASYMMETRIC diff --git a/sys/psa_crypto/Kconfig.ciphers b/sys/psa_crypto/Kconfig.ciphers deleted file mode 100644 index b6c2104864c4..000000000000 --- a/sys/psa_crypto/Kconfig.ciphers +++ /dev/null @@ -1,91 +0,0 @@ -# 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_PSA_CIPHER - bool "PSA Ciphers" - select MODULE_PSA_KEY_MANAGEMENT - -if MODULE_PSA_CIPHER - -menuconfig MODULE_PSA_CIPHER_AES_128_ECB - bool "AES-128 ECB" - select PSA_KEY_SIZE_128 - -if MODULE_PSA_CIPHER_AES_128_ECB - -choice PSA_CIPHER_AES_128_ECB_BACKEND - bool "AES-128 Implementation" - -config MODULE_PSA_CIPHER_AES_128_ECB_BACKEND_RIOT - bool "RIOT cipher" - select MODULE_CRYPTO - select MODULE_PSA_RIOT_CIPHER_AES_ECB - -endchoice - -endif # MODULE_PSA_CIPHER_AES_128_ECB - -menuconfig MODULE_PSA_CIPHER_AES_128_CBC - bool "AES-128 CBC" - select PSA_KEY_SIZE_128 - -if MODULE_PSA_CIPHER_AES_128_CBC - -choice PSA_CIPHER_AES_128_CBC_BACKEND - bool "AES-128 CBC Implementation" - -config MODULE_PSA_CIPHER_AES_128_CBC_BACKEND_PERIPH - bool "Hardware Accelerated" - depends on HAS_PERIPH_CIPHER_AES_128_CBC - select MODULE_PERIPH_CIPHER_AES_128_CBC - -config MODULE_PSA_CIPHER_AES_128_CBC_BACKEND_RIOT - bool "RIOT cipher" - select MODULE_CRYPTO - select MODULE_PSA_RIOT_CIPHER_AES_128_CBC - -endchoice - -endif # MODULE_PSA_CIPHER_AES_128_CBC - -menuconfig MODULE_PSA_CIPHER_AES_192_CBC - bool "AES-192 CBC" - select PSA_KEY_SIZE_192 - -if MODULE_PSA_CIPHER_AES_192_CBC - -choice PSA_CIPHER_AES_192_CBC_BACKEND - bool "AES-192 Implementation" - -config MODULE_PSA_CIPHER_AES_192_CBC_BACKEND_RIOT - bool "RIOT cipher" - select MODULE_CRYPTO - select MODULE_PSA_RIOT_CIPHER_AES_CBC - -endchoice - -endif # MODULE_PSA_CIPHER_AES_192_CBC - -menuconfig MODULE_PSA_CIPHER_AES_256_CBC - bool "AES-256 CBC" - select PSA_KEY_SIZE_256 - -if MODULE_PSA_CIPHER_AES_256_CBC - -choice CIPHER_AES_256_CBC_BACKEND - bool "AES-256 Implementation" - -config MODULE_PSA_CIPHER_AES_256_CBC_BACKEND_RIOT - bool "RIOT Cipher Module" - select MODULE_CRYPTO - select MODULE_PSA_RIOT_CIPHER_AES_CBC - -endchoice - -endif # MODULE_PSA_CIPHER_AES_256_CBC - -endif # MODULE_PSA_CIPHER diff --git a/sys/psa_crypto/Kconfig.hashes b/sys/psa_crypto/Kconfig.hashes deleted file mode 100644 index 0225cae24f68..000000000000 --- a/sys/psa_crypto/Kconfig.hashes +++ /dev/null @@ -1,114 +0,0 @@ -# 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_PSA_HASH - bool "PSA Hashes" - -if MODULE_PSA_HASH - -menuconfig MODULE_PSA_HASH_MD5 - bool "MD5" - -if MODULE_PSA_HASH_MD5 - -choice PSA_HASH_MD5_BACKEND - bool "MD5 implementation" - -config MODULE_PSA_HASH_MD5_BACKEND_RIOT - bool "RIOT hash" - select MODULE_PSA_RIOT_HASHES_MD5 - -endchoice - -endif # MODULE_PSA_HASH_MD5 - -menuconfig MODULE_PSA_HASH_SHA_1 - bool "SHA-1" - -if MODULE_PSA_HASH_SHA_1 - -choice PSA_HASH_SHA_1_BACKEND - bool "SHA-1 implementation" - -config MODULE_PSA_HASH_SHA_1_BACKEND_PERIPH - bool "Hardware accelerated" - depends on HAS_PERIPH_HASH_SHA_1 - select MODULE_PERIPH_HASH_SHA_1 - -config MODULE_PSA_HASH_SHA_1_BACKEND_RIOT - bool "RIOT hash" - select MODULE_PSA_RIOT_HASHES_SHA_1 - -endchoice - -endif # MODULE_PSA_HASH_SHA_1 - -menuconfig MODULE_PSA_HASH_SHA_224 - bool "SHA-224" - -if MODULE_PSA_HASH_SHA_224 - -choice PSA_HASH_SHA_224_BACKEND - bool "SHA-224 implementation" - -config MODULE_PSA_HASH_SHA_224_BACKEND_PERIPH - bool "Hardware accelerated" - depends on HAS_PERIPH_HASH_SHA_224 - select MODULE_PERIPH_HASH_SHA_224 - -config MODULE_PSA_HASH_SHA_224_BACKEND_RIOT - bool "RIOT Hash Module" - select MODULE_PSA_RIOT_HASHES_SHA_224 - -endchoice - -endif # MODULE_PSA_HASH_SHA_224 - -menuconfig MODULE_PSA_HASH_SHA_256 - bool "SHA-256" - -if MODULE_PSA_HASH_SHA_256 - -choice PSA_HASH_SHA_256_BACKEND - bool "SHA-256 implementation" - -config MODULE_PSA_HASH_SHA_256_BACKEND_PERIPH - bool "Hardware accelerated" - depends on HAS_PERIPH_HASH_SHA_256 - select MODULE_PERIPH_HASH_SHA_256 - -config MODULE_PSA_HASH_SHA_256_BACKEND_RIOT - bool "RIOT hash" - select MODULE_PSA_RIOT_HASHES_SHA_256 - -endchoice - -endif # MODULE_PSA_HASH_SHA_256 - -menuconfig MODULE_PSA_HASH_SHA_512 - bool "SHA-512" - depends on HAS_PERIPH_HASH_SHA_512 # no software implementation so far... - -if MODULE_PSA_HASH_SHA_512 - -choice PSA_HASH_SHA_512_BACKEND - bool "SHA-512 implementation" - -config MODULE_PSA_HASH_SHA_512_BACKEND_PERIPH - bool "Hardware accelerated" - depends on HAS_PERIPH_HASH_SHA_512 - select MODULE_PERIPH_HASH_SHA_512 - -config MODULE_PSA_HASH_SHA_512_BACKEND_RIOT - bool "RIOT hash" - select MODULE_PSA_RIOT_HASHES_SHA_512 - -endchoice - -endif # MODULE_PSA_HASH_SHA_512 - -endif # MODULE_PSA_HASH diff --git a/sys/psa_crypto/Kconfig.keys b/sys/psa_crypto/Kconfig.keys index fe50ef332142..6b34ae8f32ee 100644 --- a/sys/psa_crypto/Kconfig.keys +++ b/sys/psa_crypto/Kconfig.keys @@ -7,29 +7,33 @@ menu "PSA Key Management Configuration" -config MODULE_PSA_KEY_MANAGEMENT - bool - select MODULE_PSA_KEY_SLOT_MGMT - help - Activates the PSA Key Management Module - config PSA_KEY_SIZE_128 bool "Application uses key of size 128 Bits" + default USEMODULE_PSA_CIPHER_AES_128_CBC + default USEMODULE_PSA_CIPHER_AES_128_ECB help Indicates that the maximum PSA key size should be at least 128 bits. config PSA_KEY_SIZE_192 - bool + bool "Application uses key of size 192 Bits" + default USEMODULE_PSA_CIPHER_AES_192_CBC + default USEMODULE_PSA_ASYMMETRIC_ECC_P192R1 help Indicates that the maximum PSA key size should be at least 192 bits. config PSA_KEY_SIZE_256 - bool + bool "Application uses key of size 256 Bits" + default USEMODULE_PSA_ASYMMETRIC_ECC_P256R1 + default USEMODULE_PSA_ASYMMETRIC_ECC_ED25519 + default USEMODULE_PSA_CIPHER_AES_256_CBC + default USEMODULE_PSA_MAC_HMAC_SHA_256 + default USEMODULE_PSA_SECURE_ELEMENT_ATECCX08A_ECC_P256 help Indicates that the maximum PSA key size should be at least 256 bits. config PSA_KEY_SIZE_512 - bool + bool "Application uses key of size 512 Bits" + default USEMODULE_PSA_CIPHER_AES_128_CBC help Indicates that the maximum PSA key size should be at least 512 bits. @@ -45,7 +49,7 @@ config PSA_MAX_KEY_SIZE config PSA_PROTECTED_KEY_COUNT int "Specifies number of allocated protected key slots" - default 5 if MODULE_PSA_SECURE_ELEMENT + default 5 if USEMODULE_PSA_SECURE_ELEMENT default 0 config PSA_ASYMMETRIC_KEYPAIR_COUNT diff --git a/sys/psa_crypto/Kconfig.mac b/sys/psa_crypto/Kconfig.mac deleted file mode 100644 index 8cc8b8b1464f..000000000000 --- a/sys/psa_crypto/Kconfig.mac +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) 2022 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_PSA_MAC - bool "PSA Message Authenticated Ciphers" - select MODULE_PSA_KEY_MANAGEMENT - -if MODULE_PSA_MAC - -menuconfig MODULE_PSA_MAC_HMAC_SHA_256 - bool "HMAC SHA-256" - select PSA_KEY_SIZE_256 - -if MODULE_PSA_MAC_HMAC_SHA_256 - -choice PSA_MAC_HMAC_SHA_256_BACKEND - bool "HMAC SHA256 Implementation" - -config MODULE_PSA_MAC_HMAC_SHA_256_BACKEND_PERIPH - bool "Hardware Accelerated" - depends on HAS_PERIPH_HMAC_SHA_256 - select MODULE_PERIPH_HMAC_SHA_256 - -config MODULE_PSA_MAC_HMAC_SHA_256_BACKEND_RIOT - bool "RIOT HMAC SHA-256" - select MODULE_PSA_RIOT_HASHES_HMAC_SHA256 - -endchoice # PSA_MAC_HMAC_SHA_256_BACKEND - -endif # MODULE_PSA_MAC_HMAC_SHA_256 - -endif # MODULE_PSA_MAC diff --git a/sys/psa_crypto/Makefile.dep b/sys/psa_crypto/Makefile.dep index c4026a053ef7..b117add048e7 100644 --- a/sys/psa_crypto/Makefile.dep +++ b/sys/psa_crypto/Makefile.dep @@ -1,6 +1,6 @@ ifneq (,$(filter psa_crypto,$(USEMODULE))) USEMODULE += random - USEMODULE += prng_musl_lcg + USEMODULE += prng_sha256prng endif # Asymmetric diff --git a/sys/psa_crypto/psa_key_slot_mgmt/Kconfig b/sys/psa_crypto/psa_key_slot_mgmt/Kconfig deleted file mode 100644 index ce5a387a30bd..000000000000 --- a/sys/psa_crypto/psa_key_slot_mgmt/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# Copyright (c) 2022 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_PSA_KEY_SLOT_MGMT - bool - help - Enable PSA key slot management module diff --git a/sys/psa_crypto/psa_se_mgmt/Kconfig b/sys/psa_crypto/psa_se_mgmt/Kconfig index ceefd9764791..d760ae06697d 100644 --- a/sys/psa_crypto/psa_se_mgmt/Kconfig +++ b/sys/psa_crypto/psa_se_mgmt/Kconfig @@ -5,56 +5,12 @@ # directory for more details. # -menuconfig MODULE_PSA_SECURE_ELEMENT - bool "PSA Secure Elements" - select MODULE_PSA_KEY_MANAGEMENT - select MODULE_PSA_SE_MGMT - -if MODULE_PSA_SECURE_ELEMENT - -config MODULE_PSA_SECURE_ELEMENT_MULTIPLE - bool "Use multiple secure elements" +if USEMODULE_PSA_SECURE_ELEMENT config PSA_MAX_SE_COUNT int - prompt "Maximum number of secure elements" if MODULE_PSA_SECURE_ELEMENT_MULTIPLE - range 2 255 if MODULE_PSA_SECURE_ELEMENT_MULTIPLE + prompt "Maximum number of secure elements" if USEMODULE_PSA_SECURE_ELEMENT_MULTIPLE + range 2 255 if USEMODULE_PSA_SECURE_ELEMENT_MULTIPLE range 1 255 -menuconfig MODULE_PSA_SECURE_ELEMENT_ATECCX08A - bool "Microchip ATECCX08A" - select PACKAGE_CRYPTOAUTHLIB - select MODULE_PSA_SECURE_ELEMENT_CONFIG - depends on HAS_PERIPH_I2C - help - When using Cryptoauthlib as a backend for elliptic curve operations, - please also choose the ECC symbol. - -config MODULE_PSA_SECURE_ELEMENT_ATECCX08A_ECC_P256 - bool "Microchip ATECCX08A Elliptic Curve P256" - select PSA_KEY_SIZE_256 - select MODULE_PSA_ASYMMETRIC - depends on MODULE_PSA_SECURE_ELEMENT_ATECCX08A - -config MODULE_PSA_SECURE_ELEMENT_ATECCX08A_CIPHER_AES_128 - bool "Microchip ATECCX08A Cipher AES 128" - select PSA_KEY_SIZE_128 - select MODULE_PSA_CIPHER - depends on MODULE_PSA_SECURE_ELEMENT_ATECCX08A - -config MODULE_PSA_SECURE_ELEMENT_ATECCX08A_HMAC_SHA256 - bool "Microchip ATECCX08A HMAC SHA-256" - select PSA_KEY_SIZE_128 - select MODULE_PSA_MAC - depends on MODULE_PSA_SECURE_ELEMENT_ATECCX08A - -config MODULE_PSA_SE_MGMT - bool - -config MODULE_PSA_SECURE_ELEMENT_CONFIG - bool - help - Indicates that this SE driver defines a configuration structure for - persistent driver data. - -endif # MODULE_PSA_SECURE_ELEMENT +endif # USEMODULE_PSA_SECURE_ELEMENT diff --git a/sys/random/Kconfig b/sys/random/Kconfig deleted file mode 100644 index 2b72b612a7c3..000000000000 --- a/sys/random/Kconfig +++ /dev/null @@ -1,93 +0,0 @@ -# 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_RANDOM - bool "Pseudo-Random Number Generation" - depends on TEST_KCONFIG - select MODULE_LUID - select MODULE_PERIPH_HWRNG if HAS_PERIPH_HWRNG && !MODULE_PUF_SRAM - -if MODULE_RANDOM - -comment "This platform has a Hardware RNG, consider using it" - depends on HAS_PERIPH_HWRNG && !MODULE_PRNG_HWRNG - -choice RANDOM_IMPLEMENTATION - bool "PRNG Implementation" - depends on TEST_KCONFIG - default MODULE_PRNG_MUSL_LCG - # TODO: make HWRNG on platforms where it is available is a better default, but we want to - # match Makefile.dep. Add it back when migration is done. - -menuconfig MODULE_PRNG_FORTUNA - bool "Fortuna" - select MODULE_HASHES - select MODULE_FORTUNA - select MODULE_CRYPTO - select MODULE_CRYPTO_AES_128 - -if MODULE_PRNG_FORTUNA - -config MODULE_FORTUNA_RESEED - bool "Reseed prng according to FORTUNA_RESEED_INTERVAL_MS" - select MODULE_XTIMER - select MODULE_ATOMIC_UTILS -endif - -config MODULE_PRNG_HWRNG - bool "Hardware RNG" - depends on HAS_PERIPH_HWRNG - select MODULE_PERIPH_HWRNG - -config MODULE_PRNG_MARSENNE - bool "Marsenne" - -config MODULE_PRNG_MINISTD - bool "Mini STD" - -config MODULE_PRNG_MUSL_LCG - bool "MUSL LCG" - -config MODULE_PRNG_SHA1PRNG - bool "SHA-1" - select MODULE_PRNG_SHAXPRNG - select MODULE_HASHES - -config MODULE_PRNG_SHA256PRNG - bool "SHA-256" - select MODULE_PRNG_SHAXPRNG - select MODULE_HASHES - -config MODULE_PRNG_TINYMT32 - bool "Tiny-MT 32" - select MODULE_TINYMT32 - -config MODULE_PRNG_XORSHIFT - bool "XOR Shift" - -endchoice # RANDOM_IMPLEMENTATION - -config MODULE_AUTO_INIT_RANDOM - bool "Auto-initialize the random subsystem" - default y - depends on MODULE_AUTO_INIT - -config MODULE_PRNG_SHAXPRNG - bool - help - Unified implementation for SHA-256 and SHA-1 PRNG. - -config MODULE_PRNG - bool - default y - help - Basic Pseudo-random number generation module. - -rsource "fortuna/Kconfig" -rsource "tinymt32/Kconfig" - -endif # MODULE_RANDOM diff --git a/sys/random/fortuna/Kconfig b/sys/random/fortuna/Kconfig deleted file mode 100644 index 0cc634e5d8aa..000000000000 --- a/sys/random/fortuna/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# 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_FORTUNA - bool - depends on TEST_KCONFIG - help - Fortuna pseudo-random number generation. This is not your general - purpose PRNG: it is hungry for memory. diff --git a/sys/random/tinymt32/Kconfig b/sys/random/tinymt32/Kconfig deleted file mode 100644 index 3f3aec0799bd..000000000000 --- a/sys/random/tinymt32/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# 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_TINYMT32 - bool - depends on TEST_KCONFIG - help - Tiny Mersenne Twister only 127 bit internal state. diff --git a/sys/rtc_utils/Kconfig b/sys/rtc_utils/Kconfig deleted file mode 100644 index 0a3c88108a89..000000000000 --- a/sys/rtc_utils/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright (c) 2021 Inria -# -# 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_RTC_UTILS - bool "RTC helper functions" - depends on TEST_KCONFIG diff --git a/sys/rust_riotmodules/Cargo.toml b/sys/rust_riotmodules/Cargo.toml index 45fe52acbee1..b8de794176de 100644 --- a/sys/rust_riotmodules/Cargo.toml +++ b/sys/rust_riotmodules/Cargo.toml @@ -12,3 +12,8 @@ publish = false riot-module-lsm303agr = { path = "../../drivers/lsm303agr", optional = true } riot-module-shell-democommands = { path = "../../sys/shell/democommands", optional = true } + +[features] +# This feature is just there so that rust_riotmodules_standalone can use its +# _all; see documentation there. +_all = [ "riot-module-lsm303agr", "riot-module-shell-democommands"] diff --git a/sys/rust_riotmodules/Kconfig b/sys/rust_riotmodules/Kconfig deleted file mode 100644 index 4a8cf1163854..000000000000 --- a/sys/rust_riotmodules/Kconfig +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright (c) 2022 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_RUST_RIOTMODULES - bool "RUST RIOT modules" - depends on TEST_KCONFIG - depends on HAS_RUST_TARGET - help - This module is used when some module asks to have its code built - through rust_riotmodules. - -config MODULE_RUST_RIOTMODULES_STANDALONE - bool "RUST RIOT modules are standalone" - default y - depends on MODULE_RUST_RIOTMODULES - help - This module is used when rust_riotmodules is selected, and the main - application does not already contain Rust code through which the - rust_riotmodules are built. diff --git a/sys/rust_riotmodules_standalone/Cargo.lock b/sys/rust_riotmodules_standalone/Cargo.lock index de525237718f..17d47da24b22 100644 --- a/sys/rust_riotmodules_standalone/Cargo.lock +++ b/sys/rust_riotmodules_standalone/Cargo.lock @@ -413,6 +413,17 @@ version = "0.4.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c" +[[package]] +name = "lsm303agr" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4a03acd01d27c9ca96ba8205760673a23ba1914d85cc00e92a6a05963d5fe9b" +dependencies = [ + "bitflags 2.5.0", + "embedded-hal 1.0.0", + "nb 1.1.0", +] + [[package]] name = "memchr" version = "2.7.1" @@ -556,6 +567,21 @@ version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f" +[[package]] +name = "riot-module-lsm303agr" +version = "0.1.0" +dependencies = [ + "lsm303agr", + "riot-wrappers", +] + +[[package]] +name = "riot-module-shell-democommands" +version = "0.1.0" +dependencies = [ + "riot-wrappers", +] + [[package]] name = "riot-sys" version = "0.7.11" @@ -603,6 +629,10 @@ dependencies = [ [[package]] name = "rust_riotmodules" version = "0.1.0" +dependencies = [ + "riot-module-lsm303agr", + "riot-module-shell-democommands", +] [[package]] name = "rust_riotmodules_standalone" diff --git a/sys/rust_riotmodules_standalone/Cargo.toml b/sys/rust_riotmodules_standalone/Cargo.toml index b5077eb24d7a..61d31398738f 100644 --- a/sys/rust_riotmodules_standalone/Cargo.toml +++ b/sys/rust_riotmodules_standalone/Cargo.toml @@ -19,3 +19,11 @@ codegen-units = 1 riot-wrappers = { version = "0.8", features = [ "set_panic_handler" ] } rust_riotmodules = { path = "../rust_riotmodules" } + +[features] +# By having this explicit feature (comapred to what is enabled by the build +# system as `--features rust_riotmodules/foo`), all possible dependencies are +# visible to `cargo update` and in `Cargo.lock. This should not be enabled for +# compilation, as the modules behind it likely have their own RIOT modules they +# need enabled. +_all = [ "rust_riotmodules/_all" ] diff --git a/sys/saul_reg/Kconfig b/sys/saul_reg/Kconfig deleted file mode 100644 index 5ed1ec13cf56..000000000000 --- a/sys/saul_reg/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# 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_SAUL_REG - bool "Global sensor/actuator registry for SAUL devices" - default y - depends on MODULE_SAUL - depends on TEST_KCONFIG diff --git a/sys/sched_round_robin/Kconfig b/sys/sched_round_robin/Kconfig deleted file mode 100644 index dd109caa2e1b..000000000000 --- a/sys/sched_round_robin/Kconfig +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright (c) 2021 TUBA Freiberg -# -# 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_SCHED_ROUND_ROBIN - bool "round robin scheduling support" - depends on MODULE_ZTIMER_MSEC || MODULE_ZTIMER_USEC - depends on TEST_KCONFIG - select MODULE_SCHED_RUNQUEUE_API - -if MODULE_SCHED_ROUND_ROBIN -config SCHED_RR_TIMEOUT - int "timeout for round robin scheduling" - default 10000 - -endif diff --git a/sys/schedstatistics/Kconfig b/sys/schedstatistics/Kconfig deleted file mode 100644 index 22bf74a0d60d..000000000000 --- a/sys/schedstatistics/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# 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_SCHEDSTATISTICS - bool "Scheduler statistics support" - select ZTIMER_USEC - depends on TEST_KCONFIG - select MODULE_SCHED_CB diff --git a/sys/sema/Kconfig b/sys/sema/Kconfig deleted file mode 100644 index 038136f70c97..000000000000 --- a/sys/sema/Kconfig +++ /dev/null @@ -1,16 +0,0 @@ -# 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_SEMA - bool "Semaphore" - depends on TEST_KCONFIG - select MODULE_ZTIMER - -config MODULE_SEMA_DEPRECATED - bool "Semaphore compatible with 64bit timeouts, deprecated" - select MODULE_SEMA - select ZTIMER64_USEC diff --git a/sys/sema_inv/Kconfig b/sys/sema_inv/Kconfig deleted file mode 100644 index 50ac0c089069..000000000000 --- a/sys/sema_inv/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (c) 2023 Inria -# -# 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_SEMA_INV - bool "inverse Semaphores" - depends on TEST_KCONFIG - - select MODULE_ATOMIC_UTILS diff --git a/sys/senml/Kconfig b/sys/senml/Kconfig deleted file mode 100644 index 5c2a0a1d9ec3..000000000000 --- a/sys/senml/Kconfig +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright (c) 2021 Silke Hofstra -# -# 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_SENML - bool "SenML" - depends on TEST_KCONFIG - help - Generic data container for physical data and utility functions. - -config MODULE_SENML_SAUL - bool "SenML SAUL integration" - depends on TEST_KCONFIG - select MODULE_SENML_PHYDAT - select MODULE_SENML_CBOR - depends on MODULE_SAUL - depends on MODULE_SAUL_REG - help - Generic data container for physical data and utility functions. - -config MODULE_SENML_PHYDAT - bool "SenML Phydat support" - depends on TEST_KCONFIG - select MODULE_SENML - select MODULE_PHYDAT - help - Utilities to convert Phydat valus to SenML - -config MODULE_SENML_CBOR - bool "SenML CBOR enconding" - depends on TEST_KCONFIG - select MODULE_SENML - select PACKAGE_NANOCBOR - help - Support for CBOR encoding of SenML values diff --git a/sys/seq/Kconfig b/sys/seq/Kconfig deleted file mode 100644 index 2239dd0543b6..000000000000 --- a/sys/seq/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# 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_SEQ - bool "Serial number arithmetic (RFC 1982)" - depends on TEST_KCONFIG diff --git a/sys/shell/Kconfig b/sys/shell/Kconfig index 087167fd1f0f..a1108dfc8e0a 100644 --- a/sys/shell/Kconfig +++ b/sys/shell/Kconfig @@ -5,28 +5,9 @@ # directory for more details. # -if !TEST_KCONFIG - -menuconfig KCONFIG_USEMODULE_SHELL - bool "Configure the Shell interpreter" +menu "Shell interpreter" depends on USEMODULE_SHELL -if KCONFIG_USEMODULE_SHELL -rsource "Kconfig.config" -endif # KCONFIG_USEMODULE_SHELL - -endif # !TEST_KCONFIG - -if TEST_KCONFIG -menuconfig MODULE_SHELL - bool "Shell interpreter" - select MODULE_STDIN - depends on TEST_KCONFIG - -rsource "cmds/Kconfig" - -if MODULE_SHELL rsource "Kconfig.config" -endif -endif # TEST_KCONFIG +endmenu # Shell interpreter diff --git a/sys/shell/Kconfig.config b/sys/shell/Kconfig.config index 7f40edcf320f..6a62af821b90 100644 --- a/sys/shell/Kconfig.config +++ b/sys/shell/Kconfig.config @@ -5,11 +5,6 @@ # directory for more details. # -# XXX This file only is required since there is no easy way to use these config -# options with both the final MODULE_SHELL and KCONFIG_USEMODULE_SHELL in a -# nicely looking and easy to migrate way. After migration, the content of this -# file can be folded back into `sys/shell/Kconfig` - config SHELL_SHUTDOWN_ON_EXIT bool "Shutdown RIOT on shell exit" default y if HAS_CPU_NATIVE diff --git a/sys/shell/cmds/Kconfig b/sys/shell/cmds/Kconfig deleted file mode 100644 index 1a663693f602..000000000000 --- a/sys/shell/cmds/Kconfig +++ /dev/null @@ -1,325 +0,0 @@ -# Copyright (c) 2022 Otto-von-Guericke-Universität Magdeburg -# -# 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_SHELL_CMDS - bool "Support for shell commands" - depends on MODULE_SHELL - -config CONFIG_MODULE_SHELL_COMMANDS - bool - select MODULE_SHELL_CMDS_DEFAULT - help - Deprecated alias for MODULE_SHELL_CMDS_DEFAULT. For new apps, use - MODULE_SHELL_CMDS_DEFAULT directly. - -config MODULE_SHELL_CMDS_DEFAULT - bool "Default shell commands for enabled modules" - select MODULE_SHELL_CMDS - help - Shell commands can be enabled and disabled individually as dedicated - modules. This module instead will select the shell commands of modules - already used, if this is considered as "good default choice". - -config MODULE_SHELL_CMD_APP_METADATA - bool "Command to print app meta data as JSON" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - depends on MODULE_APP_METADATA - -config MODULE_SHELL_CMD_AT30TSE75X - bool "Command to testAT30TSE75x temperature sensors" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - depends on MODULE_AT30TSE75X - -config MODULE_SHELL_CMD_BENCHMARK_UDP - bool "Command to perform a UDP benchmark" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - depends on MODULE_BENCHMARK_UDP - -config MODULE_SHELL_CMD_CCN-LITE-UTILS - bool "Commands to interact with the CCN-Lite stack" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - depends on MODULE_CCN-LITE-UTILS - -config MODULE_SHELL_CMD_CONN_CAN - bool "Command to interact with the CAN stack" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - depends on MODULE_CONN_CAN - -config MODULE_SHELL_CMD_CORD_EP - bool "Command to interact with a resource directory endpoint" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - depends on MODULE_CORD_EP - -config MODULE_SHELL_CMD_CRYPTOAUTHLIB - bool "Command to interact with Microchip CryptoAuth devices" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - depends on MODULE_CRYPTOAUTHLIB - -config MODULE_SHELL_CMD_DFPLAYER - bool "Command to control a dfplayer MP3 player" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - depends on MODULE_DFPLAYER - select MODULE_AUTO_INIT_MULTIMEDIA - select MODULE_FMT - -config MODULE_SHELL_CMD_FIB - bool "Command to interact with the Forwarding Information Base (FIB)" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - depends on MODULE_FIB - depends on MODULE_POSIX_INET - -config MODULE_SHELL_CMD_GNRC_ICMPV6_ECHO - bool "Command to send ICMPv6 Echo Requests (a.k.a. ping)" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - depends on MODULE_GNRC_ICMPV6_ECHO - depends on MODULE_NETUTILS - depends on MODULE_ZTIMER_USEC - -config MODULE_SHELL_CMD_GNRC_IPV6_BLACKLIST - bool "Command to manage IPv6 addresses in reception deny list" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - depends on MODULE_GNRC_IPV6_BLACKLIST - -config MODULE_SHELL_CMD_GNRC_IPV6_FRAG_STATS - bool "Command to show IPv6 fragmentation statistics" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - depends on MODULE_GNRC_IPV6_FRAG_STATS - -config MODULE_SHELL_CMD_GNRC_IPV6_NIB - bool "Command to configure the neighbor information base" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - depends on MODULE_GNRC_IPV6_NIB - -config MODULE_SHELL_CMD_GNRC_IPV6_WHITELIST - bool "Command to manage IPv6 addresses in reception allow list" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - depends on MODULE_GNRC_IPV6_WHITELIST - -config MODULE_SHELL_CMD_GNRC_NETIF - bool "Command to manage GNRC network interfaces (ifconfig)" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - depends on MODULE_GNRC_NETIF - -config MODULE_SHELL_CMD_GNRC_NETIF_LORA - bool "LoRa phy integration to the GNRC network interface command (ifconfig)" - default y if MODULE_SHELL_CMD_GNRC_NETIF && MODULE_LORA - depends on MODULE_GNRC_NETIF - depends on MODULE_LORA - depends on MODULE_SHELL_CMDS - depends on MODULE_SHELL_CMD_GNRC_NETIF - -config MODULE_SHELL_CMD_GNRC_NETIF_LORAWAN - bool "LoRaWAN integration to the GNRC network interface command (ifconfig)" - default y if MODULE_SHELL_CMD_GNRC_NETIF && MODULE_GNRC_NETIF_LORAWAN - depends on MODULE_GNRC_NETIF - depends on MODULE_GNRC_NETIF_LORAWAN - depends on MODULE_SHELL_CMDS - depends on MODULE_SHELL_CMD_GNRC_NETIF - depends on MODULE_SHELL_CMD_GNRC_NETIF_LORA - -config MODULE_SHELL_CMD_GNRC_PKTBUF - bool "Command to print stats of the GNRC packet buffer" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - depends on MODULE_GNRC_PKTBUF - -config MODULE_SHELL_CMD_GNRC_RPL - bool "Command to configure GNRC's RPL implementation" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - depends on MODULE_GNRC_RPL - -config MODULE_SHELL_CMD_GNRC_SIXLOWPAN_CTX - bool "Command to configure 6LoWPAN context in GNRC" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - depends on MODULE_SIXLOWPAN_CTX - -config MODULE_SHELL_CMD_GNRC_SIXLOWPAN_FRAG_STATS - bool "Command to display 6LoWPAN fragment statistics" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - depends on MODULE_GNRC_SIXLOWPAN_FRAG_STATS - -config MODULE_SHELL_CMD_GNRC_UDP - bool "Command interface to a UDP server and client" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - depends on MODULE_GNRC_UDP - depends on MODULE_GNRC_PKTDUMP - -config MODULE_SHELL_CMD_HEAP - bool "Command to print dynamic memory allocation statistics" - depends on MODULE_SHELL_CMDS - -config MODULE_SHELL_CMD_I2C_SCAN - bool "Command to scan for I2C devices" - depends on MODULE_SHELL_CMDS - depends on MODULE_PERIPH_I2C - -config MODULE_SHELL_CMD_IW - bool "Command to interact with WiFi interfaces" - depends on MODULE_ZTIMER_SEC - -config MODULE_SHELL_CMD_LWIP_NETIF - bool "Command to manage lwIP network interfaces (ifconfig)" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - depends on MODULE_LWIP_NETIF - -config MODULE_SHELL_CMD_MCI - bool "Commands to query parameters and read contents from memory cards" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - depends on MODULE_MCI - -config MODULE_SHELL_CMD_MD5SUM - bool "Command to calculate the MD5 sum of a file" - depends on MODULE_SHELL_CMDS - depends on MODULE_SHELL_CMD_VFS - -config MODULE_SHELL_CMD_NANOCOAP_VFS - bool "Commands to upload/download files to/from a CoAP server" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - depends on MODULE_NANOCOAP_VFS - depends on MODULE_VFS_UTIL - -config MODULE_SHELL_CMD_NETSTATS_NEIGHBOR - bool "Command to show neighbor statistics" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - depends on MODULE_NETSTATS_NEIGHBOR - -config MODULE_SHELL_CMD_NICE - bool "Command to change the priority of running threads" - depends on MODULE_SHELL_CMDS - -config MODULE_SHELL_CMD_NIMBLE_NETIF - bool "Command to manage BLE connections for NimBLE" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - depends on MODULE_FMT - depends on MODULE_NIMBLE_NETIF - depends on MODULE_NIMBLE_SCANLIST - depends on MODULE_NIMBLE_SCANNER - -config MODULE_SHELL_CMD_NIMBLE_STATCONN - bool "Command to controle the NimBLE netif statconn connection manager" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - depends on MODULE_NIMBLE_STATCONN - -config MODULE_SHELL_CMD_OPENWSN - bool "Commands to interact with the OpenWSN network statck (ifconfig, openwsn)" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_IPV6_ADDR - depends on MODULE_L2UTIL - depends on MODULE_NETIF - depends on MODULE_SHELL_CMDS - depends on USEPKG_OPENWSN - -config MODULE_SHELL_CMD_PM - bool "Command to interact with the layered power management subsystem" - default y if MODULE_SHELL_CMDS_DEFAULT && MODULE_PERIPH_PM - depends on MODULE_SHELL_CMDS - depends on HAS_PERIPH_PM - -config MODULE_SHELL_CMD_PS - bool "Command to print information about running threads" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - depends on MODULE_PS - -config MODULE_SHELL_CMD_RANDOM - bool "Commands to initialize the PRNG and print 32 bit pseudo-random numbers" - depends on MODULE_SHELL_CMDS - depends on MODULE_RANDOM - -config MODULE_SHELL_CMD_RTC - bool "Command to control the peripheral real time clock" - default y if MODULE_SHELL_CMDS_DEFAULT && MODULE_PERIPH_RTC - depends on MODULE_SHELL_CMDS - depends on HAS_PERIPH_RTC || HAS_PERIPH_RTT - depends on MODULE_RTT_RTC || HAS_PERIPH_RTC - -config MODULE_SHELL_CMD_RTT - bool "Command to control the peripheral real time timer" - depends on MODULE_SHELL_CMDS - depends on HAS_PERIPH_RTT - -config MODULE_SHELL_CMD_SAUL_REG - bool "Command to read sensors and control actuators via SAUL" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - depends on MODULE_SAUL_REG - -config MODULE_SHELL_CMD_SEMTECH-LORAMAC - bool "Command to control the Semtech LoRaMAC stack" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - depends on MODULE_SEMTECH-LORAMAC - -config MODULE_SHELL_CMD_SHA1SUM - bool "Command to compute the SHA1 sum of a file" - depends on MODULE_SHELL_CMDS - depends on MODULE_SHELL_CMD_VFS - -config MODULE_SHELL_CMD_SHA256SUM - bool "Command to compute the SHA256 sum of a file" - depends on MODULE_SHELL_CMDS - depends on MODULE_SHELL_CMD_VFS - -config MODULE_SHELL_CMD_SHT1X - bool "Commands to interact with SHT1x sensors" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - depends on MODULE_SHT1X - -config MODULE_SHELL_CMD_SNTP - bool "Command to synchronize time with an SNTP server" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - depends on MODULE_SNTP - -config MODULE_SHELL_CMD_SUIT - bool "Command to trigger a SUIT firmware update" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - depends on MODULE_SUIT_TRANSPORT_WORKER - -config MODULE_SHELL_CMD_SYS - bool "Common utility commands (version, reboot, bootloader)" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - -config MODULE_SHELL_CMD_CORECLK - bool "Shell command printing the CPU frequency" - default n - depends on MODULE_SHELL_CMDS - -config MODULE_SHELL_CMD_VFS - bool "Commands for the VFS module (ls, vfs)" - default y if MODULE_SHELL_CMDS_DEFAULT - depends on MODULE_SHELL_CMDS - depends on MODULE_VFS - select MODULE_TINY_STRERROR diff --git a/sys/shell_lock/Kconfig b/sys/shell_lock/Kconfig index db54920df8cf..2c6d644f4aac 100644 --- a/sys/shell_lock/Kconfig +++ b/sys/shell_lock/Kconfig @@ -5,13 +5,7 @@ # directory for more details. # -menuconfig MODULE_SHELL_LOCK - bool "Shell Locking module" - depends on TEST_KCONFIG - select MODULE_ZTIMER - select MODULE_ZTIMER_MSEC - -if MODULE_SHELL_LOCK +if USEMODULE_SHELL_LOCK config SHELL_LOCK_PASSWORD string "Lock password" @@ -21,9 +15,4 @@ config SHELL_LOCK_AUTO_LOCK_TIMEOUT_MS int "Timeout in ms before automatic locking" default 7000 -endif # MODULE_SHELL_LOCK - -config MODULE_SHELL_LOCK_AUTO_LOCKING - bool "Automatic locking of the shell" - depends on TEST_KCONFIG - select MODULE_SHELL_LOCK +endif # USEMODULE_SHELL_LOCK diff --git a/sys/ssp/Kconfig b/sys/ssp/Kconfig deleted file mode 100644 index aa55cd105ebf..000000000000 --- a/sys/ssp/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (c) 2023 Inria -# -# 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_SSP - bool "Stack Smashing Protector (SSP) helper functions" - depends on TEST_KCONFIG - - select HAS_SSP diff --git a/sys/test_utils/Kconfig b/sys/test_utils/Kconfig deleted file mode 100644 index 72bf1e6e40ad..000000000000 --- a/sys/test_utils/Kconfig +++ /dev/null @@ -1,17 +0,0 @@ -# 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. -# - -menu "Test utilities" - depends on TEST_KCONFIG - -rsource "dummy_thread/Kconfig" -rsource "interactive_sync/Kconfig" -rsource "netdev_eth_minimal/Kconfig" -rsource "netdev_ieee802154_minimal/Kconfig" -rsource "print_stack_usage/Kconfig" -rsource "result_output/Kconfig" -endmenu # Test utilities diff --git a/sys/test_utils/dummy_thread/Kconfig b/sys/test_utils/dummy_thread/Kconfig deleted file mode 100644 index 9021290d0d63..000000000000 --- a/sys/test_utils/dummy_thread/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# 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_DUMMY_THREAD - bool "Dummy thread" - help - This module can be used to mess up the number of threads a bit, e.g., - for testing test scripts. diff --git a/sys/test_utils/interactive_sync/Kconfig b/sys/test_utils/interactive_sync/Kconfig deleted file mode 100644 index 7f888e48adb8..000000000000 --- a/sys/test_utils/interactive_sync/Kconfig +++ /dev/null @@ -1,15 +0,0 @@ -# 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_TEST_UTILS_INTERACTIVE_SYNC - bool "Interactive synchronization" - select MODULE_STDIN - -config MODULE_TEST_UTILS_INTERACTIVE_SYNC_SHELL - bool "Use the shell to synchronize" - depends on MODULE_TEST_UTILS_INTERACTIVE_SYNC - default y if MODULE_SHELL diff --git a/sys/test_utils/netdev_eth_minimal/Kconfig b/sys/test_utils/netdev_eth_minimal/Kconfig deleted file mode 100644 index f7553c309e1d..000000000000 --- a/sys/test_utils/netdev_eth_minimal/Kconfig +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright (c) 2022 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_TEST_UTILS_NETDEV_ETH_MINIMAL - bool "Minimal netdev Ethernet device processing" - depends on TEST_KCONFIG - select MODULE_EVENT - select MODULE_EVENT_THREAD - select MODULE_L2UTIL - select MODULE_OD - select MODULE_OD_STRING - select MODULE_SHELL diff --git a/sys/test_utils/netdev_ieee802154_minimal/Kconfig b/sys/test_utils/netdev_ieee802154_minimal/Kconfig deleted file mode 100644 index 1ee15aa2977d..000000000000 --- a/sys/test_utils/netdev_ieee802154_minimal/Kconfig +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright (c) 2022 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_TEST_UTILS_NETDEV_IEEE802154_MINIMAL - bool "Minimal netdev IEEE 802.15.4 device processing" - depends on TEST_KCONFIG - select MODULE_NETDEV - select MODULE_EVENT - select MODULE_EVENT_THREAD - select MODULE_L2UTIL - select MODULE_OD - select MODULE_OD_STRING - select MODULE_SHELL diff --git a/sys/test_utils/print_stack_usage/Kconfig b/sys/test_utils/print_stack_usage/Kconfig deleted file mode 100644 index 5dab13bf7838..000000000000 --- a/sys/test_utils/print_stack_usage/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright (c) 2022 Freie Universität Berlin -# 2022 Inria -# -# 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_TEST_UTILS_PRINT_STACK_USAGE - bool "Print stack usage metrics on stack exit" diff --git a/sys/test_utils/result_output/Kconfig b/sys/test_utils/result_output/Kconfig deleted file mode 100644 index 24069ade4cb6..000000000000 --- a/sys/test_utils/result_output/Kconfig +++ /dev/null @@ -1,43 +0,0 @@ -# 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_TEST_UTILS_RESULT_OUTPUT - bool "Use result output abstraction" - depends on TEST_KCONFIG - -if MODULE_TEST_UTILS_RESULT_OUTPUT - -choice - bool "Test utils result output" - default MODULE_TEST_UTILS_RESULT_OUTPUT_JSON - help - A common API that can format result output depending on the module - used. - -config MODULE_TEST_UTILS_RESULT_OUTPUT_TXT - bool "Text" - select MODULE_FMT - help - Output results in plain text. Intended for developer friendly console - output. - -config MODULE_TEST_UTILS_RESULT_OUTPUT_JSON - bool "JSON" - select MODULE_FMT - help - Output results json formatted results. This allows generic json parsers - to be used. Trailing commas may be present. - -config MODULE_TEST_UTILS_RESULT_OUTPUT_CHECK - bool "Check" - help - Asserts that the structure of the result output are correct. No output - is given. - -endchoice - -endif # MODULE_TEST_UTILS_RESULT_OUTPUT diff --git a/sys/timex/Kconfig b/sys/timex/Kconfig deleted file mode 100644 index 5077fde79fbb..000000000000 --- a/sys/timex/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# 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_TIMEX - bool "Timestamp utility" - depends on TEST_KCONFIG diff --git a/sys/tiny_strerror/Kconfig b/sys/tiny_strerror/Kconfig deleted file mode 100644 index fc37948c5ea7..000000000000 --- a/sys/tiny_strerror/Kconfig +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright (C) 2022 Otto-von-Guericke-Universität Magdeburg -# -# 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_TINY_STRERROR - bool - depends on TEST_KCONFIG - help - This module provides `tiny_strerror()`, a drop-in replacement for - `strerror()` that returns the errno macro name rather than a verbose - help description string. - -config MODULE_TINY_STRERROR_AS_STRERROR - bool - depends on TEST_KCONFIG - select MODULE_TINY_STRERROR - help - This replaces all calls to `strerror()` with calls to `tiny_strerror()` - via linker magic. This may safe a bit of ROM. diff --git a/sys/trace/Kconfig b/sys/trace/Kconfig deleted file mode 100644 index db3ebce9be76..000000000000 --- a/sys/trace/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# Copyright (c) 2021 Inria -# -# 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_TRACE - bool "Trace program flows" - depends on TEST_KCONFIG - select ZTIMER_USEC diff --git a/sys/trickle/Kconfig b/sys/trickle/Kconfig deleted file mode 100644 index cd0ad475a863..000000000000 --- a/sys/trickle/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (c) 2023 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_TRICKLE - bool "Trickle Algorithm (RFC 6206)" - depends on TEST_KCONFIG - select ZTIMER_MSEC - select MODULE_RANDOM diff --git a/sys/tsrb/Kconfig b/sys/tsrb/Kconfig deleted file mode 100644 index e8042c9b395f..000000000000 --- a/sys/tsrb/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# 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_TSRB - bool "Thread-Safe ringbuffer" - depends on TEST_KCONFIG diff --git a/sys/uri_parser/Kconfig b/sys/uri_parser/Kconfig deleted file mode 100644 index 7e54a0d15f82..000000000000 --- a/sys/uri_parser/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# 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_URI_PARSER - bool "URI parser" - select MODULE_FMT - depends on TEST_KCONFIG diff --git a/sys/usb/Kconfig b/sys/usb/Kconfig index 15717d04efee..032c5728be4d 100644 --- a/sys/usb/Kconfig +++ b/sys/usb/Kconfig @@ -4,22 +4,8 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USB - bool "USB device" - depends on HAS_PERIPH_USBDEV || HAS_TINYUSB_DEVICE || MODULE_USBDEV_MOCK - depends on TEST_KCONFIG - help - Enable the USB device peripheral. - - -if KCONFIG_USB - -choice USB_IMPLEMENTATION - bool "USB implementation" - help - Select the USB implementation. -endchoice +if USEMODULE_PERIPH_USBDEV || USEMODULE_TINYUSB_DEVICE || USEMODULE_USBDEV_MOCK rsource "usbus/Kconfig" @@ -41,15 +27,15 @@ endmenu # Power management choice bool "USB specification version" -config USB_SPEC_BCDVERSION_2_0 - bool "USB v2.0" - help - The peripheral acts as an USB version 2.0 device. + config USB_SPEC_BCDVERSION_2_0 + bool "USB v2.0" + help + The peripheral acts as an USB version 2.0 device. -config USB_SPEC_BCDVERSION_1_1 - bool "USB v1.1" - help - The peripheral acts as an USB version 1.1 device. + config USB_SPEC_BCDVERSION_1_1 + bool "USB v1.1" + help + The peripheral acts as an USB version 1.1 device. endchoice @@ -64,7 +50,6 @@ config USB_PID hex "Product ID" depends on CUSTOM_USB_VID_PID range 0x0000 0xFFFF - # default 0x7D02 if MODULE_RIOTBOOT_DFU default 0x7D01 help You must provide your own PID. @@ -129,4 +114,4 @@ config USB_SERIAL_BYTE_LENGTH comment "WARNING: The serial string is empty!" depends on USB_SERIAL_STR = "" && USB_CUSTOM_SERIAL_STR -endif # KCONFIG_USB +endif # KUSEMODULE_PERIPH_USBDEV || USEMODULE_TINYUSB_DEVICE || USEMODULE_USBDEV_MOCK diff --git a/sys/usb/usbus/Kconfig b/sys/usb/usbus/Kconfig index 7fcf93cea0a4..4d40e809e5da 100644 --- a/sys/usb/usbus/Kconfig +++ b/sys/usb/usbus/Kconfig @@ -4,39 +4,9 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -choice USB_IMPLEMENTATION -menuconfig MODULE_USBUS - bool "USB Unified Stack (USBUS)" - depends on TEST_KCONFIG - depends on HAS_PERIPH_USBDEV || MODULE_USBDEV_MOCK - select MODULE_CORE_THREAD_FLAGS - select MODULE_EVENT - select MODULE_LUID - select MODULE_FMT - select MODULE_USBUS_CDC_ACM if REQUIRES_USB_STDIO - select MODULE_PERIPH_USBDEV if HAS_PERIPH_USBDEV && !MODULE_USBDEV_MOCK - -endchoice - -if MODULE_USBUS - -config MODULE_AUTO_INIT_USBUS - bool "Auto initialize USBUS" - depends on MODULE_AUTO_INIT - default y - -endif # MODULE_USBUS - -menuconfig KCONFIG_USEMODULE_USBUS - bool "Configure USB Unified Stack (USBUS)" +menu "Configure USB Unified Stack (USBUS)" depends on USEMODULE_USBUS - depends on KCONFIG_USB - help - Configure the USBUS module via Kconfig. - -if KCONFIG_USEMODULE_USBUS || MODULE_USBUS - config USBUS_AUTO_ATTACH bool "Auto attach" default y @@ -53,21 +23,20 @@ choice transfer large amount of data often over the control endpoint, a minimal size should be sufficient. -config USBUS_EP0_SIZE_8 - bool "8" + config USBUS_EP0_SIZE_8 + bool "8" -config USBUS_EP0_SIZE_16 - bool "16" + config USBUS_EP0_SIZE_16 + bool "16" -config USBUS_EP0_SIZE_32 - bool "32" + config USBUS_EP0_SIZE_32 + bool "32" -config USBUS_EP0_SIZE_64 - bool "64" + config USBUS_EP0_SIZE_64 + bool "64" endchoice - -endif # KCONFIG_USEMODULE_USBUS || MODULE_USBUS +endmenu # Configure USB Unified Stack (USBUS) rsource "cdc/Kconfig" rsource "dfu/Kconfig" diff --git a/sys/usb/usbus/cdc/acm/Kconfig b/sys/usb/usbus/cdc/acm/Kconfig index 897ce2b230fa..635907ae1d09 100644 --- a/sys/usb/usbus/cdc/acm/Kconfig +++ b/sys/usb/usbus/cdc/acm/Kconfig @@ -4,24 +4,13 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_USBUS_CDC_ACM - bool "Configure USBUS CDC ACM" - depends on USEMODULE_USBUS_CDC_ACM - depends on KCONFIG_USEMODULE_USBUS - help - Configure the USBUS CDC ACM module via Kconfig. -menuconfig MODULE_USBUS_CDC_ACM - bool "Configure USBUS CDC ACM" - depends on MODULE_USBUS - help - Configure the USBUS CDC ACM module via Kconfig. - -if MODULE_USBUS_CDC_ACM || KCONFIG_USEMODULE_USBUS_CDC_ACM +menu "USBUS CDC ACM" + depends on USEMODULE_USBUS_CDC_ACM config USBUS_CDC_ACM_STDIO_BUF_SIZE_EXP int "Buffer size for STDIN and STDOUT data (as exponent of 2^n)" - depends on USEMODULE_STDIO_CDC_ACM || MODULE_STDIO_CDC_ACM + depends on USEMODULE_STDIO_CDC_ACM default 7 range 0 31 help @@ -36,32 +25,18 @@ choice This configures the maximum amount of bytes (chars) sent per transfer over the USB connection. -config USBUS_CDC_ACM_BULK_EP_SIZE_8 - bool "8" + config USBUS_CDC_ACM_BULK_EP_SIZE_8 + bool "8" -config USBUS_CDC_ACM_BULK_EP_SIZE_16 - bool "16" + config USBUS_CDC_ACM_BULK_EP_SIZE_16 + bool "16" -config USBUS_CDC_ACM_BULK_EP_SIZE_32 - bool "32" + config USBUS_CDC_ACM_BULK_EP_SIZE_32 + bool "32" -config USBUS_CDC_ACM_BULK_EP_SIZE_64 - bool "64" + config USBUS_CDC_ACM_BULK_EP_SIZE_64 + bool "64" endchoice -endif # MODULE_USBUS_CDC_ACM - -# extend STDIO options -choice STDIO_IMPLEMENTATION - -config MODULE_STDIO_CDC_ACM - bool "CDC ACM" - depends on MODULE_USBUS || KCONFIG_USEMODULE_USBUS - depends on MODULE_USBUS_CDC_ACM && !MODULE_TINYUSB_DEVICE - select MODULE_ISRPIPE - select MODULE_STDIO_AVAILABLE - select USE_STDOUT_BUFFERED - - -endchoice +endmenu # USBUS CDC ACM diff --git a/sys/usb/usbus/cdc/ecm/Kconfig b/sys/usb/usbus/cdc/ecm/Kconfig index de2fc59b23c3..44ce9bee9ade 100644 --- a/sys/usb/usbus/cdc/ecm/Kconfig +++ b/sys/usb/usbus/cdc/ecm/Kconfig @@ -4,20 +4,9 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_USBUS_CDC_ECM - bool "Configure USBUS CDC ECM" - depends on USEMODULE_USBUS_CDC_ECM - depends on KCONFIG_USEMODULE_USBUS - help - Configure the USBUS CDC ECM module via Kconfig. -menuconfig MODULE_USBUS_CDC_ECM - bool "Configure USBUS CDC ECM" - depends on MODULE_USBUS - help - Configure the USBUS CDC ECM module via Kconfig. - -if KCONFIG_USEMODULE_USBUS_CDC_ECM || MODULE_USBUS_CDC_ECM +menu "USBUS CDC ECM" + depends on USEMODULE_USBUS_CDC_ECM config USBUS_CDC_ECM_CONFIG_SPEED_IND bool "Configure upload and download speeds independently" @@ -47,4 +36,4 @@ config USBUS_CDC_ECM_CONFIG_SPEED_UPSTREAM This is the link upload speed, defined in bits/second, that the USB peripheral will report to the host. -endif # KCONFIG_USEMODULE_USBUS_CDC_ECM || MODULE_USBUS_CDC_ECM +endmenu # USBUS CDC ECM diff --git a/sys/usb/usbus/dfu/Kconfig b/sys/usb/usbus/dfu/Kconfig index 34c8e0e45713..cd979287c80b 100644 --- a/sys/usb/usbus/dfu/Kconfig +++ b/sys/usb/usbus/dfu/Kconfig @@ -5,18 +5,9 @@ # General Public License v2.1. See the file LICENSE in the top level # directory for more details. # -menuconfig KCONFIG_USEMODULE_USBUS_DFU - bool "Configure USBUS DFU" - depends on USEMODULE_USBUS_DFU - depends on KCONFIG_USEMODULE_USBUS - -menuconfig MODULE_USBUS_DFU - bool "Configure USBUS DFU" - depends on MODULE_USBUS - help - Configure the USBUS DFU module via Kconfig. -if KCONFIG_USEMODULE_USBUS_DFU || MODULE_USBUS_DFU +menu "USBUS DFU" + depends on USEMODULE_USBUS_DFU config USB_DFU_DETACH_TIMEOUT_MS int @@ -26,7 +17,7 @@ config USB_DFU_DETACH_TIMEOUT_MS help Indicates the detach timeout USB device should advertise to the host USB. Host USB should abort the pending operation if - device doesn't detach after this timeout. + device doesnt detach after this timeout. config CUSTOM_RIOTBOOT_MAGIC_ADDR bool "Use custom DFU magic address" @@ -37,4 +28,4 @@ config RIOTBOOT_MAGIC_ADDR int "DFU magic address" depends on CUSTOM_RIOTBOOT_MAGIC_ADDR -endif # KCONFIG_USEMODULE_USBUS_DFU || MODULE_USBUS_DFU +endmenu # USBUS DFU diff --git a/sys/usb/usbus/hid/Kconfig b/sys/usb/usbus/hid/Kconfig index 6a004280b450..250fc3ec4bde 100644 --- a/sys/usb/usbus/hid/Kconfig +++ b/sys/usb/usbus/hid/Kconfig @@ -5,12 +5,7 @@ # directory for more details. # -menuconfig MODULE_USBUS_HID - bool "USB HID support" - depends on MODULE_USBUS - select MODULE_ISRPIPE_READ_TIMEOUT - config USBUS_HID_INTERRUPT_EP_SIZE int "Interrupt endpoint size in bytes" default 64 - depends on MODULE_USBUS_HID + depends on USEMODULE_USBUS_HID diff --git a/sys/usb/usbus/msc/Kconfig b/sys/usb/usbus/msc/Kconfig index f31978ff8cad..d452addd9d81 100644 --- a/sys/usb/usbus/msc/Kconfig +++ b/sys/usb/usbus/msc/Kconfig @@ -1,20 +1,4 @@ -# Copyright (c) 2021 Mesotic SAS -# -# 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_USBUS_MSC - bool "USBUS Mass Storage Class" - depends on MODULE_USBUS - select MODULE_MTD - select MODULE_MTD_WRITE_PAGE - select USEMODULE_USBUS_MSC - - help - Configure the USBUS MSC module via Kconfig. - -if MODULE_USBUS_MSC +if USEMODULE_USBUS_MSC config USBUS_MSC_AUTO_MTD bool "Automatically export all MTD devices via USB" @@ -35,4 +19,4 @@ config USBUS_MSC_PRODUCT_REV string "MSC Product Revision" default "1.0" -endif # MODULE_USBUS_MSC +endif # USEMODULE_USBUS_MSC diff --git a/sys/usb_board_reset/Kconfig b/sys/usb_board_reset/Kconfig deleted file mode 100644 index d548603d5ba2..000000000000 --- a/sys/usb_board_reset/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# 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_USB_BOARD_RESET - bool "Trigger a board reset via USB CDC ACM" - depends on TEST_KCONFIG - depends on MODULE_USBUS_CDC_ACM || (MODULE_TINYUSB_DEVICE && MODULE_TINYUSB_CLASS_CDC) \ - || MODULE_STDIO_USB_SERIAL_JTAG diff --git a/sys/ut_process/Kconfig b/sys/ut_process/Kconfig deleted file mode 100644 index d7b8bd7b2bd5..000000000000 --- a/sys/ut_process/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (c) 2023 Inria -# -# 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_UT_PROCESS - bool "URI template processor" - depends on TEST_KCONFIG - - select MODULE_FMT diff --git a/sys/uuid/Kconfig b/sys/uuid/Kconfig deleted file mode 100644 index 7def459c7a14..000000000000 --- a/sys/uuid/Kconfig +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2023 Inria -# -# 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_UUID - bool "RFC 4122 compliant UUID's" - depends on TEST_KCONFIG - - select MODULE_HASHES - select MODULE_RANDOM - select MODULE_FMT diff --git a/sys/vfs/Kconfig b/sys/vfs/Kconfig deleted file mode 100644 index 65703c069216..000000000000 --- a/sys/vfs/Kconfig +++ /dev/null @@ -1,24 +0,0 @@ -# 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_VFS - bool "Virtual File System (VFS)" - depends on TEST_KCONFIG - select MODULE_POSIX_HEADERS - -config MODULE_VFS_DEFAULT - bool "Use default (board specific) file systems and mount points" - depends on MODULE_VFS - imply MODULE_VFS_AUTO_MOUNT - -config MODULE_VFS_AUTO_MOUNT - bool "Automatically mount configured file systems" - depends on MODULE_VFS - -config MODULE_VFS_AUTO_FORMAT - bool "Automatically format configured file systems if mount fails" - depends on MODULE_VFS diff --git a/sys/xtimer/Kconfig b/sys/xtimer/Kconfig deleted file mode 100644 index ea4c879a0d03..000000000000 --- a/sys/xtimer/Kconfig +++ /dev/null @@ -1,28 +0,0 @@ -# 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_XTIMER - bool "xtimer" - depends on HAS_PERIPH_TIMER - select MODULE_PERIPH_TIMER - select MODULE_DIV if !MODULE_ZTIMER_XTIMER_COMPAT - select ZTIMER_USEC if !MODULE_XTIMER_NO_ZTIMER_DEFAULT - help - Include xtimer module. xtimer requires a low-level timer implementation - that can be provided either by a peripheral timer or the ztimer module - when MODULE_XTIMER_ON_ZTIMER is enabled. - -if MODULE_XTIMER - -config MODULE_XTIMER_NO_ZTIMER_DEFAULT - bool "xtimer does not select ztimer" - -config MODULE_AUTO_INIT_XTIMER - bool "Auto-init xtimer" - default y if MODULE_AUTO_INIT && !MODULE_ZTIMER_XTIMER_COMPAT - -endif # MODULE_XTIMER diff --git a/sys/ztimer/Kconfig b/sys/ztimer/Kconfig deleted file mode 100644 index b9b56d422dd5..000000000000 --- a/sys/ztimer/Kconfig +++ /dev/null @@ -1,278 +0,0 @@ -# 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 HAVE_ZTIMER_PERIPH_LPTIMER - bool - help - Indicates that ZTIMER_PERIPH_LPTIMER configuration is available. - -menu "ztimer - High level timer abstraction layer" - -config ZTIMER_CUSTOM_BACKEND_CONFIGURATION - bool "Override default backend selection" - -config MODULE_ZTIMER_NO_PERIPH_RTT - bool "Disable ztimer_periph_rtt auto-inclusion" - help - This module disables the auto-inclusion of ztimer_periph_rtt as a backend - for ztimer_msec and ztimer_sec. - -menu "Backends" - visible if ZTIMER_CUSTOM_BACKEND_CONFIGURATION - -config MODULE_ZTIMER_PERIPH_RTC - bool "RTC peripheral" - depends on HAS_PERIPH_RTC - select MODULE_PERIPH_RTC - -config MODULE_ZTIMER_PERIPH_RTT - bool "RTT peripheral" - depends on HAS_PERIPH_RTT - select MODULE_PERIPH_RTT - -config MODULE_ZTIMER_PERIPH_PTP - bool "PTP peripheral" - depends on HAS_PERIPH_PTP_TIMER - select MODULE_PERIPH_PTP_TIMER - -config MODULE_ZTIMER_PERIPH_TIMER - bool "Timer peripheral" - depends on HAS_PERIPH_TIMER - select MODULE_PERIPH_TIMER - -config MODULE_ZTIMER_PERIPH_LPTIMER - bool "Low-power Timer peripheral" - select MODULE_ZTIMER_PERIPH_TIMER - -endmenu # Backends - -menu "Clocks" - -# TODO: this extra indirection in the entry point for ztimer_usec is required -# to allow xtimer compatibility modules to depend on ztimer being there while -# still selecting ztimer_usec. -config ZTIMER_USEC - bool "Microseconds" - select MODULE_ZTIMER_USEC - select MODULE_ZTIMER_PERIPH_TIMER - select MODULE_ZTIMER - -config MODULE_ZTIMER_USEC - bool - -config MODULE_ZTIMER_MSEC - bool "Milliseconds" - select MODULE_ZTIMER - -choice ZTIMER_MSEC_BACKEND - bool "Backend" - depends on MODULE_ZTIMER_MSEC - default ZTIMER_MSEC_BACKEND_LPTIMER if HAVE_ZTIMER_PERIPH_LPTIMER - default ZTIMER_MSEC_BACKEND_RTT if !MODULE_ZTIMER_NO_PERIPH_RTT - default ZTIMER_MSEC_BACKEND_TIMER - -config ZTIMER_MSEC_BACKEND_TIMER - bool "Timer" - select MODULE_ZTIMER_PERIPH_TIMER - -config ZTIMER_MSEC_BACKEND_RTT - bool "RTT" - depends on HAS_PERIPH_RTT - select MODULE_ZTIMER_PERIPH_RTT - -config ZTIMER_MSEC_BACKEND_LPTIMER - bool "Low Power Timer" - depends on HAVE_ZTIMER_PERIPH_LPTIMER - select MODULE_ZTIMER_PERIPH_LPTIMER - -endchoice - -config MODULE_ZTIMER_SEC - bool "Seconds" - select MODULE_ZTIMER - -choice - bool "Backend" - depends on MODULE_ZTIMER_SEC - default ZTIMER_SEC_BACKEND_LPTIMER if HAVE_ZTIMER_PERIPH_LPTIMER - default ZTIMER_SEC_BACKEND_RTT if !MODULE_ZTIMER_NO_PERIPH_RTT - default ZTIMER_SEC_BACKEND_TIMER - -config ZTIMER_SEC_BACKEND_TIMER - bool "Timer" - select MODULE_ZTIMER_PERIPH_TIMER - -config ZTIMER_SEC_BACKEND_RTT - bool "RTT" - depends on HAS_PERIPH_RTT - select MODULE_ZTIMER_PERIPH_RTT - -config ZTIMER_SEC_BACKEND_RTC - bool "RTC" - depends on HAS_PERIPH_RTC - select MODULE_ZTIMER_PERIPH_RTC - -config ZTIMER_SEC_BACKEND_LPTIMER - bool "Low Power Timer" - depends on HAVE_ZTIMER_PERIPH_LPTIMER - select MODULE_ZTIMER_PERIPH_LPTIMER - -endchoice - -endmenu # Clocks - -menu "Frequency conversion" - depends on MODULE_ZTIMER - -config MODULE_ZTIMER_CONVERT_MULDIV64 - bool "64-bits arithmetic conversion" - select MODULE_ZTIMER_CONVERT - help - muldiv64 is very precise, but the overhead is the highest. On MCUs - without hardware division this might not be a good choice. - -config MODULE_ZTIMER_CONVERT_FRAC - bool "Fractional conversion" - select MODULE_ZTIMER_CONVERT - select MODULE_FRAC - help - Frac can be used for arbitrary frequency conversions, but trades in - precision to gain speed. In cases where shift conversion cannot be used, - this is likely the best trade off. - -config MODULE_ZTIMER_CONVERT_SHIFT - bool "Shift conversion" - select MODULE_ZTIMER_CONVERT - help - Shift conversion is both fast and super precise, but cannot work for - arbitrary frequencies. It's kind of a software prescaler for the - underlying clock. So if the hardware clock frequency and the target - clock frequency differ by a factor that is a power of two, this is the - best choice - otherwise it is simply not usable. - -config MODULE_ZTIMER_CONVERT - bool - -endmenu # Frequency conversion - - -menu "xtimer and evtimer compatibility" - -choice - bool "xtimer compatibility" - depends on MODULE_XTIMER && MODULE_ZTIMER - -config MODULE_ZTIMER_XTIMER_COMPAT - bool "map xtimer calls to ztimer" - select MODULE_DIV - select MODULE_ZTIMER_USEC - select MODULE_ZTIMER_PERIPH_TIMER - help - This is a wrapper of xtimer API on ztimer_usec. - -config MODULE_XTIMER_ON_ZTIMER - bool "ztimer_usec as timer backend for xtimer" - select MODULE_ZTIMER_USEC - select MODULE_ZTIMER_PERIPH_TIMER -endchoice - -config MODULE_ZTIMER64_XTIMER_COMPAT - bool "map xtimer calls to ztimer64" - select MODULE_DIV - select MODULE_ZTIMER64 - select MODULE_ZTIMER64_USEC - help - This is a wrapper of xtimer API on ztimer64_usec. - -config MODULE_EVTIMER_ON_ZTIMER - bool "Use ztimer_msec as timer backend for evtimer" - depends on MODULE_ZTIMER_MSEC - -endmenu # xtimer compatibility - -config MODULE_ZTIMER - bool - depends on TEST_KCONFIG - select MODULE_ZTIMER_CORE - select MODULE_ZTIMER_CONVERT_FRAC - select MODULE_ZTIMER_CONVERT_SHIFT - select MODULE_ZTIMER_EXTEND - -if MODULE_ZTIMER - -config MODULE_AUTO_INIT_ZTIMER - bool "Auto initialize ztimer" - depends on MODULE_AUTO_INIT - select MODULE_ZTIMER_INIT - default y - -config MODULE_ZTIMER_AUTO_ADJUST - bool "Auto adjust ztimer set and sleep values" - select MODULE_ZTIMER_OVERHEAD - -config MODULE_ZTIMER_NOW64 - bool "Use a 64-bits result for ztimer_now()" - -config MODULE_ZTIMER_OVERHEAD - bool "Overhead measurement functionalities" - -config MODULE_ZTIMER_MOCK - bool "Mock backend (for testing only)" - help - This ztimer module implements a virtual clock that can be used for - unittests. It can be manually adjusted to different timestamps and - manually fired to simulate different scenarios and test the ztimer - implementation using this as a backing timer. - -menuconfig MODULE_ZTIMER_ONDEMAND - bool "Run ztimer clocks only on demand" - help - This ztimer extensions keeps track of ztimer users and may disable - underlying peripherals if not users are requiring a ztimer clock. - -if MODULE_ZTIMER_ONDEMAND - -config MODULE_ZTIMER_ONDEMAND_STRICT - bool "Strict ztimer on demand" - help - Enforce ztimer clocks to be running before calling ztimer_now(). - -config MODULE_ZTIMER_ONDEMAND_TIMER - bool "Run Timer only on demand" - depends on MODULE_ZTIMER_PERIPH_TIMER - help - Turn off the underlying Timer peripheral if related ztimer clocks - have no users. - -config MODULE_ZTIMER_ONDEMAND_RTT - bool "Run RTT only on demand" - depends on MODULE_ZTIMER_PERIPH_RTT - help - Turn off the underlying RTT peripheral if related ztimer clocks - have no users. - -config MODULE_ZTIMER_ONDEMAND_RTC - bool "Run RTC only on demand" - depends on MODULE_ZTIMER_PERIPH_RTC - help - Turn off the underlying RTC peripheral if related ztimer clocks - have no users. - -endif # MODULE_ZTIMER_ONDEMAND - -config MODULE_ZTIMER_INIT - bool - -config MODULE_ZTIMER_CORE - bool - -config MODULE_ZTIMER_EXTEND - bool - -endif # MODULE_ZTIMER - -endmenu diff --git a/sys/ztimer64/Kconfig b/sys/ztimer64/Kconfig deleted file mode 100644 index bb0238c6f738..000000000000 --- a/sys/ztimer64/Kconfig +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright (c) 2021 Inria -# -# 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. -# - -menu "ztimer64 - High level timer abstraction layer" - -# TODO: this extra indirection in the entry point for ztimer_usec is required -# to allow xtimer compatibility modules to depend on ztimer being there while -# still selecting ztimer_usec. -config ZTIMER64_USEC - bool "Microseconds 64bit Timer" - select ZTIMER_USEC - select MODULE_ZTIMER64 - select MODULE_ZTIMER64_USEC - -config MODULE_ZTIMER64_USEC - bool - select MODULE_ZTIMER_USEC - -config MODULE_ZTIMER64_MSEC - bool "Milliseconds 64bit Timer" - select MODULE_ZTIMER_MSEC - -config MODULE_ZTIMER64_SEC - bool "Milliseconds 64bit Timer" - select MODULE_ZTIMER_SEC - -config MODULE_ZTIMER64_INIT - bool - -config MODULE_ZTIMER64 - bool - depends on TEST_KCONFIG - -if MODULE_ZTIMER64 -config MODULE_AUTO_INIT_ZTIMER64 - bool "Auto initialize ztimer64" - depends on MODULE_AUTO_INIT - select MODULE_ZTIMER_INIT - select MODULE_ZTIMER64_INIT - default y -endif # MODULE_ZTIMER64 - -endmenu diff --git a/tests/Makefile.tests_common b/tests/Makefile.tests_common index add1f2eb5d75..cc8dc55b5cb1 100644 --- a/tests/Makefile.tests_common +++ b/tests/Makefile.tests_common @@ -5,11 +5,6 @@ ifneq (,$(wildcard $(CURDIR)/tests*/.)) DEFAULT_MODULE += test_utils_interactive_sync # add stack metric printing configuration when testing Kconfig DEFAULT_MODULE += test_utils_print_stack_usage - - # do the same for Kconfig builds - ifeq (1,$(TEST_KCONFIG)) - KCONFIG_ADD_CONFIG += $(RIOTBASE)/tests/test_utils.config - endif endif # terminate native when the test is complete diff --git a/tests/bench/sys_atomic_utils/app.config.test b/tests/bench/sys_atomic_utils/app.config.test deleted file mode 100644 index 12e5a9d55d72..000000000000 --- a/tests/bench/sys_atomic_utils/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_ATOMIC_UTILS=y -CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/board_microbit/app.config.test b/tests/board_microbit/app.config.test deleted file mode 100644 index a17624a78b51..000000000000 --- a/tests/board_microbit/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_MICROBIT=y diff --git a/tests/build_system/cpp_exclude/app.config.test b/tests/build_system/cpp_exclude/app.config.test deleted file mode 100644 index 8981ebc1b367..000000000000 --- a/tests/build_system/cpp_exclude/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -CONFIG_MODULE_CPP=y -CONFIG_MODULE_LIBSTDCPP=y -CONFIG_MODULE_MODULE_EXCLUDE=y diff --git a/tests/build_system/cpp_exclude/external_modules/module_exclude/Kconfig b/tests/build_system/cpp_exclude/external_modules/module_exclude/Kconfig deleted file mode 100644 index b4b67eda6e6e..000000000000 --- a/tests/build_system/cpp_exclude/external_modules/module_exclude/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (C) 2022 Inria -# -# 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_MODULE_EXCLUDE - bool "Exclude module" - depends on TEST_KCONFIG - depends on HAS_CPP - depends on HAS_LIBSTDCPP diff --git a/tests/build_system/cpp_ext/app.config.test b/tests/build_system/cpp_ext/app.config.test deleted file mode 100644 index c841e3260a7f..000000000000 --- a/tests/build_system/cpp_ext/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -CONFIG_MODULE_CPP=y -CONFIG_MODULE_LIBSTDCPP=y -CONFIG_MODULE_MODULE=y diff --git a/tests/build_system/cpp_ext/external_modules/module/Kconfig b/tests/build_system/cpp_ext/external_modules/module/Kconfig deleted file mode 100644 index 88a687e7c92f..000000000000 --- a/tests/build_system/cpp_ext/external_modules/module/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (C) 2022 Inria -# -# 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_MODULE - bool "Module" - depends on TEST_KCONFIG - depends on HAS_CPP - depends on HAS_LIBSTDCPP diff --git a/tests/build_system/external_board_dirs/esp-ci-boards/esp32-ci/Kconfig b/tests/build_system/external_board_dirs/esp-ci-boards/esp32-ci/Kconfig index 6c3df391158f..1644cfa36c29 100644 --- a/tests/build_system/external_board_dirs/esp-ci-boards/esp32-ci/Kconfig +++ b/tests/build_system/external_board_dirs/esp-ci-boards/esp32-ci/Kconfig @@ -12,31 +12,5 @@ config BOARD_ESP32_CI default y select BOARD_COMMON_ESP32 select CPU_MODEL_ESP32_WROVER - select HAS_ARDUINO_PINS - select HAS_ESP_RTC_TIMER_32K - select HAS_ESP_JTAG - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI - select HAS_SDCARD_SPI - - select HAVE_ILI9341 - select MODULE_BOARD_ESP32-CI - -config MODULE_BOARD_ESP32-CI - bool - -if TEST_KCONFIG - -choice ESP32_I2C_IMPLEMENTATION - default MODULE_ESP_I2C_HW -endchoice - -config MODULE_ESP_HW_COUNTER - default y - depends on MODULE_PERIPH_TIMER - -endif # TEST_KCONFIG source "$(RIOTBOARD)/common/esp32/Kconfig" diff --git a/tests/build_system/external_board_dirs/esp-ci-boards/esp32-ci/esp32-ci.config b/tests/build_system/external_board_dirs/esp-ci-boards/esp32-ci/esp32-ci.config deleted file mode 100644 index 44653e261c4d..000000000000 --- a/tests/build_system/external_board_dirs/esp-ci-boards/esp32-ci/esp32-ci.config +++ /dev/null @@ -1,9 +0,0 @@ -# Sets up configuration for openocd -CONFIG_MODULE_ESP_JTAG=y -CONFIG_MODULE_ESP_IDF_GPIO_HAL=y -CONFIG_MODULE_ESP_IDF_HEAP=y -CONFIG_MODULE_ESP_LOG_STARTUP=y -CONFIG_MODULE_ESP_LOG_TAGGED=y -CONFIG_MODULE_ESP_QEMU=y -CONFIG_MODULE_ESP_SPI_RAM=y -CONFIG_MODULE_WS281X_ESP32_HW=n diff --git a/tests/build_system/external_board_dirs/esp-ci-boards/esp32c3-ci/Kconfig b/tests/build_system/external_board_dirs/esp-ci-boards/esp32c3-ci/Kconfig index 98f55d83a8e2..2f36737fd197 100644 --- a/tests/build_system/external_board_dirs/esp-ci-boards/esp32c3-ci/Kconfig +++ b/tests/build_system/external_board_dirs/esp-ci-boards/esp32c3-ci/Kconfig @@ -13,25 +13,5 @@ config BOARD_ESP32C3_CI default y select BOARD_COMMON_ESP32C3 select CPU_MODEL_ESP32C3_MINI_1X - select HAS_ARDUINO_PINS - select HAS_ESP_RTC_TIMER_32K - select HAS_ESP_JTAG - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI - select MODULE_BOARD_ESP32C3-CI - select MODULE_ESP_IDF_HEAP - -config MODULE_BOARD_ESP32C3-CI - bool - -if TEST_KCONFIG - -choice ESP32_I2C_IMPLEMENTATION - default MODULE_ESP_I2C_HW -endchoice - -endif # TEST_KCONFIG source "$(RIOTBOARD)/common/esp32c3/Kconfig" diff --git a/tests/build_system/external_board_dirs/esp-ci-boards/esp32c3-ci/esp32c3-ci.config b/tests/build_system/external_board_dirs/esp-ci-boards/esp32c3-ci/esp32c3-ci.config deleted file mode 100644 index e3b2ed67739a..000000000000 --- a/tests/build_system/external_board_dirs/esp-ci-boards/esp32c3-ci/esp32c3-ci.config +++ /dev/null @@ -1,6 +0,0 @@ -# Sets up configuration for openocd -CONFIG_MODULE_ESP_JTAG=y -CONFIG_MODULE_ESP_IDF_HEAP=y -CONFIG_MODULE_ESP_LOG_STARTUP=y -CONFIG_MODULE_ESP_LOG_TAGGED=y -CONFIG_MODULE_WS281X_ESP32_HW=n diff --git a/tests/build_system/external_board_dirs/esp-ci-boards/esp32s2-ci/Kconfig b/tests/build_system/external_board_dirs/esp-ci-boards/esp32s2-ci/Kconfig index a565e64d0954..e842f08ac833 100644 --- a/tests/build_system/external_board_dirs/esp-ci-boards/esp32s2-ci/Kconfig +++ b/tests/build_system/external_board_dirs/esp-ci-boards/esp32s2-ci/Kconfig @@ -13,30 +13,5 @@ config BOARD_ESP32S2_CI default y select BOARD_COMMON_ESP32S2 select CPU_MODEL_ESP32S2_MINI_1X_N4R2 - select HAS_ARDUINO_PINS - select HAS_ESP_JTAG - select HAS_ESP_RTC_TIMER_32K - select HAS_PERIPH_ADC - select HAS_PERIPH_DAC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI - - select MODULE_BOARD_ESP32S2-CI - -config MODULE_BOARD_ESP32S2-CI - bool - -if TEST_KCONFIG - -choice ESP32_I2C_IMPLEMENTATION - default MODULE_ESP_I2C_HW -endchoice - -config MODULE_ESP_HW_COUNTER - default y - depends on MODULE_PERIPH_TIMER - -endif # TEST_KCONFIG source "$(RIOTBOARD)/common/esp32s2/Kconfig" diff --git a/tests/build_system/external_board_dirs/esp-ci-boards/esp32s2-ci/esp32s2-ci.config b/tests/build_system/external_board_dirs/esp-ci-boards/esp32s2-ci/esp32s2-ci.config deleted file mode 100644 index 7f09f6bcb35b..000000000000 --- a/tests/build_system/external_board_dirs/esp-ci-boards/esp32s2-ci/esp32s2-ci.config +++ /dev/null @@ -1,7 +0,0 @@ -# Sets up configuration for openocd -CONFIG_MODULE_ESP_IDF_HEAP=y -CONFIG_MODULE_ESP_JTAG=y -CONFIG_MODULE_ESP_LOG_STARTUP=y -CONFIG_MODULE_ESP_LOG_TAGGED=y -CONFIG_MODULE_ESP_SPI_RAM=y -CONFIG_MODULE_WS281X_ESP32_HW=n diff --git a/tests/build_system/external_board_dirs/esp-ci-boards/esp32s3-ci/Kconfig b/tests/build_system/external_board_dirs/esp-ci-boards/esp32s3-ci/Kconfig index cccfc875d7c6..8c202a95583b 100644 --- a/tests/build_system/external_board_dirs/esp-ci-boards/esp32s3-ci/Kconfig +++ b/tests/build_system/external_board_dirs/esp-ci-boards/esp32s3-ci/Kconfig @@ -13,29 +13,5 @@ config BOARD_ESP32S3_CI default y select BOARD_COMMON_ESP32S3 select CPU_MODEL_ESP32S3_WROOM_1X_N8R8 - select HAS_ARDUINO_PINS - select HAS_ESP_JTAG - select HAS_ESP_RTC_TIMER_32K - select HAS_PERIPH_ADC - select HAS_PERIPH_I2C - select HAS_PERIPH_PWM - select HAS_PERIPH_SPI - - select MODULE_BOARD_ESP32S3-CI - -config MODULE_BOARD_ESP32S3-CI - bool - -if TEST_KCONFIG - -choice ESP32_I2C_IMPLEMENTATION - default MODULE_ESP_I2C_HW -endchoice - -config MODULE_ESP_HW_COUNTER - default y - depends on MODULE_PERIPH_TIMER - -endif # TEST_KCONFIG source "$(RIOTBOARD)/common/esp32s3/Kconfig" diff --git a/tests/build_system/external_board_dirs/esp-ci-boards/esp32s3-ci/esp32s3-ci.config b/tests/build_system/external_board_dirs/esp-ci-boards/esp32s3-ci/esp32s3-ci.config deleted file mode 100644 index 7f09f6bcb35b..000000000000 --- a/tests/build_system/external_board_dirs/esp-ci-boards/esp32s3-ci/esp32s3-ci.config +++ /dev/null @@ -1,7 +0,0 @@ -# Sets up configuration for openocd -CONFIG_MODULE_ESP_IDF_HEAP=y -CONFIG_MODULE_ESP_JTAG=y -CONFIG_MODULE_ESP_LOG_STARTUP=y -CONFIG_MODULE_ESP_LOG_TAGGED=y -CONFIG_MODULE_ESP_SPI_RAM=y -CONFIG_MODULE_WS281X_ESP32_HW=n diff --git a/tests/build_system/external_board_dirs/esp-ci-boards/esp8266-ci/Kconfig b/tests/build_system/external_board_dirs/esp-ci-boards/esp8266-ci/Kconfig index f791329e25ec..a52f876a2c64 100644 --- a/tests/build_system/external_board_dirs/esp-ci-boards/esp8266-ci/Kconfig +++ b/tests/build_system/external_board_dirs/esp-ci-boards/esp8266-ci/Kconfig @@ -13,9 +13,4 @@ config BOARD_ESP8266_CI select BOARD_COMMON_ESP8266 select CPU_MODEL_ESP8266_ESP_12X -config MODULE_ESP_SW_TIMER - default y - depends on TEST_KCONFIG - depends on MODULE_PERIPH_TIMER - source "$(RIOTBOARD)/common/esp8266/Kconfig" diff --git a/tests/build_system/external_board_dirs/esp-ci-boards/esp8266-ci/Makefile.features b/tests/build_system/external_board_dirs/esp-ci-boards/esp8266-ci/Makefile.features index 2ad25ff5c4cc..5ebe212f55b0 100644 --- a/tests/build_system/external_board_dirs/esp-ci-boards/esp8266-ci/Makefile.features +++ b/tests/build_system/external_board_dirs/esp-ci-boards/esp8266-ci/Makefile.features @@ -1,5 +1 @@ include $(RIOTBOARD)/esp8266-olimex-mod/Makefile.features - -ifeq (1, $(TEST_KCONFIG)) - KCONFIG_ADD_CONFIG += $(BOARDDIR)/$(BOARD).config -endif diff --git a/tests/build_system/external_board_dirs/esp-ci-boards/esp8266-ci/esp8266-ci.config b/tests/build_system/external_board_dirs/esp-ci-boards/esp8266-ci/esp8266-ci.config deleted file mode 100644 index e846e7274f36..000000000000 --- a/tests/build_system/external_board_dirs/esp-ci-boards/esp8266-ci/esp8266-ci.config +++ /dev/null @@ -1,4 +0,0 @@ -# Sets up configuration for openocd -CONFIG_MODULE_ESP_LOG_STARTUP=y -CONFIG_MODULE_ESP_LOG_TAGGED=y -CONFIG_MODULE_ESP_QEMU=y diff --git a/tests/build_system/external_board_dirs/netdev-ci-boards/nrf52840-ci-eth/Kconfig b/tests/build_system/external_board_dirs/netdev-ci-boards/nrf52840-ci-eth/Kconfig index a1d646571a2d..4801b17a9a18 100644 --- a/tests/build_system/external_board_dirs/netdev-ci-boards/nrf52840-ci-eth/Kconfig +++ b/tests/build_system/external_board_dirs/netdev-ci-boards/nrf52840-ci-eth/Kconfig @@ -12,18 +12,5 @@ config BOARD_NRF52840DK_CI_ETH default y select BOARDS_COMMON_NRF52XXXDK select CPU_MODEL_NRF52840XXAA - select HAS_PERIPH_PWM - select HAS_PERIPH_USBDEV - select HAS_VDD_LC_FILTER_REG0 - select HAVE_MTD_SPI_NOR - - # bring ethernet drivers - select HAVE_W5100 - select HAVE_ETHOS - select HAVE_DOSE - select HAVE_ENCX24J600 - select HAVE_ENC28J60 - - select MODULE_BOARDS_COMMON_NRF52XXXDK if TEST_KCONFIG source "$(RIOTBOARD)/common/nrf52xxxdk/Kconfig" diff --git a/tests/build_system/external_pkg_dirs/app.config.test b/tests/build_system/external_pkg_dirs/app.config.test deleted file mode 100644 index 0f5d4c5ae942..000000000000 --- a/tests/build_system/external_pkg_dirs/app.config.test +++ /dev/null @@ -1 +0,0 @@ -CONFIG_PACKAGE_EXTERNAL_PKG=y diff --git a/tests/build_system/external_pkg_dirs/external_pkgs/external_pkg/Kconfig b/tests/build_system/external_pkg_dirs/external_pkgs/external_pkg/Kconfig deleted file mode 100644 index 9239ba5685d4..000000000000 --- a/tests/build_system/external_pkg_dirs/external_pkgs/external_pkg/Kconfig +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) 2022 Niklaus Leuenberger -# -# 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 PACKAGE_EXTERNAL_PKG - bool "external_pkg package" - depends on TEST_KCONFIG diff --git a/tests/build_system/external_pkg_dirs/external_pkgs/external_pkg_not_used/Kconfig b/tests/build_system/external_pkg_dirs/external_pkgs/external_pkg_not_used/Kconfig deleted file mode 100644 index 7ad5849bd621..000000000000 --- a/tests/build_system/external_pkg_dirs/external_pkgs/external_pkg_not_used/Kconfig +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) 2022 Niklaus Leuenberger -# -# 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 PACKAGE_EXTERNAL_PKG_NOT_USED - bool "external_pkg_not_used package" - depends on TEST_KCONFIG diff --git a/tests/build_system/kconfig/Makefile b/tests/build_system/kconfig/Makefile index 4b7ac7d06a20..7b032b39959b 100644 --- a/tests/build_system/kconfig/Makefile +++ b/tests/build_system/kconfig/Makefile @@ -8,8 +8,4 @@ USEPKG += external_pkg_1 USEPKG += external_pkg_2 EXTERNAL_PKG_DIRS += external_pkgs -ifeq (1, $(TEST_KCONFIG)) - KCONFIG_ADD_CONFIG += $(APPDIR)/app.config -endif - include $(RIOTBASE)/Makefile.include diff --git a/tests/build_system/kconfig/app.config b/tests/build_system/kconfig/app.config index f305f1a55b60..82dd84bfca44 100644 --- a/tests/build_system/kconfig/app.config +++ b/tests/build_system/kconfig/app.config @@ -6,10 +6,6 @@ CONFIG_APP_MSG_1_TEXT="Message 1 defined in app.config file" # enable printing message 2 CONFIG_APP_MSG_2=y -# enable configuration of external modules via kconfig -CONFIG_KCONFIG_EXTERNAL_MODULE_1=y -CONFIG_KCONFIG_EXTERNAL_MODULE_2=y - # enable configuration of external packages via kconfig CONFIG_KCONFIG_EXTERNAL_PKG_1=y CONFIG_KCONFIG_EXTERNAL_PKG_2=y diff --git a/tests/build_system/kconfig/app.config.test b/tests/build_system/kconfig/app.config.test deleted file mode 100644 index cc1b7af9f547..000000000000 --- a/tests/build_system/kconfig/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -CONFIG_MODULE_EXTERNAL_MODULE_1=y -CONFIG_MODULE_EXTERNAL_MODULE_2=y -CONFIG_PACKAGE_EXTERNAL_PKG_1=y -CONFIG_PACKAGE_EXTERNAL_PKG_2=y diff --git a/tests/build_system/kconfig/external_modules/external_module_1/Kconfig b/tests/build_system/kconfig/external_modules/external_module_1/Kconfig index d15ced618c57..6f3306d486cd 100644 --- a/tests/build_system/kconfig/external_modules/external_module_1/Kconfig +++ b/tests/build_system/kconfig/external_modules/external_module_1/Kconfig @@ -11,7 +11,3 @@ config EXTERNAL_MODULE_1_MESSAGE default "External Message 1 defined in Kconfig file" endif # KCONFIG_EXTERNAL_MODULE_1 - -config MODULE_EXTERNAL_MODULE_1 - bool "Select external module 2" - depends on TEST_KCONFIG diff --git a/tests/build_system/kconfig/external_modules/external_module_2/Kconfig b/tests/build_system/kconfig/external_modules/external_module_2/Kconfig index a3d36cce8733..011963dcc4cf 100644 --- a/tests/build_system/kconfig/external_modules/external_module_2/Kconfig +++ b/tests/build_system/kconfig/external_modules/external_module_2/Kconfig @@ -11,7 +11,3 @@ config EXTERNAL_MODULE_2_MESSAGE default "External Message 2 defined in Kconfig file" endif # KCONFIG_EXTERNAL_MODULE_2 - -config MODULE_EXTERNAL_MODULE_2 - bool "Select external module 2" - depends on TEST_KCONFIG diff --git a/tests/build_system/kconfig/external_pkgs/external_pkg_1/Kconfig b/tests/build_system/kconfig/external_pkgs/external_pkg_1/Kconfig index 93dbe84489b1..2a5691157bca 100644 --- a/tests/build_system/kconfig/external_pkgs/external_pkg_1/Kconfig +++ b/tests/build_system/kconfig/external_pkgs/external_pkg_1/Kconfig @@ -11,7 +11,3 @@ config EXTERNAL_PKG_1_MESSAGE default "External package message 1 defined in Kconfig file" endif # KCONFIG_EXTERNAL_PKG_1 - -config PACKAGE_EXTERNAL_PKG_1 - bool "Select external pkg 1" - depends on TEST_KCONFIG diff --git a/tests/build_system/kconfig/external_pkgs/external_pkg_2/Kconfig b/tests/build_system/kconfig/external_pkgs/external_pkg_2/Kconfig index 4a578c9e069b..121fd3da23c3 100644 --- a/tests/build_system/kconfig/external_pkgs/external_pkg_2/Kconfig +++ b/tests/build_system/kconfig/external_pkgs/external_pkg_2/Kconfig @@ -11,7 +11,3 @@ config EXTERNAL_PKG_2_MESSAGE default "External package message 2 defined in Kconfig file" endif # KCONFIG_EXTERNAL_PKG_2 - -config PACKAGE_EXTERNAL_PKG_2 - bool "Select external pkg 2" - depends on TEST_KCONFIG diff --git a/tests/build_system/test_tools/app.config.test b/tests/build_system/test_tools/app.config.test deleted file mode 100644 index b32955e5dd79..000000000000 --- a/tests/build_system/test_tools/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -CONFIG_MODULE_DUMMY_THREAD=y -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=n -CONFIG_SHELL_NO_ECHO=y -CONFIG_SHELL_NO_PROMPT=y diff --git a/tests/drivers/ad7746/app.config.test b/tests/drivers/ad7746/app.config.test deleted file mode 100644 index df0b8629651e..000000000000 --- a/tests/drivers/ad7746/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# 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_ZTIMER=y -CONFIG_MODULE_ZTIMER_MSEC=y diff --git a/tests/drivers/adcxx1c/app.config.test b/tests/drivers/adcxx1c/app.config.test deleted file mode 100644 index 1c7df91a88c8..000000000000 --- a/tests/drivers/adcxx1c/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# 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_ADCXX1C=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/drivers/ads101x/app.config.test b/tests/drivers/ads101x/app.config.test deleted file mode 100644 index 713cf2dbaf58..000000000000 --- a/tests/drivers/ads101x/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# 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 -CONFIG_MODULE_ZTIMER=y -CONFIG_MODULE_ZTIMER_MSEC=y diff --git a/tests/drivers/adt7310/app.config.test b/tests/drivers/adt7310/app.config.test deleted file mode 100644 index da5e1f1f9d0c..000000000000 --- a/tests/drivers/adt7310/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# 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/drivers/adxl345/app.config.test b/tests/drivers/adxl345/app.config.test deleted file mode 100644 index f5fd1c571552..000000000000 --- a/tests/drivers/adxl345/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# 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/drivers/aip31068/app.config.test b/tests/drivers/aip31068/app.config.test deleted file mode 100644 index ddd3e24aca4f..000000000000 --- a/tests/drivers/aip31068/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# 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/drivers/apa102/app.config.test b/tests/drivers/apa102/app.config.test deleted file mode 100644 index 7b857d461aed..000000000000 --- a/tests/drivers/apa102/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# 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/drivers/apds99xx/app.config.test b/tests/drivers/apds99xx/app.config.test deleted file mode 100644 index ecf846cbddca..000000000000 --- a/tests/drivers/apds99xx/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_APDS9960=y -CONFIG_MODULE_APDS99XX=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/drivers/apds99xx_full/app.config.test b/tests/drivers/apds99xx_full/app.config.test deleted file mode 100644 index a04fd6c47a0b..000000000000 --- a/tests/drivers/apds99xx_full/app.config.test +++ /dev/null @@ -1,6 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_APDS9960=y -CONFIG_MODULE_APDS99XX=y -CONFIG_MODULE_APDS99XX_FULL=y -CONFIG_MODULE_CORE_THREAD_FLAGS=y diff --git a/tests/drivers/at/app.config.test b/tests/drivers/at/app.config.test deleted file mode 100644 index 74fa68728aef..000000000000 --- a/tests/drivers/at/app.config.test +++ /dev/null @@ -1,20 +0,0 @@ -# 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/drivers/at24cxxx/app.config.test b/tests/drivers/at24cxxx/app.config.test deleted file mode 100644 index fc4739be582b..000000000000 --- a/tests/drivers/at24cxxx/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# 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/drivers/at24mac/app.config.test b/tests/drivers/at24mac/app.config.test deleted file mode 100644 index d9f9a2b4f1e2..000000000000 --- a/tests/drivers/at24mac/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# 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/drivers/at25xxx/app.config.test b/tests/drivers/at25xxx/app.config.test deleted file mode 100644 index 528faa94d5f2..000000000000 --- a/tests/drivers/at25xxx/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# 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/drivers/at30tse75x/app.config.test b/tests/drivers/at30tse75x/app.config.test deleted file mode 100644 index b9540a7b0a51..000000000000 --- a/tests/drivers/at30tse75x/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# 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_CMDS_DEFAULT=y diff --git a/tests/drivers/ata8520e/app.config.test b/tests/drivers/ata8520e/app.config.test deleted file mode 100644 index 056958125b08..000000000000 --- a/tests/drivers/ata8520e/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# 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_CMDS_DEFAULT=y diff --git a/tests/drivers/bh1750/app.config.test b/tests/drivers/bh1750/app.config.test deleted file mode 100644 index ca620b6356be..000000000000 --- a/tests/drivers/bh1750/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# 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_BH1750FVI=y diff --git a/tests/drivers/bh1900nux/app.config.test b/tests/drivers/bh1900nux/app.config.test deleted file mode 100644 index 9cb34626b7c2..000000000000 --- a/tests/drivers/bh1900nux/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# 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_BH1900NUX=y diff --git a/tests/drivers/bme680/Makefile.ci b/tests/drivers/bme680/Makefile.ci index b0a99ae266f9..70b971a9e7d0 100644 --- a/tests/drivers/bme680/Makefile.ci +++ b/tests/drivers/bme680/Makefile.ci @@ -5,5 +5,4 @@ BOARD_INSUFFICIENT_MEMORY := \ msb-430h \ nucleo-f031k6 \ telosb \ - z1 \ # diff --git a/tests/drivers/bme680/app.config.test b/tests/drivers/bme680/app.config.test deleted file mode 100644 index e183d8259830..000000000000 --- a/tests/drivers/bme680/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_BME680=y -CONFIG_MODULE_ZTIMER=y -CONFIG_MODULE_ZTIMER_MSEC=y diff --git a/tests/drivers/bmp180/app.config.test b/tests/drivers/bmp180/app.config.test deleted file mode 100644 index f20a36fb0af4..000000000000 --- a/tests/drivers/bmp180/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_BMP180=y -CONFIG_MODULE_ZTIMER=y -CONFIG_MODULE_ZTIMER_MSEC=y diff --git a/tests/drivers/bmx055/app.config.test b/tests/drivers/bmx055/app.config.test deleted file mode 100644 index 8cb42def0873..000000000000 --- a/tests/drivers/bmx055/app.config.test +++ /dev/null @@ -1,13 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -# include and auto-initialize all available sensors -CONFIG_MODULE_PHYDAT=y -CONFIG_MODULE_SAUL=y -CONFIG_MODULE_SAUL_REG=y -CONFIG_MODULE_SAUL_DEFAULT=y - -# include driver for bmx055 sensor -CONFIG_MODULE_BMX055=y - -# include xtimer for polling -CONFIG_MODULE_XTIMER=y diff --git a/tests/drivers/bmx280/app.config.test b/tests/drivers/bmx280/app.config.test deleted file mode 100644 index 1e81884c02c6..000000000000 --- a/tests/drivers/bmx280/app.config.test +++ /dev/null @@ -1,6 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_BMX280=y -CONFIG_MODULE_BME280_I2C=y -CONFIG_MODULE_FMT=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/drivers/bq2429x/app.config.test b/tests/drivers/bq2429x/app.config.test deleted file mode 100644 index 148c39fdc457..000000000000 --- a/tests/drivers/bq2429x/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_SHELL_CMDS_DEFAULT=y -# include driver for bq2429x -CONFIG_MODULE_BQ2429X=y diff --git a/tests/drivers/ccs811/app.config.test b/tests/drivers/ccs811/app.config.test deleted file mode 100644 index b952fa3cc3e1..000000000000 --- a/tests/drivers/ccs811/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_CCS811=y -CONFIG_MODULE_ZTIMER=y -CONFIG_MODULE_ZTIMER_USEC=y diff --git a/tests/drivers/ccs811_full/app.config.test b/tests/drivers/ccs811_full/app.config.test deleted file mode 100644 index 565336feaf1d..000000000000 --- a/tests/drivers/ccs811_full/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_CCS811=y -CONFIG_MODULE_CCS811_FULL=y diff --git a/tests/drivers/cst816s/app.config.test b/tests/drivers/cst816s/app.config.test deleted file mode 100644 index bdd638ac3121..000000000000 --- a/tests/drivers/cst816s/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_CST816S=y -CONFIG_MODULE_CORE_THREAD_FLAGS=y diff --git a/tests/drivers/dac_dds/app.config.test b/tests/drivers/dac_dds/app.config.test deleted file mode 100644 index 7ce787bc0125..000000000000 --- a/tests/drivers/dac_dds/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_DAC_DDS=y -CONFIG_MODULE_SHELL=y diff --git a/tests/drivers/dcf77/app.config.test b/tests/drivers/dcf77/app.config.test deleted file mode 100644 index 1a3f2ed02330..000000000000 --- a/tests/drivers/dcf77/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# 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/drivers/dfplayer/app.config.test b/tests/drivers/dfplayer/app.config.test deleted file mode 100644 index 7bf727fc4d27..000000000000 --- a/tests/drivers/dfplayer/app.config.test +++ /dev/null @@ -1,12 +0,0 @@ -# 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 -CONFIG_MODULE_EVENT=y -CONFIG_MODULE_EVENT_THREAD=y - -# enable shell -CONFIG_MODULE_SHELL=y -# pull in default commands for selected modules -CONFIG_MODULE_SHELL_CMDS_DEFAULT=y diff --git a/tests/drivers/dht/app.config.test b/tests/drivers/dht/app.config.test deleted file mode 100644 index 60a4dd2426ee..000000000000 --- a/tests/drivers/dht/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# 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_ZTIMER_USEC=y diff --git a/tests/drivers/disp_dev/app.config.test b/tests/drivers/disp_dev/app.config.test deleted file mode 100644 index 77a8aef51efd..000000000000 --- a/tests/drivers/disp_dev/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_DISP_DEV=y diff --git a/tests/drivers/dose/Kconfig b/tests/drivers/dose/Kconfig deleted file mode 100644 index d89ff58146c7..000000000000 --- a/tests/drivers/dose/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# Copyright (c) 2022 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 - imply MODULE_DOSE_WATCHDOG if BOARD_SAMR21_XPRO || BOARD_SAME54_XPRO diff --git a/tests/drivers/dose/app.config.test b/tests/drivers/dose/app.config.test deleted file mode 100644 index 0a48b3e59e8e..000000000000 --- a/tests/drivers/dose/app.config.test +++ /dev/null @@ -1,6 +0,0 @@ -CONFIG_MODULE_TEST_UTILS_NETDEV_ETH_MINIMAL=y -CONFIG_MODULE_DOSE=y -# Should be autoselecting the MODULE_PRNG_HWRNG if possible -# Since the makefile cannot we have to override until end of migration -# Remove when TEST_KCONFIG is complete -CONFIG_MODULE_PRNG_MUSL_LCG=y diff --git a/tests/drivers/ds1307/app.config.test b/tests/drivers/ds1307/app.config.test deleted file mode 100644 index 1a3a266bf4a2..000000000000 --- a/tests/drivers/ds1307/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# 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 diff --git a/tests/drivers/ds18/app.config.test b/tests/drivers/ds18/app.config.test deleted file mode 100644 index 6e3293edc086..000000000000 --- a/tests/drivers/ds18/app.config.test +++ /dev/null @@ -1,8 +0,0 @@ -# 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/drivers/ds3231/app.config.test b/tests/drivers/ds3231/app.config.test deleted file mode 100644 index be49810c811c..000000000000 --- a/tests/drivers/ds3231/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# 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 diff --git a/tests/drivers/ds3234/app.config.test b/tests/drivers/ds3234/app.config.test deleted file mode 100644 index 9f67f2d6f37e..000000000000 --- a/tests/drivers/ds3234/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# 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/drivers/ds75lx/app.config.test b/tests/drivers/ds75lx/app.config.test deleted file mode 100644 index 8f7a59671a3c..000000000000 --- a/tests/drivers/ds75lx/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# 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/drivers/dsp0401/app.config.test b/tests/drivers/dsp0401/app.config.test deleted file mode 100644 index 14d2bf4eb40e..000000000000 --- a/tests/drivers/dsp0401/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# 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 -CONFIG_MODULE_ZTIMER=y -CONFIG_MODULE_ZTIMER_USEC=y diff --git a/tests/drivers/dynamixel/app.config.test b/tests/drivers/dynamixel/app.config.test deleted file mode 100644 index 25428236c6d9..000000000000 --- a/tests/drivers/dynamixel/app.config.test +++ /dev/null @@ -1,8 +0,0 @@ -# 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/drivers/edbg_eui/Kconfig b/tests/drivers/edbg_eui/Kconfig deleted file mode 100644 index 1c7c6a518a89..000000000000 --- a/tests/drivers/edbg_eui/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# 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/drivers/edbg_eui/app.config.test b/tests/drivers/edbg_eui/app.config.test deleted file mode 100644 index 2d77bbb585bf..000000000000 --- a/tests/drivers/edbg_eui/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# 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/drivers/enc28j60/app.config.test b/tests/drivers/enc28j60/app.config.test deleted file mode 100644 index 6a82cdb7010f..000000000000 --- a/tests/drivers/enc28j60/app.config.test +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_MODULE_TEST_UTILS_NETDEV_ETH_MINIMAL=y -CONFIG_MODULE_ENC28J60=y diff --git a/tests/drivers/encx24j600/app.config.test b/tests/drivers/encx24j600/app.config.test deleted file mode 100644 index 7031195fd80b..000000000000 --- a/tests/drivers/encx24j600/app.config.test +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_MODULE_TEST_UTILS_NETDEV_ETH_MINIMAL=y -CONFIG_MODULE_ENCX24J600=y diff --git a/tests/drivers/esp_eth/Kconfig b/tests/drivers/esp_eth/Kconfig deleted file mode 100644 index a3a86a8fc28e..000000000000 --- a/tests/drivers/esp_eth/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (c) 2022 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 HAS_ARCH_ESP32 - depends on HAS_ESP_ETH diff --git a/tests/drivers/esp_eth/app.config.test b/tests/drivers/esp_eth/app.config.test deleted file mode 100644 index 9ae9ddfc02ec..000000000000 --- a/tests/drivers/esp_eth/app.config.test +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_MODULE_TEST_UTILS_NETDEV_ETH_MINIMAL=y -CONFIG_MODULE_ESP_ETH=y diff --git a/tests/drivers/ethos/app.config.test b/tests/drivers/ethos/app.config.test deleted file mode 100644 index 84d4edbd47e5..000000000000 --- a/tests/drivers/ethos/app.config.test +++ /dev/null @@ -1,6 +0,0 @@ -CONFIG_MODULE_TEST_UTILS_NETDEV_ETH_MINIMAL=y -CONFIG_MODULE_ETHOS=y -# Should be autoselecting the MODULE_PRNG_HWRNG if possible -# Since the makefile cannot we have to override until end of migration -# Remove when TEST_KCONFIG is complete -CONFIG_MODULE_PRNG_MUSL_LCG=y diff --git a/tests/drivers/feetech/app.config.test b/tests/drivers/feetech/app.config.test deleted file mode 100644 index 98093c296550..000000000000 --- a/tests/drivers/feetech/app.config.test +++ /dev/null @@ -1,8 +0,0 @@ -# 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/drivers/ft5x06/app.config.test b/tests/drivers/ft5x06/app.config.test deleted file mode 100644 index 7f08f5bfc147..000000000000 --- a/tests/drivers/ft5x06/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_FT5X06=y diff --git a/tests/drivers/fxos8700/app.config.test b/tests/drivers/fxos8700/app.config.test deleted file mode 100644 index 7aa34c4b016b..000000000000 --- a/tests/drivers/fxos8700/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# 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 diff --git a/tests/drivers/gp2y10xx/app.config.test b/tests/drivers/gp2y10xx/app.config.test deleted file mode 100644 index 99a74023a9ac..000000000000 --- a/tests/drivers/gp2y10xx/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# 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/drivers/grove_ledbar/Makefile b/tests/drivers/grove_ledbar/Makefile index d554db8ca09e..0664474c05df 100644 --- a/tests/drivers/grove_ledbar/Makefile +++ b/tests/drivers/grove_ledbar/Makefile @@ -5,10 +5,6 @@ USEMODULE += grove_ledbar # disable native GPIOs for automatic test ifneq (,$(filter native native64,$(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/drivers/grove_ledbar/app.config.test b/tests/drivers/grove_ledbar/app.config.test deleted file mode 100644 index 6f5fd02151f0..000000000000 --- a/tests/drivers/grove_ledbar/app.config.test +++ /dev/null @@ -1,7 +0,0 @@ -# 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 diff --git a/tests/drivers/grove_ledbar/app.config.test.native b/tests/drivers/grove_ledbar/app.config.test.native deleted file mode 100644 index eeb31676765e..000000000000 --- a/tests/drivers/grove_ledbar/app.config.test.native +++ /dev/null @@ -1,5 +0,0 @@ -# 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/drivers/hd44780/Makefile b/tests/drivers/hd44780/Makefile index dadfdcc22749..56003ef02334 100644 --- a/tests/drivers/hd44780/Makefile +++ b/tests/drivers/hd44780/Makefile @@ -5,10 +5,6 @@ USEMODULE += hd44780 # disable native GPIOs for automatic test ifneq (,$(filter native native64,$(BOARD))) USEMODULE += periph_gpio_mock - # the same for Kconfig - ifeq (1,$(TEST_KCONFIG)) - KCONFIG_ADD_CONFIG += $(APPDIR)/app.config.test.native - endif endif include $(RIOTBASE)/Makefile.include diff --git a/tests/drivers/hd44780/app.config.test b/tests/drivers/hd44780/app.config.test deleted file mode 100644 index 54fafb78ffcf..000000000000 --- a/tests/drivers/hd44780/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# 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 diff --git a/tests/drivers/hd44780/app.config.test.native b/tests/drivers/hd44780/app.config.test.native deleted file mode 100644 index eeb31676765e..000000000000 --- a/tests/drivers/hd44780/app.config.test.native +++ /dev/null @@ -1,5 +0,0 @@ -# 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/drivers/hdc1000/app.config.test b/tests/drivers/hdc1000/app.config.test deleted file mode 100644 index fbd50570cdb8..000000000000 --- a/tests/drivers/hdc1000/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# 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/drivers/hih6130/app.config.test b/tests/drivers/hih6130/app.config.test deleted file mode 100644 index 6bb7bd5dd525..000000000000 --- a/tests/drivers/hih6130/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# 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_ZTIMER_MSEC=y -CONFIG_MODULE_FMT=y diff --git a/tests/drivers/hm330x/app.config.test b/tests/drivers/hm330x/app.config.test deleted file mode 100644 index 6f6737b02c79..000000000000 --- a/tests/drivers/hm330x/app.config.test +++ /dev/null @@ -1,8 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_HM330X=y -CONFIG_MODULE_HM3301=y -CONFIG_MODULE_FMT=y -CONFIG_ZTIMER_USEC=y -CONFIG_MODULE_ZTIMER=y -CONFIG_MODULE_ZTIMER_MSEC=y diff --git a/tests/drivers/hmc5883l/app.config.test b/tests/drivers/hmc5883l/app.config.test deleted file mode 100644 index 5fa12d3da2d7..000000000000 --- a/tests/drivers/hmc5883l/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# 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/drivers/hsc/app.config.test b/tests/drivers/hsc/app.config.test deleted file mode 100644 index 661f387e6f97..000000000000 --- a/tests/drivers/hsc/app.config.test +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_MODULE_HSC=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/drivers/hts221/app.config.test b/tests/drivers/hts221/app.config.test deleted file mode 100644 index ba8393a35fe8..000000000000 --- a/tests/drivers/hts221/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# 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/drivers/ili9341/app.config.test b/tests/drivers/ili9341/app.config.test deleted file mode 100644 index 7656431b408b..000000000000 --- a/tests/drivers/ili9341/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# 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_ZTIMER=y -CONFIG_MODULE_ZTIMER_MSEC=y diff --git a/tests/drivers/ina2xx/app.config.test b/tests/drivers/ina2xx/app.config.test deleted file mode 100644 index c6a0ef8c2c16..000000000000 --- a/tests/drivers/ina2xx/app.config.test +++ /dev/null @@ -1,6 +0,0 @@ -# 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 -CONFIG_MODULE_INA2XX=y diff --git a/tests/drivers/ina3221/app.config.test b/tests/drivers/ina3221/app.config.test deleted file mode 100644 index 028df0831e55..000000000000 --- a/tests/drivers/ina3221/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# 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/drivers/io1_xplained/app.config.test b/tests/drivers/io1_xplained/app.config.test deleted file mode 100644 index 46cb463bec8d..000000000000 --- a/tests/drivers/io1_xplained/app.config.test +++ /dev/null @@ -1,7 +0,0 @@ -# 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 -CONFIG_MODULE_ZTIMER=y -CONFIG_MODULE_ZTIMER_MSEC=y diff --git a/tests/drivers/isl29020/app.config.test b/tests/drivers/isl29020/app.config.test deleted file mode 100644 index d33abfa4cccb..000000000000 --- a/tests/drivers/isl29020/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# 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/drivers/isl29125/app.config.test b/tests/drivers/isl29125/app.config.test deleted file mode 100644 index 9f93851096a4..000000000000 --- a/tests/drivers/isl29125/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# 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/drivers/itg320x/app.config.test b/tests/drivers/itg320x/app.config.test deleted file mode 100644 index 7bd27503a476..000000000000 --- a/tests/drivers/itg320x/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# 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/drivers/jc42/app.config.test b/tests/drivers/jc42/app.config.test deleted file mode 100644 index 69c3b1f4b6e2..000000000000 --- a/tests/drivers/jc42/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# 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/drivers/l3g4200d/app.config.test b/tests/drivers/l3g4200d/app.config.test deleted file mode 100644 index 7761831e46d6..000000000000 --- a/tests/drivers/l3g4200d/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_L3G4200D=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/drivers/l3gxxxx/app.config.test b/tests/drivers/l3gxxxx/app.config.test deleted file mode 100644 index 5d2b143e8041..000000000000 --- a/tests/drivers/l3gxxxx/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# application configuration. This is only needed during migration. -CONFIG_MODULE_L3GXXXX=y -CONFIG_MODULE_ZTIMER=y -CONFIG_MODULE_ZTIMER_MSEC=y diff --git a/tests/drivers/lc709203f/app.config.test b/tests/drivers/lc709203f/app.config.test deleted file mode 100644 index 979a86c1b4c9..000000000000 --- a/tests/drivers/lc709203f/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_LC709203F=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/drivers/lis2dh12/app.config.test b/tests/drivers/lis2dh12/app.config.test deleted file mode 100644 index d3b7469698ee..000000000000 --- a/tests/drivers/lis2dh12/app.config.test +++ /dev/null @@ -1,12 +0,0 @@ -# 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_ZTIMER=y -CONFIG_MODULE_ZTIMER_MSEC=y -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_SHELL_CMDS_DEFAULT=y -CONFIG_MODULE_LIS2DH12=y -CONFIG_MODULE_LIS2DH12_SPI=y - -# for using lis2dh12 with interrupt function -CONFIG_MODULE_LIS2DH12_INT=y diff --git a/tests/drivers/lis3dh/app.config.test b/tests/drivers/lis3dh/app.config.test deleted file mode 100644 index 21a787e8f0a6..000000000000 --- a/tests/drivers/lis3dh/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_PERIPH_GPIO_IRQ=y -CONFIG_MODULE_LIS3DH=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/drivers/lis3mdl/app.config.test b/tests/drivers/lis3mdl/app.config.test deleted file mode 100644 index 621a154833f8..000000000000 --- a/tests/drivers/lis3mdl/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_LIS3MDL=y -CONFIG_MODULE_ZTIMER=y -CONFIG_MODULE_ZTIMER_MSEC=y diff --git a/tests/drivers/lpd8808/app.config.test b/tests/drivers/lpd8808/app.config.test deleted file mode 100644 index 743d7c0f482b..000000000000 --- a/tests/drivers/lpd8808/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_LPD8808=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/drivers/lpsxxx/app.config.test b/tests/drivers/lpsxxx/app.config.test deleted file mode 100644 index 3cc807db5410..000000000000 --- a/tests/drivers/lpsxxx/app.config.test +++ /dev/null @@ -1,6 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_LPSXXX=y -CONFIG_MODULE_LPS331AP=y -CONFIG_MODULE_LPSXXX=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/drivers/lsm303dlhc/app.config.test b/tests/drivers/lsm303dlhc/app.config.test deleted file mode 100644 index c51566c9f6ce..000000000000 --- a/tests/drivers/lsm303dlhc/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_LSM303DLHC=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/drivers/lsm6dsxx/Makefile b/tests/drivers/lsm6dsxx/Makefile index 71a02c98fc6e..0db732a5a0bb 100644 --- a/tests/drivers/lsm6dsxx/Makefile +++ b/tests/drivers/lsm6dsxx/Makefile @@ -1,6 +1,9 @@ +BOARD ?= feather-nrf52840-sense include ../Makefile.drivers_common -DRIVER ?= lsm6ds33 +DISABLE_MODULE += test_utils_interactive_sync + +DRIVER ?= lsm6dsxx USEMODULE += $(DRIVER) USEMODULE += ztimer diff --git a/tests/drivers/lsm6dsxx/app.config.test b/tests/drivers/lsm6dsxx/app.config.test deleted file mode 100644 index 93e10ff0716f..000000000000 --- a/tests/drivers/lsm6dsxx/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_LSM6DSXX=y -CONFIG_MODULE_ZTIMER=y -CONFIG_MODULE_ZTIMER_MSEC=y diff --git a/tests/drivers/lsm6dsxx/tests-with-config/01-run.py b/tests/drivers/lsm6dsxx/tests-with-config/01-run.py new file mode 100755 index 000000000000..926e62451171 --- /dev/null +++ b/tests/drivers/lsm6dsxx/tests-with-config/01-run.py @@ -0,0 +1,20 @@ +#!/usr/bin/env python3 + +# Copyright (C) 2024 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. + +import sys +from testrunner import run + + +def testfunc(child): + child.expect("Accelerometer x:") + child.expect("Gyroscope x:") + child.expect(r"Temperature \[in") + + +if __name__ == "__main__": + sys.exit(run(testfunc)) diff --git a/tests/drivers/ltc4150/app.config.test b/tests/drivers/ltc4150/app.config.test deleted file mode 100644 index 970177b10307..000000000000 --- a/tests/drivers/ltc4150/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# 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_LTC4150=y diff --git a/tests/drivers/mag3110/app.config.test b/tests/drivers/mag3110/app.config.test deleted file mode 100644 index 00013faf958a..000000000000 --- a/tests/drivers/mag3110/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_MAG3110=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/drivers/mcp47xx/app.config.test b/tests/drivers/mcp47xx/app.config.test deleted file mode 100644 index 3e9c052a82aa..000000000000 --- a/tests/drivers/mcp47xx/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_MCP47XX=y -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_BENCHMARK=y diff --git a/tests/drivers/mhz19/app.config.test b/tests/drivers/mhz19/app.config.test deleted file mode 100644 index 59d7c9c4c4dc..000000000000 --- a/tests/drivers/mhz19/app.config.test +++ /dev/null @@ -1,9 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_ZTIMER=y -CONFIG_MODULE_ZTIMER_MSEC=y - -CONFIG_MODULE_MHZ19=y -# Use UART mode by default -CONFIG_MODULE_MHZ19_UART=y -#CONFIG_MODULE_MHZ19_PWM=y diff --git a/tests/drivers/mma7660/app.config.test b/tests/drivers/mma7660/app.config.test deleted file mode 100644 index e111f52b9d89..000000000000 --- a/tests/drivers/mma7660/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_MMA7660=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/drivers/mma8x5x/app.config.test b/tests/drivers/mma8x5x/app.config.test deleted file mode 100644 index f9d324d3c6fd..000000000000 --- a/tests/drivers/mma8x5x/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_MMA8X5X=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/drivers/motor_driver/app.config.test b/tests/drivers/motor_driver/app.config.test deleted file mode 100644 index 8c82f9746de3..000000000000 --- a/tests/drivers/motor_driver/app.config.test +++ /dev/null @@ -1,7 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_MOTOR_DRIVER=y -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_SHELL_CMDS_DEFAULT=y -CONFIG_MODULE_XTIMER=y -CONFIG_MODULE_PERIPH_QDEC=y diff --git a/tests/drivers/mpl3115a2/app.config.test b/tests/drivers/mpl3115a2/app.config.test deleted file mode 100644 index 528ec2d1b8ec..000000000000 --- a/tests/drivers/mpl3115a2/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_MPL3115A2=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/drivers/mpu9x50/app.config.test b/tests/drivers/mpu9x50/app.config.test deleted file mode 100644 index df67bd9024c9..000000000000 --- a/tests/drivers/mpu9x50/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_MPU9X50=y -CONFIG_MODULE_ZTIMER=y -CONFIG_MODULE_ZTIMER_MSEC=y diff --git a/tests/drivers/mq3/app.config.test b/tests/drivers/mq3/app.config.test deleted file mode 100644 index 420a16be0ab6..000000000000 --- a/tests/drivers/mq3/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_MQ3=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/drivers/mrf24j40/Kconfig b/tests/drivers/mrf24j40/Kconfig deleted file mode 100644 index b5b170263a2d..000000000000 --- a/tests/drivers/mrf24j40/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# Copyright (c) 2022 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 - select HAVE_MRF24J40 diff --git a/tests/drivers/mrf24j40/app.config.test b/tests/drivers/mrf24j40/app.config.test deleted file mode 100644 index bcc446eee535..000000000000 --- a/tests/drivers/mrf24j40/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -CONFIG_MODULE_MRF24J40=y -CONFIG_MODULE_MRF24J40MA=y -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_TEST_UTILS_NETDEV_IEEE802154_MINIMAL=y -CONFIG_MODULE_NETDEV_IEEE802154_SUBMAC=y diff --git a/tests/drivers/mtd_flashpage/app.config.test b/tests/drivers/mtd_flashpage/app.config.test deleted file mode 100644 index 54af22faabb2..000000000000 --- a/tests/drivers/mtd_flashpage/app.config.test +++ /dev/null @@ -1,6 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_MTD=y -CONFIG_MODULE_MTD_FLASHPAGE=y -CONFIG_MODULE_MTD_WRITE_PAGE=y -CONFIG_MODULE_EMBUNIT=y diff --git a/tests/drivers/mtd_mapper/app.config.test b/tests/drivers/mtd_mapper/app.config.test deleted file mode 100644 index 051b7fedd6fd..000000000000 --- a/tests/drivers/mtd_mapper/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_MTD_MAPPER=y -CONFIG_MODULE_MTD_WRITE_PAGE=y -CONFIG_MODULE_EMBUNIT=y diff --git a/tests/drivers/mtd_raw/app.config.test b/tests/drivers/mtd_raw/app.config.test deleted file mode 100644 index a19c041d6bc6..000000000000 --- a/tests/drivers/mtd_raw/app.config.test +++ /dev/null @@ -1,7 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_MTD=y -CONFIG_MODULE_MTD_WRITE_PAGE=y -CONFIG_MODULE_OD=y -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_SHELL_CMDS_DEFAULT=y diff --git a/tests/drivers/my9221/Makefile b/tests/drivers/my9221/Makefile index c93b73d88d05..f069ac62e87f 100644 --- a/tests/drivers/my9221/Makefile +++ b/tests/drivers/my9221/Makefile @@ -5,10 +5,6 @@ USEMODULE += my9221 # disable native GPIOs for automatic test ifneq (,$(filter native native64,$(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/drivers/my9221/app.config.test b/tests/drivers/my9221/app.config.test deleted file mode 100644 index 4faf9b6c9ded..000000000000 --- a/tests/drivers/my9221/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# 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 diff --git a/tests/drivers/my9221/app.config.test.native b/tests/drivers/my9221/app.config.test.native deleted file mode 100644 index eeb31676765e..000000000000 --- a/tests/drivers/my9221/app.config.test.native +++ /dev/null @@ -1,5 +0,0 @@ -# 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/drivers/nrf24l01p_lowlevel/app.config.test b/tests/drivers/nrf24l01p_lowlevel/app.config.test deleted file mode 100644 index 179b5a6135db..000000000000 --- a/tests/drivers/nrf24l01p_lowlevel/app.config.test +++ /dev/null @@ -1,6 +0,0 @@ -CONFIG_MODULE_NRF24L01P=y -CONFIG_MODULE_PS=y -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_SHELL_CMDS_DEFAULT=y -CONFIG_MODULE_ZTIMER=y -CONFIG_ZTIMER_USEC=y diff --git a/tests/drivers/nvram_spi/app.config.test b/tests/drivers/nvram_spi/app.config.test deleted file mode 100644 index 68e9fc72c0bd..000000000000 --- a/tests/drivers/nvram_spi/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_NVRAM_SPI=y -CONFIG_ZTIMER_USEC=y diff --git a/tests/drivers/opt3001/app.config.test b/tests/drivers/opt3001/app.config.test deleted file mode 100644 index 05faf23e8095..000000000000 --- a/tests/drivers/opt3001/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# 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/drivers/pca9633/app.config.test b/tests/drivers/pca9633/app.config.test deleted file mode 100644 index 101bcc678124..000000000000 --- a/tests/drivers/pca9633/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# 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/drivers/pca9685/app.config.test b/tests/drivers/pca9685/app.config.test deleted file mode 100644 index ff7b1ad322ee..000000000000 --- a/tests/drivers/pca9685/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# 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/drivers/pcd8544/app.config.test b/tests/drivers/pcd8544/app.config.test deleted file mode 100644 index c2cca734d3fd..000000000000 --- a/tests/drivers/pcd8544/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# 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/drivers/pcf857x/app.config.test b/tests/drivers/pcf857x/app.config.test deleted file mode 100644 index 6366f1bfcf28..000000000000 --- a/tests/drivers/pcf857x/app.config.test +++ /dev/null @@ -1,7 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_PCF857X=y - -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_BENCHMARK=y -CONFIG_ZTIMER_USEC=y diff --git a/tests/drivers/ph_oem/app.config.test b/tests/drivers/ph_oem/app.config.test deleted file mode 100644 index 0df7dd29c719..000000000000 --- a/tests/drivers/ph_oem/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# 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/drivers/pir/app.config.test b/tests/drivers/pir/app.config.test deleted file mode 100644 index 448a89e64c80..000000000000 --- a/tests/drivers/pir/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# 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/drivers/pn532/app.config.test b/tests/drivers/pn532/app.config.test deleted file mode 100644 index d017f96d4491..000000000000 --- a/tests/drivers/pn532/app.config.test +++ /dev/null @@ -1,10 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. - -CONFIG_MODULE_PN532=y -# 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_ZTIMER=y -CONFIG_MODULE_ZTIMER_MSEC=y diff --git a/tests/drivers/pulse_counter/app.config.test b/tests/drivers/pulse_counter/app.config.test deleted file mode 100644 index c73ad8220547..000000000000 --- a/tests/drivers/pulse_counter/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# 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 -CONFIG_MODULE_ZTIMER=y -CONFIG_MODULE_ZTIMER_MSEC=y diff --git a/tests/drivers/qmc5883l/app.config.test b/tests/drivers/qmc5883l/app.config.test deleted file mode 100644 index 83409f91a52e..000000000000 --- a/tests/drivers/qmc5883l/app.config.test +++ /dev/null @@ -1,9 +0,0 @@ -# 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/drivers/rn2xx3/app.config.test b/tests/drivers/rn2xx3/app.config.test deleted file mode 100644 index c6e04ba5123a..000000000000 --- a/tests/drivers/rn2xx3/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# 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_CMDS_DEFAULT=y diff --git a/tests/drivers/sam0_eth/Kconfig b/tests/drivers/sam0_eth/Kconfig deleted file mode 100644 index 418cdd15e122..000000000000 --- a/tests/drivers/sam0_eth/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (c) 2022 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 HAS_CPU_SAMD5X - depends on HAS_PERIPH_ETH # TODO: complete with other SAM0 CPUs that have ethernet diff --git a/tests/drivers/sam0_eth/app.config.test b/tests/drivers/sam0_eth/app.config.test deleted file mode 100644 index 5cdeb8802f08..000000000000 --- a/tests/drivers/sam0_eth/app.config.test +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_MODULE_TEST_UTILS_NETDEV_ETH_MINIMAL=y -CONFIG_MODULE_SAM0_ETH=y diff --git a/tests/drivers/saul/app.config.test b/tests/drivers/saul/app.config.test deleted file mode 100644 index 88777efd99b1..000000000000 --- a/tests/drivers/saul/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -CONFIG_MODULE_SAUL_DEFAULT=y -CONFIG_MODULE_SAUL=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/drivers/scd30/app.config.test b/tests/drivers/scd30/app.config.test deleted file mode 100644 index 62e6ff16bac5..000000000000 --- a/tests/drivers/scd30/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_SCD30=y -CONFIG_MODULE_PRINTF_FLOAT=y diff --git a/tests/drivers/sdcard_spi/app.config.test b/tests/drivers/sdcard_spi/app.config.test deleted file mode 100644 index e05bfa2bd443..000000000000 --- a/tests/drivers/sdcard_spi/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_SDCARD_SPI=y -CONFIG_MODULE_FMT=y -CONFIG_MODULE_SHELL=y diff --git a/tests/drivers/sdmmc/app.config.test b/tests/drivers/sdmmc/app.config.test deleted file mode 100644 index e58cdc3d1ae6..000000000000 --- a/tests/drivers/sdmmc/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_SDMMC=y -CONFIG_MODULE_FMT=y -CONFIG_MODULE_SHELL=y diff --git a/tests/drivers/sdp3x/app.config.test b/tests/drivers/sdp3x/app.config.test deleted file mode 100644 index 0399efe161da..000000000000 --- a/tests/drivers/sdp3x/app.config.test +++ /dev/null @@ -1,7 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_SDP3X=y -# enable interrupt support -CONFIG_MODULE_SDP3X_IRQ=y - -CONFIG_MODULE_PRINTF_FLOAT=y diff --git a/tests/drivers/sds011/app.config.test b/tests/drivers/sds011/app.config.test deleted file mode 100644 index 31ab0616f44e..000000000000 --- a/tests/drivers/sds011/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_SDS011=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/drivers/seesaw_soil/app.config.test b/tests/drivers/seesaw_soil/app.config.test deleted file mode 100644 index b663495cb5ef..000000000000 --- a/tests/drivers/seesaw_soil/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_SEESAW_SOIL=y -CONFIG_MODULE_XTIMER=y -CONFIG_MODULE_FMT=y diff --git a/tests/drivers/servo/app.config.test b/tests/drivers/servo/app.config.test deleted file mode 100644 index b2c4c23df32a..000000000000 --- a/tests/drivers/servo/app.config.test +++ /dev/null @@ -1,7 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_SAUL=y -CONFIG_MODULE_SAUL_DEFAULT=y -CONFIG_MODULE_SERVO=y -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_SHELL_CMDS_DEFAULT=y diff --git a/tests/drivers/sgp30/app.config.test b/tests/drivers/sgp30/app.config.test deleted file mode 100644 index f8833cddc91b..000000000000 --- a/tests/drivers/sgp30/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_SGP30=y diff --git a/tests/drivers/sht1x/app.config.test b/tests/drivers/sht1x/app.config.test deleted file mode 100644 index 92c3e6aef904..000000000000 --- a/tests/drivers/sht1x/app.config.test +++ /dev/null @@ -1,13 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. - -# enable saul subsystem and the default devices on the platform -CONFIG_MODULE_SAUL=y -CONFIG_MODULE_SAUL_DEFAULT=y - -CONFIG_MODULE_SHT1X=y -CONFIG_MODULE_SHT11=y - -CONFIG_MODULE_PS=y -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_SHELL_CMDS_DEFAULT=y diff --git a/tests/drivers/sht2x/app.config.test b/tests/drivers/sht2x/app.config.test deleted file mode 100644 index 78fe6a2c8a69..000000000000 --- a/tests/drivers/sht2x/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_SHT2X=y -CONFIG_MODULE_ZTIMER_SEC=y diff --git a/tests/drivers/sht3x/app.config.test b/tests/drivers/sht3x/app.config.test deleted file mode 100644 index 6dd544521f4a..000000000000 --- a/tests/drivers/sht3x/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_SHT3X=y diff --git a/tests/drivers/shtcx/app.config.test b/tests/drivers/shtcx/app.config.test deleted file mode 100644 index bb9a331944c9..000000000000 --- a/tests/drivers/shtcx/app.config.test +++ /dev/null @@ -1,7 +0,0 @@ -# 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_SHTCX=y -CONFIG_MODULE_SHTC1=y -CONFIG_MODULE_ZTIMER=y -CONFIG_MODULE_ZTIMER_MSEC=y diff --git a/tests/drivers/si1133/app.config.test b/tests/drivers/si1133/app.config.test deleted file mode 100644 index 76fd45c0f1d0..000000000000 --- a/tests/drivers/si1133/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_SI1133=y diff --git a/tests/drivers/si114x/app.config.test b/tests/drivers/si114x/app.config.test deleted file mode 100644 index 53cdfa9affbc..000000000000 --- a/tests/drivers/si114x/app.config.test +++ /dev/null @@ -1,9 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. - -CONFIG_MODULE_ZTIMER=y -CONFIG_MODULE_ZTIMER_MSEC=y - -CONFIG_MODULE_SI114X=y -# This test should also work with Si1146 and Si1147 variants. -CONFIG_MODULE_SI1145=y diff --git a/tests/drivers/si70xx/app.config.test b/tests/drivers/si70xx/app.config.test deleted file mode 100644 index 49a97de4b2c4..000000000000 --- a/tests/drivers/si70xx/app.config.test +++ /dev/null @@ -1,9 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. - -# This test should also work with Si7006, Si7013 and Si7020 variants. -CONFIG_MODULE_SI70XX=y -CONFIG_MODULE_SI7021=y - -CONFIG_MODULE_ZTIMER=y -CONFIG_MODULE_ZTIMER_MSEC=y diff --git a/tests/drivers/sm_pwm_01c/app.config.test b/tests/drivers/sm_pwm_01c/app.config.test deleted file mode 100644 index d7d48bd0b21c..000000000000 --- a/tests/drivers/sm_pwm_01c/app.config.test +++ /dev/null @@ -1,6 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_SM_PWM_01C=y -CONFIG_MODULE_ZTIMER=y -CONFIG_ZTIMER_USEC=y -CONFIG_MODULE_PROGRESS_BAR=y diff --git a/tests/drivers/soft_spi/app.config.test b/tests/drivers/soft_spi/app.config.test deleted file mode 100644 index cfddfa3a31d2..000000000000 --- a/tests/drivers/soft_spi/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_SOFT_SPI=y diff --git a/tests/drivers/soft_uart/app.config.test b/tests/drivers/soft_uart/app.config.test deleted file mode 100644 index 099cef6c0e36..000000000000 --- a/tests/drivers/soft_uart/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_SOFT_UART=y -CONFIG_MODULE_SOFT_UART_MODECFG=y -CONFIG_MODULE_SHELL=y diff --git a/tests/drivers/sps30/app.config.test b/tests/drivers/sps30/app.config.test deleted file mode 100644 index 3e63f25ebd38..000000000000 --- a/tests/drivers/sps30/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_SPS30=y -CONFIG_MODULE_ZTIMER=y -CONFIG_MODULE_ZTIMER_MSEC=y diff --git a/tests/drivers/srf02/app.config.test b/tests/drivers/srf02/app.config.test deleted file mode 100644 index 7ca55dce4c4d..000000000000 --- a/tests/drivers/srf02/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# 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_SRF02=y -CONFIG_MODULE_SHELL=y diff --git a/tests/drivers/srf04/app.config.test b/tests/drivers/srf04/app.config.test deleted file mode 100644 index f6863e4849c8..000000000000 --- a/tests/drivers/srf04/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_SRF04=y diff --git a/tests/drivers/srf08/app.config.test b/tests/drivers/srf08/app.config.test deleted file mode 100644 index 45b92438abe0..000000000000 --- a/tests/drivers/srf08/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_SRF08=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/drivers/st77xx/app.config.test b/tests/drivers/st77xx/app.config.test deleted file mode 100644 index 61d58608061c..000000000000 --- a/tests/drivers/st77xx/app.config.test +++ /dev/null @@ -1,6 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_BENCHMARK=y -CONFIG_MODULE_ST77XX=y -CONFIG_MODULE_ZTIMER=y -CONFIG_MODULE_ZTIMER_MSEC=y diff --git a/tests/drivers/stm32_eth/Kconfig b/tests/drivers/stm32_eth/Kconfig deleted file mode 100644 index b9ad75332848..000000000000 --- a/tests/drivers/stm32_eth/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (c) 2022 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 HAS_CPU_STM32 - depends on HAS_PERIPH_ETH diff --git a/tests/drivers/stm32_eth/app.config.test b/tests/drivers/stm32_eth/app.config.test deleted file mode 100644 index f0f53e2f1029..000000000000 --- a/tests/drivers/stm32_eth/app.config.test +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_MODULE_TEST_UTILS_NETDEV_ETH_MINIMAL=y -CONFIG_MODULE_STM32_ETH=y diff --git a/tests/drivers/stmpe811/app.config.test b/tests/drivers/stmpe811/app.config.test deleted file mode 100644 index 24e2bdcb164b..000000000000 --- a/tests/drivers/stmpe811/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_STMPE811=y diff --git a/tests/drivers/sx126x/app.config.test b/tests/drivers/sx126x/app.config.test deleted file mode 100644 index a2b70947a129..000000000000 --- a/tests/drivers/sx126x/app.config.test +++ /dev/null @@ -1,7 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_SX126X=y -CONFIG_MODULE_SX1261=y - -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_SHELL_CMDS_DEFAULT=y diff --git a/tests/drivers/sx127x/app.config.test b/tests/drivers/sx127x/app.config.test deleted file mode 100644 index fc09713fbcc5..000000000000 --- a/tests/drivers/sx127x/app.config.test +++ /dev/null @@ -1,9 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_SX127X=y -CONFIG_MODULE_SX1276=y - -CONFIG_MODULE_OD=y -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_SHELL_CMDS_DEFAULT=y -CONFIG_MODULE_PS=y diff --git a/tests/drivers/sx1280/app.config.test b/tests/drivers/sx1280/app.config.test deleted file mode 100644 index c036b13850a7..000000000000 --- a/tests/drivers/sx1280/app.config.test +++ /dev/null @@ -1,8 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_SX1280=y - -CONFIG_MODULE_IOLIST=y - -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_SHELL_CMDS_DEFAULT=y diff --git a/tests/drivers/tcs37727/app.config.test b/tests/drivers/tcs37727/app.config.test deleted file mode 100644 index 36723a4f9767..000000000000 --- a/tests/drivers/tcs37727/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_TCS37727=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/drivers/tmp00x/app.config.test b/tests/drivers/tmp00x/app.config.test deleted file mode 100644 index d5334f04be96..000000000000 --- a/tests/drivers/tmp00x/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_TMP00X=y -CONFIG_MODULE_TMP006=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/drivers/touch_dev/app.config.test b/tests/drivers/touch_dev/app.config.test deleted file mode 100644 index 0378fe266ec9..000000000000 --- a/tests/drivers/touch_dev/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_TOUCH_DEV=y -CONFIG_MODULE_ZTIMER=y -CONFIG_MODULE_ZTIMER_MSEC=y diff --git a/tests/drivers/touch_dev_gestures/app.config.test b/tests/drivers/touch_dev_gestures/app.config.test deleted file mode 100644 index 4ce13568de22..000000000000 --- a/tests/drivers/touch_dev_gestures/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_TOUCH_DEV_GESTURES=y diff --git a/tests/drivers/tps6274x/app.config.test b/tests/drivers/tps6274x/app.config.test deleted file mode 100644 index 3864d97923e6..000000000000 --- a/tests/drivers/tps6274x/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_TPS6274X=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/drivers/tsl2561/app.config.test b/tests/drivers/tsl2561/app.config.test deleted file mode 100644 index 0b1f62677cda..000000000000 --- a/tests/drivers/tsl2561/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_TSL2561=y -CONFIG_MODULE_ZTIMER=y -CONFIG_MODULE_ZTIMER_MSEC=y diff --git a/tests/drivers/tsl4531x/app.config.test b/tests/drivers/tsl4531x/app.config.test deleted file mode 100644 index 308095ff9e6e..000000000000 --- a/tests/drivers/tsl4531x/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_TSL4531X=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/drivers/vcnl40x0/app.config.test b/tests/drivers/vcnl40x0/app.config.test deleted file mode 100644 index 9aa42c625f6f..000000000000 --- a/tests/drivers/vcnl40x0/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_VCNL4010=y -CONFIG_MODULE_VCNL40X0=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/drivers/veml6070/app.config.test b/tests/drivers/veml6070/app.config.test deleted file mode 100644 index 51f9bf4d3994..000000000000 --- a/tests/drivers/veml6070/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_VEML6070=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/drivers/vl6180x/app.config.test b/tests/drivers/vl6180x/app.config.test deleted file mode 100644 index e00371bd626e..000000000000 --- a/tests/drivers/vl6180x/app.config.test +++ /dev/null @@ -1,6 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_VL6180X=y -CONFIG_MODULE_VL6180X_RNG=y -CONFIG_MODULE_VL6180X_ALS=y -CONFIG_MODULE_ZTIMER_SEC=y diff --git a/tests/drivers/w5100/app.config.test b/tests/drivers/w5100/app.config.test deleted file mode 100644 index 0426b2d4272e..000000000000 --- a/tests/drivers/w5100/app.config.test +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_MODULE_TEST_UTILS_NETDEV_ETH_MINIMAL=y -CONFIG_MODULE_W5100=y diff --git a/tests/drivers/ws281x/app.config.test b/tests/drivers/ws281x/app.config.test deleted file mode 100644 index 3487d8bc74f7..000000000000 --- a/tests/drivers/ws281x/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_WS281X=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/net/gcoap_dns/app.config b/tests/net/gcoap_dns/app.config index ff0a5fafe01f..e64a60151835 100644 --- a/tests/net/gcoap_dns/app.config +++ b/tests/net/gcoap_dns/app.config @@ -1,4 +1,2 @@ -CONFIG_KCONFIG_USEMODULE_GCOAP=y CONFIG_GCOAP_PDU_BUF_SIZE=256 -CONFIG_KCONFIG_USEMODULE_GNRC_PKTBUF_STATIC=y CONFIG_GNRC_PKTBUF_SIZE=3072 diff --git a/tests/net/gcoap_dns/coaps.config b/tests/net/gcoap_dns/coaps.config index cbc602ef27a5..d9587f800229 100644 --- a/tests/net/gcoap_dns/coaps.config +++ b/tests/net/gcoap_dns/coaps.config @@ -1,6 +1,3 @@ -CONFIG_KCONFIG_USEMODULE_GCOAP_DNS=y CONFIG_GCOAP_DNS_CREDS_MAX=4 -CONFIG_KCONFIG_USEMODULE_CREDMAN=y CONFIG_CREDMAN_MAX_CREDENTIALS=4 -CONFIG_KCONFIG_USEMODULE_SOCK_DTLS=y CONFIG_DTLS_CREDENTIALS_MAX=4 diff --git a/tests/net/gnrc_dhcpv6_client_6lbr/Kconfig b/tests/net/gnrc_dhcpv6_client_6lbr/Kconfig index 25bacee753b1..ae7797498ab6 100644 --- a/tests/net/gnrc_dhcpv6_client_6lbr/Kconfig +++ b/tests/net/gnrc_dhcpv6_client_6lbr/Kconfig @@ -1,10 +1,11 @@ if USEMODULE_ETHOS config GNRC_DHCPV6_CLIENT_6LBR_STATIC_ROUTE default y - depends on USEMODULE_GNRC_DHCPV6_CLIENT_6LBR && KCONFIG_USEMODULE_GNRC_DHCPV6 + depends on USEMODULE_GNRC_DHCPV6_CLIENT_6LBR + config GNRC_NETIF_IPV6_ADDRS_NUMOF # CONFIG_GNRC_DHCPV6_CLIENT_6LBR_STATIC_ROUTE=1 requires one more address # for `fe80::2`. default 3 - depends on KCONFIG_USEMODULE_GNRC_NETIF + depends on USEMODULE_GNRC_NETIF endif # USEMODULE_ETHOS diff --git a/tests/net/gnrc_dhcpv6_client_stateless/app.config b/tests/net/gnrc_dhcpv6_client_stateless/app.config index 23e61165bdb8..6f492f20c633 100644 --- a/tests/net/gnrc_dhcpv6_client_stateless/app.config +++ b/tests/net/gnrc_dhcpv6_client_stateless/app.config @@ -1,3 +1,2 @@ -CONFIG_KCONFIG_USEMODULE_GNRC_IPV6_NIB=y CONFIG_GNRC_IPV6_NIB_ARSM=y CONFIG_GNRC_IPV6_NIB_SLAAC=y diff --git a/tests/net/gnrc_ipv6_ext_frag/app.config b/tests/net/gnrc_ipv6_ext_frag/app.config index 6e9731c822ba..d9c4cd0394db 100644 --- a/tests/net/gnrc_ipv6_ext_frag/app.config +++ b/tests/net/gnrc_ipv6_ext_frag/app.config @@ -1,3 +1,2 @@ # This test fails if the pool size is less than 3 -CONFIG_KCONFIG_USEMODULE_GNRC_IPV6_EXT_FRAG=y CONFIG_GNRC_IPV6_EXT_FRAG_LIMITS_POOL_SIZE=3 diff --git a/tests/net/gnrc_ndp/Makefile.ci b/tests/net/gnrc_ndp/Makefile.ci index 67b6ed3593e9..06cd0ec61468 100644 --- a/tests/net/gnrc_ndp/Makefile.ci +++ b/tests/net/gnrc_ndp/Makefile.ci @@ -27,5 +27,4 @@ BOARD_INSUFFICIENT_MEMORY := \ telosb \ waspmote-pro \ weact-g030f6 \ - z1 \ # diff --git a/tests/net/gnrc_rpl_p2p/Makefile.ci b/tests/net/gnrc_rpl_p2p/Makefile.ci index 3a3e0b840594..79c3e59a58cd 100644 --- a/tests/net/gnrc_rpl_p2p/Makefile.ci +++ b/tests/net/gnrc_rpl_p2p/Makefile.ci @@ -35,5 +35,4 @@ BOARD_INSUFFICIENT_MEMORY := \ telosb \ waspmote-pro \ weact-g030f6 \ - z1 \ # diff --git a/tests/net/gnrc_sixlowpan_frag_minfwd/app.config b/tests/net/gnrc_sixlowpan_frag_minfwd/app.config index 72e21306cd7d..0f5089bc6412 100644 --- a/tests/net/gnrc_sixlowpan_frag_minfwd/app.config +++ b/tests/net/gnrc_sixlowpan_frag_minfwd/app.config @@ -1,3 +1,2 @@ -CONFIG_KCONFIG_USEMODULE_GNRC_IPV6_NIB=y # disable router solicitations so they don't interfere with the tests CONFIG_GNRC_IPV6_NIB_NO_RTR_SOL=y diff --git a/tests/net/gnrc_sixlowpan_frag_sfr/app.config b/tests/net/gnrc_sixlowpan_frag_sfr/app.config index 1075ffab37d5..bc97bcacc329 100644 --- a/tests/net/gnrc_sixlowpan_frag_sfr/app.config +++ b/tests/net/gnrc_sixlowpan_frag_sfr/app.config @@ -1,6 +1,3 @@ -CONFIG_KCONFIG_USEMODULE_GNRC_IPV6_NIB=y -CONFIG_KCONFIG_USEMODULE_GNRC_SIXLOWPAN=y -CONFIG_KCONFIG_USEMODULE_GNRC_SIXLOWPAN_FRAG_SFR=y # disable router solicitations so they don't interfere with the tests CONFIG_GNRC_IPV6_NIB_NO_RTR_SOL=y # preconfigure SFR for tests diff --git a/tests/net/gnrc_sixlowpan_frag_sfr_congure/app.config b/tests/net/gnrc_sixlowpan_frag_sfr_congure/app.config index 9b940e371f50..6768a270c328 100644 --- a/tests/net/gnrc_sixlowpan_frag_sfr_congure/app.config +++ b/tests/net/gnrc_sixlowpan_frag_sfr_congure/app.config @@ -1,6 +1,3 @@ -CONFIG_KCONFIG_USEMODULE_GNRC_IPV6_NIB=y -CONFIG_KCONFIG_USEMODULE_GNRC_SIXLOWPAN=y -CONFIG_KCONFIG_USEMODULE_GNRC_SIXLOWPAN_FRAG_SFR=y # disable router solicitations so they don't interfere with the tests CONFIG_GNRC_IPV6_NIB_NO_RTR_SOL=y # preconfigure SFR for tests diff --git a/tests/net/gnrc_sock_udp/Makefile.ci b/tests/net/gnrc_sock_udp/Makefile.ci index acb3d82e7ca9..f94a2e642786 100644 --- a/tests/net/gnrc_sock_udp/Makefile.ci +++ b/tests/net/gnrc_sock_udp/Makefile.ci @@ -14,6 +14,7 @@ BOARD_INSUFFICIENT_MEMORY := \ nucleo-l011k4 \ nucleo-l031k6 \ olimex-msp430-h1611 \ + olimex-msp430-h2618 \ samd10-xmini \ stk3200 \ stm32f030f4-demo \ diff --git a/tests/net/ieee802154_hal/Makefile b/tests/net/ieee802154_hal/Makefile index 6265312d4d38..6d3eeb519fb0 100644 --- a/tests/net/ieee802154_hal/Makefile +++ b/tests/net/ieee802154_hal/Makefile @@ -30,10 +30,6 @@ ifneq (,$(filter native native64,$(BOARD))) ZEP_PORT_BASE ?= 17754 TERMFLAGS += -z [::1]:$(ZEP_PORT_BASE) USEMODULE += socket_zep - # the same for Kconfig - ifeq (1,$(TEST_KCONFIG)) - KCONFIG_ADD_CONFIG += $(APPDIR)/app.config.test.native - endif endif USEMODULE += od diff --git a/tests/net/ieee802154_hal/app.config.test b/tests/net/ieee802154_hal/app.config.test deleted file mode 100644 index 59f948423d17..000000000000 --- a/tests/net/ieee802154_hal/app.config.test +++ /dev/null @@ -1,16 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_OD=y -CONFIG_MODULE_LUID=y -CONFIG_MODULE_IEEE802154=y -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_SHELL_CMDS_DEFAULT=y -CONFIG_MODULE_L2UTIL=y -CONFIG_MODULE_PS=y - -CONFIG_MODULE_EVENT=y -CONFIG_MODULE_EVENT_THREAD=y -CONFIG_MODULE_EVENT_CALLBACK=y - -CONFIG_MODULE_XTIMER=y -CONFIG_MODULE_NETDEV_DEFAULT=y diff --git a/tests/net/ieee802154_hal/app.config.test.native b/tests/net/ieee802154_hal/app.config.test.native deleted file mode 100644 index 3a985adecc0a..000000000000 --- a/tests/net/ieee802154_hal/app.config.test.native +++ /dev/null @@ -1 +0,0 @@ -CONFIG_MODULE_SOCKET_ZEP=y diff --git a/tests/periph/adc/app.config.test b/tests/periph/adc/app.config.test deleted file mode 100644 index a1651740ff3e..000000000000 --- a/tests/periph/adc/app.config.test +++ /dev/null @@ -1,8 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -# enable ADC peripheral driver -CONFIG_MODULE_PERIPH_ADC=y - -# enable xtimer to wake up periodically -CONFIG_MODULE_ZTIMER=y -CONFIG_MODULE_ZTIMER_MSEC=y diff --git a/tests/periph/backup_ram/Kconfig b/tests/periph/backup_ram/Kconfig deleted file mode 100644 index de3ff787c6db..000000000000 --- a/tests/periph/backup_ram/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# 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 HAS_BACKUP_RAM - depends on HAS_PERIPH_RTC - depends on TEST_KCONFIG diff --git a/tests/periph/backup_ram/app.config.test b/tests/periph/backup_ram/app.config.test deleted file mode 100644 index 908a05dae5b0..000000000000 --- a/tests/periph/backup_ram/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_PM_LAYERED=y -CONFIG_MODULE_PERIPH_RTC=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/periph/cpuid/app.config.test b/tests/periph/cpuid/app.config.test deleted file mode 100644 index c90833600098..000000000000 --- a/tests/periph/cpuid/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_PERIPH_CPUID=y diff --git a/tests/periph/dac/app.config.test b/tests/periph/dac/app.config.test deleted file mode 100644 index 7b1b45ec0a9c..000000000000 --- a/tests/periph/dac/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_PERIPH_DAC=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/periph/dma/app.config.test b/tests/periph/dma/app.config.test deleted file mode 100644 index d8a8d2e6ea2b..000000000000 --- a/tests/periph/dma/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_PERIPH_DMA=y diff --git a/tests/periph/eeprom/app.config.test b/tests/periph/eeprom/app.config.test deleted file mode 100644 index 475eef2f9946..000000000000 --- a/tests/periph/eeprom/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_PERIPH_EEPROM=y -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_SHELL_CMDS_DEFAULT=y # provides reboot command diff --git a/tests/periph/flashpage/Kconfig b/tests/periph/flashpage/Kconfig deleted file mode 100644 index 0e5583a074c4..000000000000 --- a/tests/periph/flashpage/Kconfig +++ /dev/null @@ -1,14 +0,0 @@ -# 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 - imply MODULE_PERIPH_FLASHPAGE_IN_ADDRESS_SPACE - imply MODULE_PERIPH_FLASHPAGE_PAGEWISE - imply MODULE_PERIPH_FLASHPAGE_RWEE - depends on TEST_KCONFIG diff --git a/tests/periph/flashpage/app.config.test b/tests/periph/flashpage/app.config.test deleted file mode 100644 index 845ea3faf283..000000000000 --- a/tests/periph/flashpage/app.config.test +++ /dev/null @@ -1,6 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_OD=y -CONFIG_MODULE_OD_STRING=y -CONFIG_MODULE_PERIPH_FLASHPAGE=y -CONFIG_MODULE_SHELL=y diff --git a/tests/periph/flashpage_unittest/app.config.test b/tests/periph/flashpage_unittest/app.config.test deleted file mode 100644 index 2196b64e79d9..000000000000 --- a/tests/periph/flashpage_unittest/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_EMBUNIT=y -CONFIG_MODULE_PERIPH_FLASHPAGE=y diff --git a/tests/periph/fmc/Kconfig b/tests/periph/fmc/Kconfig deleted file mode 100644 index a0134acf7f55..000000000000 --- a/tests/periph/fmc/Kconfig +++ /dev/null @@ -1,6 +0,0 @@ -config APPLICATION - bool - default y - imply MODULE_PERIPH_FMC_NOR_SRAM - imply MODULE_PERIPH_FMC_SDRAM - depends on TEST_KCONFIG diff --git a/tests/periph/fmc/app.config.test b/tests/periph/fmc/app.config.test deleted file mode 100644 index b651e9e402f1..000000000000 --- a/tests/periph/fmc/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -CONFIG_MODULE_BENCHMARK=y -CONFIG_MODULE_PERIPH_FMC=y -CONFIG_MODULE_OD=y diff --git a/tests/periph/gpio/Kconfig b/tests/periph/gpio/Kconfig deleted file mode 100644 index 6afcd6bde7be..000000000000 --- a/tests/periph/gpio/Kconfig +++ /dev/null @@ -1,14 +0,0 @@ -# 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 - imply MODULE_PERIPH_GPIO_IRQ - imply MODULE_PERIPH_GPIO_FAST_READ - imply MODULE_PERIPH_GPIO_TAMPER_WAKE - depends on TEST_KCONFIG diff --git a/tests/periph/gpio/Makefile b/tests/periph/gpio/Makefile index cfa682793093..0095f45d1f1e 100644 --- a/tests/periph/gpio/Makefile +++ b/tests/periph/gpio/Makefile @@ -13,10 +13,6 @@ USEMODULE += benchmark # disable native GPIOs for automatic test ifneq (,$(filter native native64,$(BOARD))) USEMODULE += periph_gpio_mock - # the same for Kconfig - ifeq (1,$(TEST_KCONFIG)) - KCONFIG_ADD_CONFIG += $(APPDIR)/app.config.test.native - endif endif BOARDS_BENCH_PORT_1 = \ diff --git a/tests/periph/gpio/app.config.test b/tests/periph/gpio/app.config.test deleted file mode 100644 index a045e68edf44..000000000000 --- a/tests/periph/gpio/app.config.test +++ /dev/null @@ -1,7 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_PERIPH_GPIO=y - -CONFIG_MODULE_BENCHMARK=y -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_SHELL_CMDS_DEFAULT=y diff --git a/tests/periph/gpio/app.config.test.native b/tests/periph/gpio/app.config.test.native deleted file mode 100644 index 05fab9dc7ed7..000000000000 --- a/tests/periph/gpio/app.config.test.native +++ /dev/null @@ -1,2 +0,0 @@ -# disable native GPIOs for automatic test -CONFIG_MODULE_PERIPH_GPIO_MOCK=y diff --git a/tests/periph/gpio_arduino/app.config.test b/tests/periph/gpio_arduino/app.config.test deleted file mode 100644 index 7b56244a349b..000000000000 --- a/tests/periph/gpio_arduino/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_PERIPH_GPIO=y -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_ARDUINO=y diff --git a/tests/periph/hwrng/app.config.test b/tests/periph/hwrng/app.config.test deleted file mode 100644 index ce0acb3db7c0..000000000000 --- a/tests/periph/hwrng/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_PERIPH_HWRNG=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/periph/i2c/Kconfig b/tests/periph/i2c/Kconfig deleted file mode 100644 index 69fcb29cf3c2..000000000000 --- a/tests/periph/i2c/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# 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 - imply MODULE_PERIPH_I2C_RECONFIGURE - depends on TEST_KCONFIG diff --git a/tests/periph/i2c/app.config.test b/tests/periph/i2c/app.config.test deleted file mode 100644 index e4ef850de6fc..000000000000 --- a/tests/periph/i2c/app.config.test +++ /dev/null @@ -1,7 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_PERIPH_I2C=y -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_SHELL_CMDS_DEFAULT=y -CONFIG_MODULE_SHELL_CMD_I2C_SCAN=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/periph/pio/Kconfig b/tests/periph/pio/Kconfig deleted file mode 100644 index baffd0aa9477..000000000000 --- a/tests/periph/pio/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# Copyright (c) 2021 Otto-von-Guericke Universität Magdeburg -# -# 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 TEST_KCONFIG diff --git a/tests/periph/pio/app.config.test b/tests/periph/pio/app.config.test deleted file mode 100644 index 550933221c24..000000000000 --- a/tests/periph/pio/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_PERIPH_PIO=y diff --git a/tests/periph/pm/Kconfig b/tests/periph/pm/Kconfig deleted file mode 100644 index 021a1e604043..000000000000 --- a/tests/periph/pm/Kconfig +++ /dev/null @@ -1,14 +0,0 @@ -# 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 - imply MODULE_PERIPH_RTC - imply MODULE_PERIPH_GPIO - imply MODULE_PERIPH_GPIO_IRQ - depends on TEST_KCONFIG diff --git a/tests/periph/pm/app.config.test b/tests/periph/pm/app.config.test deleted file mode 100644 index 3982a4173984..000000000000 --- a/tests/periph/pm/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_SHELL_CMDS_DEFAULT=y diff --git a/tests/periph/pwm/app.config.test b/tests/periph/pwm/app.config.test deleted file mode 100644 index ba2022206759..000000000000 --- a/tests/periph/pwm/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_PERIPH_PWM=y -CONFIG_MODULE_XTIMER=y -CONFIG_MODULE_SHELL=y diff --git a/tests/periph/qdec/app.config.test b/tests/periph/qdec/app.config.test deleted file mode 100644 index aedaab298b30..000000000000 --- a/tests/periph/qdec/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_PERIPH_QDEC=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/periph/qdec/boards_modded/nrf52840dk_mod/Kconfig b/tests/periph/qdec/boards_modded/nrf52840dk_mod/Kconfig index 4d477d829a4c..5cdea4fe52c3 100644 --- a/tests/periph/qdec/boards_modded/nrf52840dk_mod/Kconfig +++ b/tests/periph/qdec/boards_modded/nrf52840dk_mod/Kconfig @@ -12,13 +12,5 @@ config BOARD_NRF52840DK default y select BOARDS_COMMON_NRF52XXXDK select CPU_MODEL_NRF52840XXAA - select HAS_PERIPH_PWM - select HAS_PERIPH_QDEC - select HAS_PERIPH_USBDEV - select HAS_VDD_LC_FILTER_REG0 - select HAVE_MTD_SPI_NOR - - select MODULE_BOARDS_COMMON_NRF52XXXDK if TEST_KCONFIG - select MODULE_BOARD_NRF52840DK_QDEC if TEST_KCONFIG source "$(RIOTBOARD)/common/nrf52xxxdk/Kconfig" diff --git a/tests/periph/rtc/Kconfig b/tests/periph/rtc/Kconfig deleted file mode 100644 index 28f35f69f83a..000000000000 --- a/tests/periph/rtc/Kconfig +++ /dev/null @@ -1,12 +0,0 @@ -# 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 APPLICATION - bool - default y - imply MODULE_PERIPH_RTC_MEM - imply MODULE_PERIPH_RTC_MS diff --git a/tests/periph/rtc/app.config.test b/tests/periph/rtc/app.config.test deleted file mode 100644 index 93f5dc131e66..000000000000 --- a/tests/periph/rtc/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_PERIPH_RTC=y -CONFIG_MODULE_PERIPH_INIT_RTC=n -CONFIG_MODULE_XTIMER=y diff --git a/tests/periph/rtt/Kconfig b/tests/periph/rtt/Kconfig deleted file mode 100644 index 7f55c6f9b9d6..000000000000 --- a/tests/periph/rtt/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright (C) 2021 Otto-von-Guericke-Universität Magdeburg -# -# 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 - imply MODULE_PERIPH_RTT_SET_COUNTER - imply MODULE_PERIPH_RTC_MEM - depends on TEST_KCONFIG diff --git a/tests/periph/rtt/app.config.test b/tests/periph/rtt/app.config.test deleted file mode 100644 index 00918e579569..000000000000 --- a/tests/periph/rtt/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_PERIPH_RTT=y -CONFIG_MODULE_PERIPH_INIT_RTT=n diff --git a/tests/periph/rtt_min/app.config.test b/tests/periph/rtt_min/app.config.test deleted file mode 100644 index bbf20e74bc71..000000000000 --- a/tests/periph/rtt_min/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_PERIPH_RTT=y -CONFIG_MODULE_PERIPH_INIT_RTT=n -CONFIG_MODULE_XTIMER=y diff --git a/tests/periph/spi/Kconfig b/tests/periph/spi/Kconfig deleted file mode 100644 index 81eec10619d8..000000000000 --- a/tests/periph/spi/Kconfig +++ /dev/null @@ -1,34 +0,0 @@ -# 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 APP_CONSIDERS_BOARD_LOW_MEMORY - bool - help - This disables optional features for boards that are scare on resources - default y if BOARD_ARDUINO_DUEMILANOVE - default y if BOARD_ARDUINO_LEONARDO - default y if BOARD_ARDUINO_NANO - default y if BOARD_ARDUINO_UNO - default y if BOARD_ATMEGA328P - default y if BOARD_ATMEGA328P_XPLAINED_MINI - default y if BOARD_ATMEGA8 - default y if BOARD_MSB_430 - default y if BOARD_MSB_430H - default y if BOARD_NUCLEO_L011K4 - default y if BOARD_OLIMEX_MSP430_H1611 - default y if BOARD_OLIMEX_MSP430_H2618 - default y if BOARD_SAMD10_XMINI - default y if BOARD_STM32F030F4_DEMO - default y if BOARD_TELOSB - default y if BOARD_Z1 - -config APPLICATION - bool - default y - imply MODULE_PERIPH_SPI_ON_QSPI - depends on TEST_KCONFIG - imply MODULE_PERIPH_SPI_RECONFIGURE if !APP_CONSIDERS_BOARD_LOW_MEMORY - select MODULE_SCHEDSTATISTICS if !APP_CONSIDERS_BOARD_LOW_MEMORY diff --git a/tests/periph/spi/app.config.test b/tests/periph/spi/app.config.test deleted file mode 100644 index 47ca185cb7e8..000000000000 --- a/tests/periph/spi/app.config.test +++ /dev/null @@ -1,9 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_PERIPH_SPI=y - -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_SHELL_CMDS_DEFAULT=y -CONFIG_MODULE_ZTIMER=y -CONFIG_MODULE_ZTIMER_SEC=y -CONFIG_ZTIMER_USEC=y diff --git a/tests/periph/spi_dma/Kconfig b/tests/periph/spi_dma/Kconfig deleted file mode 100644 index bf2aa746430c..000000000000 --- a/tests/periph/spi_dma/Kconfig +++ /dev/null @@ -1,13 +0,0 @@ -# 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 - imply MODULE_PERIPH_SPI_RECONFIGURE - imply MODULE_PERIPH_SPI_ON_QSPI - depends on TEST_KCONFIG diff --git a/tests/periph/spi_dma/app.config.test b/tests/periph/spi_dma/app.config.test deleted file mode 100644 index 8e293cf61c1f..000000000000 --- a/tests/periph/spi_dma/app.config.test +++ /dev/null @@ -1,11 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_PERIPH_DMA=y -CONFIG_MODULE_PERIPH_SPI=y - -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_SHELL_CMDS_DEFAULT=y -CONFIG_MODULE_SCHEDSTATISTICS=y -CONFIG_MODULE_ZTIMER=y -CONFIG_MODULE_ZTIMER_SEC=y -CONFIG_ZTIMER_USEC=y diff --git a/tests/periph/timer/Kconfig b/tests/periph/timer/Kconfig deleted file mode 100644 index 6b18000ec625..000000000000 --- a/tests/periph/timer/Kconfig +++ /dev/null @@ -1,11 +0,0 @@ -# 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 TEST_KCONFIG - imply MODULE_PERIPH_TIMER_QUERY_FREQS diff --git a/tests/periph/timer/app.config.test b/tests/periph/timer/app.config.test deleted file mode 100644 index 92649274d84f..000000000000 --- a/tests/periph/timer/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_PERIPH_TIMER=y diff --git a/tests/periph/timer_periodic/app.config.test b/tests/periph/timer_periodic/app.config.test deleted file mode 100644 index b0c32f3a9a4d..000000000000 --- a/tests/periph/timer_periodic/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_PERIPH_TIMER=y -CONFIG_MODULE_PERIPH_TIMER_PERIODIC=y -CONFIG_MODULE_FMT=y diff --git a/tests/periph/timer_short_relative_set/app.config.test b/tests/periph/timer_short_relative_set/app.config.test deleted file mode 100644 index 0b4a4b0311eb..000000000000 --- a/tests/periph/timer_short_relative_set/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_PERIPH_TIMER=y -CONFIG_MODULE_CORE_THREAD_FLAGS=y diff --git a/tests/periph/uart/Kconfig b/tests/periph/uart/Kconfig deleted file mode 100644 index 48eb39d095ee..000000000000 --- a/tests/periph/uart/Kconfig +++ /dev/null @@ -1,15 +0,0 @@ -# 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 - imply MODULE_PERIPH_UART_MODECFG - imply MODULE_PERIPH_LPUART - imply MODULE_PERIPH_UART_RXSTART_IRQ - imply MODULE_PERIPH_UART_COLLISION - depends on TEST_KCONFIG diff --git a/tests/periph/uart/app.config.test b/tests/periph/uart/app.config.test deleted file mode 100644 index 5538b7fa952f..000000000000 --- a/tests/periph/uart/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_PERIPH_UART=y -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/periph/uart_mode/app.config.test b/tests/periph/uart_mode/app.config.test deleted file mode 100644 index bd1543082b25..000000000000 --- a/tests/periph/uart_mode/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_PERIPH_UART=y -CONFIG_MODULE_PERIPH_UART_MODECFG=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/periph/uart_nonblocking/app.config.test b/tests/periph/uart_nonblocking/app.config.test deleted file mode 100644 index bdb6c5c71412..000000000000 --- a/tests/periph/uart_nonblocking/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_PERIPH_UART=y -CONFIG_MODULE_PERIPH_UART_NONBLOCKING=y -CONFIG_ZTIMER_USEC=y diff --git a/tests/periph/vbat/app.config.test b/tests/periph/vbat/app.config.test deleted file mode 100644 index 53f7c7a8207e..000000000000 --- a/tests/periph/vbat/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_ZTIMER=y -CONFIG_MODULE_ZTIMER_MSEC=y -CONFIG_MODULE_PERIPH_VBAT=y diff --git a/tests/periph/wdt/app.config.test b/tests/periph/wdt/app.config.test deleted file mode 100644 index df18f3225194..000000000000 --- a/tests/periph/wdt/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_PERIPH_WDT=y -CONFIG_MODULE_XTIMER=y -CONFIG_MODULE_SHELL=y diff --git a/tests/pkg/arduino_adafruit_sensor/app.config.test b/tests/pkg/arduino_adafruit_sensor/app.config.test deleted file mode 100644 index 8789d8831dda..000000000000 --- a/tests/pkg/arduino_adafruit_sensor/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_PACKAGE_ARDUINO_ADAFRUIT_SENSOR=y diff --git a/tests/pkg/c25519/app.config.test b/tests/pkg/c25519/app.config.test deleted file mode 100644 index 93903d2b3fa5..000000000000 --- a/tests/pkg/c25519/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -CONFIG_MODULE_EMBUNIT=y -CONFIG_MODULE_RANDOM=y -CONFIG_PACKAGE_C25519=y diff --git a/tests/pkg/cayenne-lpp/app.config.test b/tests/pkg/cayenne-lpp/app.config.test deleted file mode 100644 index 839c0acd2bd2..000000000000 --- a/tests/pkg/cayenne-lpp/app.config.test +++ /dev/null @@ -1 +0,0 @@ -CONFIG_PACKAGE_CAYENNE-LPP=y diff --git a/tests/pkg/cifra/app.config.test b/tests/pkg/cifra/app.config.test deleted file mode 100644 index 0aab052b73e8..000000000000 --- a/tests/pkg/cifra/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -CONFIG_MODULE_EMBUNIT=y -CONFIG_MODULE_RANDOM=y -CONFIG_PACKAGE_CIFRA=y diff --git a/tests/pkg/cmsis-dsp/app.config.test b/tests/pkg/cmsis-dsp/app.config.test deleted file mode 100644 index 6cdfbbfbf900..000000000000 --- a/tests/pkg/cmsis-dsp/app.config.test +++ /dev/null @@ -1 +0,0 @@ -CONFIG_MODULE_CMSIS-DSP=y diff --git a/tests/pkg/cmsis-nn/app.config.test b/tests/pkg/cmsis-nn/app.config.test deleted file mode 100644 index b325c2fc0d91..000000000000 --- a/tests/pkg/cmsis-nn/app.config.test +++ /dev/null @@ -1 +0,0 @@ -CONFIG_MODULE_CMSIS-NN=y diff --git a/tests/pkg/cn-cbor/app.config.test b/tests/pkg/cn-cbor/app.config.test deleted file mode 100644 index c90691e4c0e1..000000000000 --- a/tests/pkg/cn-cbor/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -CONFIG_MODULE_EMBUNIT=y -CONFIG_MODULE_FMT=y -CONFIG_MODULE_MEMARRAY=y -CONFIG_PACKAGE_CN-CBOR=y diff --git a/tests/pkg/corejson/app.config.test b/tests/pkg/corejson/app.config.test deleted file mode 100644 index d15a33794e06..000000000000 --- a/tests/pkg/corejson/app.config.test +++ /dev/null @@ -1 +0,0 @@ -CONFIG_PACKAGE_COREJSON=y diff --git a/tests/pkg/cryptoauthlib_compare_sha256/app.config.test b/tests/pkg/cryptoauthlib_compare_sha256/app.config.test deleted file mode 100644 index d15370143244..000000000000 --- a/tests/pkg/cryptoauthlib_compare_sha256/app.config.test +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_PACKAGE_CRYPTOAUTHLIB=y -CONFIG_MODULE_HASHES=y diff --git a/tests/pkg/cryptoauthlib_internal-tests/app.config.test b/tests/pkg/cryptoauthlib_internal-tests/app.config.test deleted file mode 100644 index 5be197f2a95a..000000000000 --- a/tests/pkg/cryptoauthlib_internal-tests/app.config.test +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_PACKAGE_CRYPTOAUTHLIB=y -CONFIG_MODULE_CRYPTOAUTHLIB_TEST=y diff --git a/tests/pkg/elk/app.config.test b/tests/pkg/elk/app.config.test deleted file mode 100644 index f80311febc65..000000000000 --- a/tests/pkg/elk/app.config.test +++ /dev/null @@ -1 +0,0 @@ -CONFIG_PACKAGE_ELK=y diff --git a/tests/pkg/emlearn/app.config.test b/tests/pkg/emlearn/app.config.test deleted file mode 100644 index 059be7886568..000000000000 --- a/tests/pkg/emlearn/app.config.test +++ /dev/null @@ -1 +0,0 @@ -CONFIG_PACKAGE_EMLEARN=y diff --git a/tests/pkg/etl/app.config.test b/tests/pkg/etl/app.config.test deleted file mode 100644 index 2e0058b64dbe..000000000000 --- a/tests/pkg/etl/app.config.test +++ /dev/null @@ -1 +0,0 @@ -CONFIG_PACKAGE_ETL=y diff --git a/tests/pkg/fatfs_vfs/Makefile.ci b/tests/pkg/fatfs_vfs/Makefile.ci index 32753677757e..9d9af255a5b4 100644 --- a/tests/pkg/fatfs_vfs/Makefile.ci +++ b/tests/pkg/fatfs_vfs/Makefile.ci @@ -18,5 +18,4 @@ BOARD_INSUFFICIENT_MEMORY := \ stk3200 \ stm32f030f4-demo \ telosb \ - z1 \ # diff --git a/tests/pkg/fff/app.config.test b/tests/pkg/fff/app.config.test deleted file mode 100644 index a922209180a4..000000000000 --- a/tests/pkg/fff/app.config.test +++ /dev/null @@ -1 +0,0 @@ -CONFIG_PACKAGE_FFF=y diff --git a/tests/pkg/flatbuffers/app.config.test b/tests/pkg/flatbuffers/app.config.test deleted file mode 100644 index 26bb4bfe0c5c..000000000000 --- a/tests/pkg/flatbuffers/app.config.test +++ /dev/null @@ -1 +0,0 @@ -CONFIG_PACKAGE_FLATBUFFERS=y diff --git a/tests/pkg/hacl/app.config.test b/tests/pkg/hacl/app.config.test deleted file mode 100644 index 3e2534eb1b77..000000000000 --- a/tests/pkg/hacl/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -CONFIG_MODULE_EMBUNIT=y -CONFIG_MODULE_RANDOM=y -CONFIG_PACKAGE_HACL=y diff --git a/tests/pkg/heatshrink/app.config.test b/tests/pkg/heatshrink/app.config.test deleted file mode 100644 index f01506833d1d..000000000000 --- a/tests/pkg/heatshrink/app.config.test +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_MODULE_EMBUNIT=y -CONFIG_PACKAGE_HEATSHRINK=y diff --git a/tests/pkg/jsmn/app.config.test b/tests/pkg/jsmn/app.config.test deleted file mode 100644 index 4fcb9eb7ed0b..000000000000 --- a/tests/pkg/jsmn/app.config.test +++ /dev/null @@ -1 +0,0 @@ -CONFIG_PACKAGE_JSMN=y diff --git a/tests/pkg/libb2/app.config.test b/tests/pkg/libb2/app.config.test deleted file mode 100644 index 1296d1304bb3..000000000000 --- a/tests/pkg/libb2/app.config.test +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_MODULE_EMBUNIT=y -CONFIG_PACKAGE_LIBB2=y diff --git a/tests/pkg/libbase58/app.config.test b/tests/pkg/libbase58/app.config.test deleted file mode 100644 index 3e6e71f2b56c..000000000000 --- a/tests/pkg/libbase58/app.config.test +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_MODULE_EMBUNIT=y -CONFIG_PACKAGE_LIBBASE58=y diff --git a/tests/pkg/libcose/app.config.test b/tests/pkg/libcose/app.config.test deleted file mode 100644 index 721f6057e521..000000000000 --- a/tests/pkg/libcose/app.config.test +++ /dev/null @@ -1,6 +0,0 @@ -CONFIG_MODULE_EMBUNIT=y -CONFIG_MODULE_LIBCOSE_CRYPT_HACL=y -CONFIG_MODULE_MEMARRAY=y -CONFIG_MODULE_RANDOM=y -CONFIG_PACKAGE_HACL=y -CONFIG_PACKAGE_LIBCOSE=y diff --git a/tests/pkg/libcose_encrypt/app.config.test b/tests/pkg/libcose_encrypt/app.config.test deleted file mode 100644 index 3d18bb4d1578..000000000000 --- a/tests/pkg/libcose_encrypt/app.config.test +++ /dev/null @@ -1,9 +0,0 @@ -CONFIG_MODULE_EMBUNIT=y -CONFIG_MODULE_LIBCOSE_CRYPT_RIOT=y -CONFIG_MODULE_MEMARRAY=y -# Should be autoselecting the MODULE_PRNG_HWRNG if possible -# Since the makefile cannot we have to override until end of migration -# Remove when TEST_KCONFIG is complete -CONFIG_MODULE_PRNG_MUSL_LCG=y -CONFIG_MODULE_RANDOM=y -CONFIG_PACKAGE_LIBCOSE=y diff --git a/tests/pkg/libfixmath/app.config.test b/tests/pkg/libfixmath/app.config.test deleted file mode 100644 index d30f54adf0eb..000000000000 --- a/tests/pkg/libfixmath/app.config.test +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_MODULE_LIBFIXMATH=y -CONFIG_PACKAGE_LIBFIXMATH=y diff --git a/tests/pkg/libhydrogen/app.config.test b/tests/pkg/libhydrogen/app.config.test deleted file mode 100644 index 924f3f89b9af..000000000000 --- a/tests/pkg/libhydrogen/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -CONFIG_MODULE_EMBUNIT=y -CONFIG_MODULE_RANDOM=y -CONFIG_PACKAGE_LIBHYDROGEN=y diff --git a/tests/pkg/littlefs2/app.config.test b/tests/pkg/littlefs2/app.config.test deleted file mode 100644 index 5aa1b1e84ec9..000000000000 --- a/tests/pkg/littlefs2/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -CONFIG_MODULE_EMBUNIT=y -CONFIG_MODULE_MTD_EMULATED=y -CONFIG_PACKAGE_LITTLEFS2=y diff --git a/tests/pkg/lora-serialization/app.config.test b/tests/pkg/lora-serialization/app.config.test deleted file mode 100644 index 729d16d90abd..000000000000 --- a/tests/pkg/lora-serialization/app.config.test +++ /dev/null @@ -1 +0,0 @@ -CONFIG_PACKAGE_LORA-SERIALIZATION=y diff --git a/tests/pkg/lua_loader/app.config.test b/tests/pkg/lua_loader/app.config.test deleted file mode 100644 index 1aa6872940be..000000000000 --- a/tests/pkg/lua_loader/app.config.test +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_PACKAGE_LUA=y -CONFIG_MODULE_STDIN=y diff --git a/tests/pkg/lvgl/app.config.test b/tests/pkg/lvgl/app.config.test deleted file mode 100644 index 11883456a722..000000000000 --- a/tests/pkg/lvgl/app.config.test +++ /dev/null @@ -1,22 +0,0 @@ -CONFIG_PACKAGE_LVGL=y -CONFIG_MODULE_LVGL_CONTRIB=y -CONFIG_MODULE_LVGL_EXTRA_WIDGET_CHART=y -CONFIG_MODULE_LVGL_EXTRA_WIDGET_WIN=y -CONFIG_MODULE_LVGL_EXTRA_LAYOUT_FLEX=y -CONFIG_MODULE_LVGL_EXTRA_THEME_DEFAULT=y -CONFIG_MODULE_LVGL_EXTRA_THEME_DEFAULT_DARK=y - -# Uncomment the following Kconfig symbols to configure LVGL using Kconfig. This -# requires the LVGL package to be already downloaded (e.g. built once already) -# LVGL specific configuration -# CONFIG_KCONFIG_USEPKG_LVGL=y -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_12=y -# CONFIG_LV_FONT_UNSCII_8=n -# CONFIG_LV_MEMCPY_MEMSET_STD=y -# CONFIG_LV_COLOR_16_SWAP=y -# # set memory size to 6 when -# # CONFIG_MODULE_LVGL_EXTRA_THEME_DEFAULT_GROW symbol above is enabled -# CONFIG_LV_MEM_SIZE_KILOBYTES=5 -# # comment out the following line when -# # CONFIG_MODULE_LVGL_EXTRA_THEME_DEFAULT_GROW symbol above is enabled -# CONFIG_LV_THEME_DEFAULT_GROW=n diff --git a/tests/pkg/lvgl_touch/app.config.test b/tests/pkg/lvgl_touch/app.config.test deleted file mode 100644 index 99bcfce6393a..000000000000 --- a/tests/pkg/lvgl_touch/app.config.test +++ /dev/null @@ -1,28 +0,0 @@ -CONFIG_PACKAGE_LVGL=y -CONFIG_MODULE_LVGL_CONTRIB=y -CONFIG_MODULE_LVGL_WIDGET_BTN=y -CONFIG_MODULE_LVGL_WIDGET_LABEL=y -CONFIG_MODULE_LVGL_EXTRA_THEME_DEFAULT=y -# uncomment the following to enable growing button (needs more RAM) -#CONFIG_MODULE_LVGL_EXTRA_THEME_DEFAULT_GROW=y - -# Add touch capabilities -CONFIG_MODULE_LVGL_CONTRIB_TOUCH=y - -# enable random positioning -CONFIG_MODULE_RANDOM=y - -# Uncomment the following Kconfig symbols to configure LVGL using Kconfig. This -# requires the LVGL package to be already downloaded (e.g. built once already) -# LVGL specific configuration -# CONFIG_KCONFIG_USEPKG_LVGL=y -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_12=y -# CONFIG_LV_FONT_UNSCII_8=n -# CONFIG_LV_MEMCPY_MEMSET_STD=y -# CONFIG_LV_COLOR_16_SWAP=y -# # set memory size to 6 when -# # CONFIG_MODULE_LVGL_EXTRA_THEME_DEFAULT_GROW symbol above is enabled -# CONFIG_LV_MEM_SIZE_KILOBYTES=5 -# # comment out the following line when -# # CONFIG_MODULE_LVGL_EXTRA_THEME_DEFAULT_GROW symbol above is enabled -# CONFIG_LV_THEME_DEFAULT_GROW=n diff --git a/tests/pkg/lz4/app.config.test b/tests/pkg/lz4/app.config.test deleted file mode 100644 index cdc6f22903a3..000000000000 --- a/tests/pkg/lz4/app.config.test +++ /dev/null @@ -1 +0,0 @@ -CONFIG_PACKAGE_LZ4=y diff --git a/tests/pkg/micro-ecc/app.config.test b/tests/pkg/micro-ecc/app.config.test deleted file mode 100644 index 1429fa79d084..000000000000 --- a/tests/pkg/micro-ecc/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -CONFIG_MODULE_HASHES=y -CONFIG_MODULE_RANDOM=y -CONFIG_PACKAGE_MICRO-ECC=y diff --git a/tests/pkg/minmea/app.config.test b/tests/pkg/minmea/app.config.test deleted file mode 100644 index aad61c253347..000000000000 --- a/tests/pkg/minmea/app.config.test +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_MODULE_FMT=y -CONFIG_PACKAGE_MINMEA=y diff --git a/tests/pkg/mjson/app.config.test b/tests/pkg/mjson/app.config.test deleted file mode 100644 index a81192b504c9..000000000000 --- a/tests/pkg/mjson/app.config.test +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_MODULE_EMBUNIT=y -CONFIG_PACKAGE_MJSON=y diff --git a/tests/pkg/monocypher/app.config.test b/tests/pkg/monocypher/app.config.test deleted file mode 100644 index 145800c11931..000000000000 --- a/tests/pkg/monocypher/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -CONFIG_MODULE_EMBUNIT=y -CONFIG_MODULE_RANDOM=y -CONFIG_PACKAGE_MONOCYPHER=y diff --git a/tests/pkg/nanocbor/app.config.test b/tests/pkg/nanocbor/app.config.test deleted file mode 100644 index 7a3a432df46b..000000000000 --- a/tests/pkg/nanocbor/app.config.test +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_MODULE_EMBUNIT=y -CONFIG_PACKAGE_NANOCBOR=y diff --git a/tests/pkg/nanopb/app.config.test b/tests/pkg/nanopb/app.config.test deleted file mode 100644 index 96b0c8b8486b..000000000000 --- a/tests/pkg/nanopb/app.config.test +++ /dev/null @@ -1 +0,0 @@ -CONFIG_PACKAGE_NANOPB=y diff --git a/tests/pkg/nanors/app.config.test b/tests/pkg/nanors/app.config.test deleted file mode 100644 index fd1324401da4..000000000000 --- a/tests/pkg/nanors/app.config.test +++ /dev/null @@ -1,6 +0,0 @@ -CONFIG_PACKAGE_NANORS=y -CONFIG_MODULE_RANDOM=y -# Should be autoselecting the MODULE_PRNG_HWRNG if possible -# Since the makefile cannot we have to override until end of migration -# Remove when TEST_KCONFIG is complete -CONFIG_MODULE_PRNG_MUSL_LCG=y diff --git a/tests/pkg/qcbor/app.config.test b/tests/pkg/qcbor/app.config.test deleted file mode 100644 index 0265c9d654a9..000000000000 --- a/tests/pkg/qcbor/app.config.test +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_MODULE_EMBUNIT=y -CONFIG_PACKAGE_QCBOR=y diff --git a/tests/pkg/qdsa/app.config.test b/tests/pkg/qdsa/app.config.test deleted file mode 100644 index f76f62ad492c..000000000000 --- a/tests/pkg/qdsa/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -CONFIG_MODULE_EMBUNIT=y -CONFIG_MODULE_RANDOM=y -CONFIG_PACKAGE_QDSA=y diff --git a/tests/pkg/qr-code-generator/Kconfig b/tests/pkg/qr-code-generator/Kconfig deleted file mode 100644 index f5c45346d298..000000000000 --- a/tests/pkg/qr-code-generator/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -config APPLICATION - bool - default y - imply MODULE_DISP_DEV if BOARD_HAS_DISPLAY - depends on TEST_KCONFIG - -config BOARD_HAS_DISPLAY - bool - default y - depends on BOARD_PINETIME || BOARD_ADAFRUIT_CLUE || BOARD_ADAFRUIT_PYBADGE || BOARD_STM32F429I_DISC1 || BOARD_STM32F429I_DISCO || BOARD_STM32F746G_DISCO || BOARD_STM32F7508_DK || BOARD_ESP32_WROVER_KIT diff --git a/tests/pkg/qr-code-generator/app.config.test b/tests/pkg/qr-code-generator/app.config.test deleted file mode 100644 index 105f736641c0..000000000000 --- a/tests/pkg/qr-code-generator/app.config.test +++ /dev/null @@ -1 +0,0 @@ -CONFIG_PACKAGE_QR-CODE-GENERATOR=y diff --git a/tests/pkg/relic/app.config.test b/tests/pkg/relic/app.config.test deleted file mode 100644 index 22f61fe85485..000000000000 --- a/tests/pkg/relic/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -CONFIG_MODULE_EMBUNIT=y -CONFIG_MODULE_RANDOM=y -CONFIG_MODULE_PRNG_XORSHIFT=y -CONFIG_PACKAGE_RELIC=y diff --git a/tests/pkg/tflite-micro/Kconfig b/tests/pkg/tflite-micro/Kconfig deleted file mode 100644 index d9004558a5c7..000000000000 --- a/tests/pkg/tflite-micro/Kconfig +++ /dev/null @@ -1,6 +0,0 @@ -config MODULE_CORTEXM_FPU - bool - default n - depends on TEST_KCONFIG - depends on CPU_CORE_CORTEX_M - depends on HAS_CORTEXM_FPU diff --git a/tests/pkg/tflite-micro/app.config.test b/tests/pkg/tflite-micro/app.config.test deleted file mode 100644 index 4798ff9937d8..000000000000 --- a/tests/pkg/tflite-micro/app.config.test +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_PACKAGE_TFLITE-MICRO=y -CONFIG_MODULE_MNIST=y diff --git a/tests/pkg/tflite-micro/external_modules/mnist/Kconfig b/tests/pkg/tflite-micro/external_modules/mnist/Kconfig deleted file mode 100644 index c50b13a974e6..000000000000 --- a/tests/pkg/tflite-micro/external_modules/mnist/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright (c) 2022 Inria -# -# 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_MNIST - bool "MNIST main functions" - depends on TEST_KCONFIG diff --git a/tests/pkg/tiny-asn1/app.config.test b/tests/pkg/tiny-asn1/app.config.test deleted file mode 100644 index cb1f0d518ef0..000000000000 --- a/tests/pkg/tiny-asn1/app.config.test +++ /dev/null @@ -1 +0,0 @@ -CONFIG_PACKAGE_TINY-ASN1=y diff --git a/tests/pkg/tinycbor/app.config.test b/tests/pkg/tinycbor/app.config.test deleted file mode 100644 index 31860bface35..000000000000 --- a/tests/pkg/tinycbor/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -CONFIG_MODULE_EMBUNIT=y -CONFIG_MODULE_FMT=y -CONFIG_MODULE_TINYCBOR_FLOAT=y -CONFIG_PACKAGE_TINYCBOR=y diff --git a/tests/pkg/tinycrypt/app.config.test b/tests/pkg/tinycrypt/app.config.test deleted file mode 100644 index 848f8dbea375..000000000000 --- a/tests/pkg/tinycrypt/app.config.test +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_MODULE_FMT=y -CONFIG_PACKAGE_TINYCRYPT=y diff --git a/tests/pkg/tinyusb_cdc_acm_stdio/app.config.test b/tests/pkg/tinyusb_cdc_acm_stdio/app.config.test deleted file mode 100644 index 5808de9f5efc..000000000000 --- a/tests/pkg/tinyusb_cdc_acm_stdio/app.config.test +++ /dev/null @@ -1,9 +0,0 @@ -CONFIG_PACKAGE_TINYUSB=y -CONFIG_KCONFIG_USB=y -CONFIG_MODULE_TINYUSB_CLASS_CDC=y -CONFIG_MODULE_STDIO_TINYUSB_CDC_ACM=y -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_SHELL_CMDS_DEFAULT=y -CONFIG_MODULE_PS=y - -CONFIG_CUSTOM_USB_VID_PID=y diff --git a/tests/pkg/tinyusb_cdc_msc/app.config.test b/tests/pkg/tinyusb_cdc_msc/app.config.test deleted file mode 100644 index 061852be1389..000000000000 --- a/tests/pkg/tinyusb_cdc_msc/app.config.test +++ /dev/null @@ -1,6 +0,0 @@ -CONFIG_KCONFIG_USB=y -CONFIG_PACKAGE_TINYUSB=y -CONFIG_MODULE_TINYUSB_CLASS_CDC=y -CONFIG_MODULE_TINYUSB_CLASS_MSC=y - -CONFIG_CUSTOM_USB_VID_PID=y diff --git a/tests/pkg/tinyvcdiff/app.config.test b/tests/pkg/tinyvcdiff/app.config.test deleted file mode 100644 index ffc066de1d9b..000000000000 --- a/tests/pkg/tinyvcdiff/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -CONFIG_MODULE_EMBUNIT=y -CONFIG_MODULE_MTD=y -CONFIG_MODULE_LITTLEFS2_FS=y -CONFIG_PACKAGE_TINYVCDIFF=y -CONFIG_PACKAGE_LITTLEFS2=y diff --git a/tests/pkg/tweetnacl/app.config.test b/tests/pkg/tweetnacl/app.config.test deleted file mode 100644 index d81edac65d8e..000000000000 --- a/tests/pkg/tweetnacl/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -CONFIG_MODULE_EMBUNIT=y -CONFIG_MODULE_RANDOM=y -CONFIG_PACKAGE_TWEETNACL=y diff --git a/tests/pkg/u8g2/Makefile.ci b/tests/pkg/u8g2/Makefile.ci index 3dede04dbe4d..df883c20c6e8 100644 --- a/tests/pkg/u8g2/Makefile.ci +++ b/tests/pkg/u8g2/Makefile.ci @@ -12,5 +12,4 @@ BOARD_INSUFFICIENT_MEMORY := \ stk3200 \ stm32f030f4-demo \ telosb \ - z1 \ # diff --git a/tests/pkg/umorse/app.config.test b/tests/pkg/umorse/app.config.test deleted file mode 100644 index 0080d6d2d6e1..000000000000 --- a/tests/pkg/umorse/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -CONFIG_MODULE_POSIX_SLEEP=y -CONFIG_MODULE_ZTIMER=y -CONFIG_ZTIMER_USEC=y -CONFIG_MODULE_ZTIMER_MSEC=y -CONFIG_PACKAGE_UMORSE=y diff --git a/tests/pkg/utensor/app.config.test b/tests/pkg/utensor/app.config.test deleted file mode 100644 index be780c1c213b..000000000000 --- a/tests/pkg/utensor/app.config.test +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_PACKAGE_UTENSOR=y -CONFIG_MODULE_MODELS=y diff --git a/tests/pkg/utensor/external_modules/models/Kconfig b/tests/pkg/utensor/external_modules/models/Kconfig deleted file mode 100644 index 1d0a6ec1e352..000000000000 --- a/tests/pkg/utensor/external_modules/models/Kconfig +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright (c) 2022 Inria -# -# 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_MODELS - bool "uTensor models" - depends on TEST_KCONFIG diff --git a/tests/pkg/uzlib/app.config.test b/tests/pkg/uzlib/app.config.test deleted file mode 100644 index 9fe49c2b8d52..000000000000 --- a/tests/pkg/uzlib/app.config.test +++ /dev/null @@ -1 +0,0 @@ -CONFIG_PACKAGE_UZLIB=y diff --git a/tests/pkg/yxml/app.config.test b/tests/pkg/yxml/app.config.test deleted file mode 100644 index d558bce9d239..000000000000 --- a/tests/pkg/yxml/app.config.test +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_MODULE_EMBUNIT=y -CONFIG_PACKAGE_YXML=y diff --git a/tests/riotboot_flashwrite/Makefile.ci b/tests/riotboot_flashwrite/Makefile.ci index a738ab43bb69..77eee6600c03 100644 --- a/tests/riotboot_flashwrite/Makefile.ci +++ b/tests/riotboot_flashwrite/Makefile.ci @@ -29,5 +29,4 @@ BOARD_INSUFFICIENT_MEMORY := \ stk3200 \ stm32f0discovery \ telosb \ - z1 \ # diff --git a/tests/rust_libs/Makefile b/tests/rust_libs/Makefile index a41e32300765..9e587f31a564 100644 --- a/tests/rust_libs/Makefile +++ b/tests/rust_libs/Makefile @@ -2,6 +2,7 @@ include ../Makefile.tests_common USEMODULE += shell USEMODULE += shell_democommands +USEMODULE += ztimer_msec FEATURES_REQUIRED += rust_target diff --git a/tests/sys/arduino/app.config.test b/tests/sys/arduino/app.config.test deleted file mode 100644 index 7a14c2de6aa1..000000000000 --- a/tests/sys/arduino/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_ARDUINO=y diff --git a/tests/sys/atomic_utils/app.config.test b/tests/sys/atomic_utils/app.config.test deleted file mode 100644 index db297e6e848b..000000000000 --- a/tests/sys/atomic_utils/app.config.test +++ /dev/null @@ -1,7 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_ATOMIC_UTILS=y -CONFIG_MODULE_FMT=y -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_RANDOM=y -CONFIG_ZTIMER_USEC=y diff --git a/tests/sys/atomic_utils_unittests/app.config.test b/tests/sys/atomic_utils_unittests/app.config.test deleted file mode 100644 index 48a1c91b7068..000000000000 --- a/tests/sys/atomic_utils_unittests/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_EMBUNIT=y -CONFIG_MODULE_ATOMIC_UTILS=y -CONFIG_MODULE_RANDOM=y diff --git a/tests/sys/bloom_bytes/Makefile.ci b/tests/sys/bloom_bytes/Makefile.ci index cf1a705fe92b..a4b8fbdeaab6 100644 --- a/tests/sys/bloom_bytes/Makefile.ci +++ b/tests/sys/bloom_bytes/Makefile.ci @@ -8,5 +8,4 @@ BOARD_INSUFFICIENT_MEMORY := \ nucleo-l011k4 \ stm32f030f4-demo \ telosb \ - z1 \ # diff --git a/tests/sys/cb_mux/app.config.test b/tests/sys/cb_mux/app.config.test deleted file mode 100644 index 529b1b0c77b6..000000000000 --- a/tests/sys/cb_mux/app.config.test +++ /dev/null @@ -1 +0,0 @@ -CONFIG_MODULE_CB_MUX=y diff --git a/tests/sys/cb_mux_bench/app.config.test b/tests/sys/cb_mux_bench/app.config.test deleted file mode 100644 index 1910c983ca02..000000000000 --- a/tests/sys/cb_mux_bench/app.config.test +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_MODULE_CB_MUX=y -CONFIG_MODULE_XTIMER=y diff --git a/tests/sys/congure_abe/app.config b/tests/sys/congure_abe/app.config index 1a812b8b043d..b8133cb935af 100644 --- a/tests/sys/congure_abe/app.config +++ b/tests/sys/congure_abe/app.config @@ -1,4 +1,2 @@ -CONFIG_KCONFIG_USEMODULE_CONGURE_TEST=y -CONFIG_KCONFIG_USEMODULE_SHELL=y CONFIG_CONGURE_TEST_LOST_MSG_POOL_SIZE=6 CONFIG_SHELL_NO_ECHO=y diff --git a/tests/sys/congure_abe/app.config.test b/tests/sys/congure_abe/app.config.test deleted file mode 100644 index ca5263607cf1..000000000000 --- a/tests/sys/congure_abe/app.config.test +++ /dev/null @@ -1,9 +0,0 @@ -CONFIG_MODULE_CONGURE=y -CONFIG_MODULE_CONGURE_ABE=y -CONFIG_MODULE_CONGURE_TEST=y -CONFIG_MODULE_FMT=y -CONFIG_MODULE_SEQ=y -CONFIG_MODULE_SHELL=y - -CONFIG_CONGURE_TEST_LOST_MSG_POOL_SIZE=6 -CONFIG_SHELL_NO_ECHO=y diff --git a/tests/sys/congure_quic/app.config b/tests/sys/congure_quic/app.config index 1a812b8b043d..b8133cb935af 100644 --- a/tests/sys/congure_quic/app.config +++ b/tests/sys/congure_quic/app.config @@ -1,4 +1,2 @@ -CONFIG_KCONFIG_USEMODULE_CONGURE_TEST=y -CONFIG_KCONFIG_USEMODULE_SHELL=y CONFIG_CONGURE_TEST_LOST_MSG_POOL_SIZE=6 CONFIG_SHELL_NO_ECHO=y diff --git a/tests/sys/congure_quic/app.config.test b/tests/sys/congure_quic/app.config.test deleted file mode 100644 index e961f3c1c67b..000000000000 --- a/tests/sys/congure_quic/app.config.test +++ /dev/null @@ -1,10 +0,0 @@ -CONFIG_MODULE_CONGURE=y -CONFIG_MODULE_CONGURE_QUIC=y -CONFIG_MODULE_CONGURE_TEST=y -CONFIG_MODULE_FMT=y -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_ZTIMER=y -CONFIG_MODULE_ZTIMER_MSEC=y - -CONFIG_CONGURE_TEST_LOST_MSG_POOL_SIZE=6 -CONFIG_SHELL_NO_ECHO=y diff --git a/tests/sys/congure_reno/app.config b/tests/sys/congure_reno/app.config index 1a812b8b043d..b8133cb935af 100644 --- a/tests/sys/congure_reno/app.config +++ b/tests/sys/congure_reno/app.config @@ -1,4 +1,2 @@ -CONFIG_KCONFIG_USEMODULE_CONGURE_TEST=y -CONFIG_KCONFIG_USEMODULE_SHELL=y CONFIG_CONGURE_TEST_LOST_MSG_POOL_SIZE=6 CONFIG_SHELL_NO_ECHO=y diff --git a/tests/sys/congure_reno/app.config.test b/tests/sys/congure_reno/app.config.test deleted file mode 100644 index e4f68a34ae91..000000000000 --- a/tests/sys/congure_reno/app.config.test +++ /dev/null @@ -1,10 +0,0 @@ -CONFIG_MODULE_CONGURE=y -CONFIG_MODULE_CONGURE_RENO=y -CONFIG_MODULE_CONGURE_TEST=y -CONFIG_MODULE_FMT=y -CONFIG_MODULE_SEQ=y -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_SHELL_CMDS_DEFAULT=y - -CONFIG_CONGURE_TEST_LOST_MSG_POOL_SIZE=6 -CONFIG_SHELL_NO_ECHO=y diff --git a/tests/sys/congure_test/app.config b/tests/sys/congure_test/app.config index 2d84fd3dac06..ac5e6738e54b 100644 --- a/tests/sys/congure_test/app.config +++ b/tests/sys/congure_test/app.config @@ -1,2 +1 @@ -CONFIG_KCONFIG_USEMODULE_SHELL=y CONFIG_SHELL_NO_ECHO=y diff --git a/tests/sys/congure_test/app.config.test b/tests/sys/congure_test/app.config.test deleted file mode 100644 index bfc82353d24d..000000000000 --- a/tests/sys/congure_test/app.config.test +++ /dev/null @@ -1,7 +0,0 @@ -CONFIG_MODULE_CONGURE=y -CONFIG_MODULE_CONGURE_MOCK=y -CONFIG_MODULE_CONGURE_TEST=y -CONFIG_MODULE_FMT=y -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_SHELL_CMDS_DEFAULT=y -CONFIG_SHELL_NO_ECHO=y diff --git a/tests/sys/conn_can/Makefile.ci b/tests/sys/conn_can/Makefile.ci index 49a4de5da5b8..2ef9e7ff7754 100644 --- a/tests/sys/conn_can/Makefile.ci +++ b/tests/sys/conn_can/Makefile.ci @@ -26,5 +26,4 @@ BOARD_INSUFFICIENT_MEMORY := \ stm32l0538-disco \ telosb \ yunjia-nrf51822 \ - z1 \ # diff --git a/tests/sys/cpp11_condition_variable/app.config.test b/tests/sys/cpp11_condition_variable/app.config.test deleted file mode 100644 index a77078797418..000000000000 --- a/tests/sys/cpp11_condition_variable/app.config.test +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_MODULE_CPP11-COMPAT=y -CONFIG_ZTIMER64_USEC=y diff --git a/tests/sys/cpp11_mutex/app.config.test b/tests/sys/cpp11_mutex/app.config.test deleted file mode 100644 index 1669ec4d81fd..000000000000 --- a/tests/sys/cpp11_mutex/app.config.test +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_MODULE_CPP11-COMPAT=y -CONFIG_MODULE_LIBC_GETTIMEOFDAY=y diff --git a/tests/sys/cpp11_thread/app.config.test b/tests/sys/cpp11_thread/app.config.test deleted file mode 100644 index 508c15747bd0..000000000000 --- a/tests/sys/cpp11_thread/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -CONFIG_MODULE_CPP11-COMPAT=y -CONFIG_MODULE_TIMEX=y -CONFIG_ZTIMER64_USEC=y diff --git a/tests/sys/cpp_ctors/app.config.test b/tests/sys/cpp_ctors/app.config.test deleted file mode 100644 index d50f5b2c3675..000000000000 --- a/tests/sys/cpp_ctors/app.config.test +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_MODULE_CPP=y -CONFIG_MODULE_EMBUNIT=y diff --git a/tests/sys/crypto/app.config.test b/tests/sys/crypto/app.config.test deleted file mode 100644 index 8420f852d505..000000000000 --- a/tests/sys/crypto/app.config.test +++ /dev/null @@ -1,11 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. - -CONFIG_MODULE_CRYPTO=y -CONFIG_MODULE_CRYPTO_AES_128=y -CONFIG_MODULE_CRYPTO_AES_192=y -CONFIG_MODULE_CRYPTO_AES_256=y -CONFIG_MODULE_CIPHER_MODES=y - -CONFIG_MODULE_EMBUNIT=y -CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y diff --git a/tests/sys/crypto_aes_ccm/app.config.test b/tests/sys/crypto_aes_ccm/app.config.test deleted file mode 100644 index 8420f852d505..000000000000 --- a/tests/sys/crypto_aes_ccm/app.config.test +++ /dev/null @@ -1,11 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. - -CONFIG_MODULE_CRYPTO=y -CONFIG_MODULE_CRYPTO_AES_128=y -CONFIG_MODULE_CRYPTO_AES_192=y -CONFIG_MODULE_CRYPTO_AES_256=y -CONFIG_MODULE_CIPHER_MODES=y - -CONFIG_MODULE_EMBUNIT=y -CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y diff --git a/tests/sys/eepreg/app.config.test b/tests/sys/eepreg/app.config.test deleted file mode 100644 index 3b705d6d8286..000000000000 --- a/tests/sys/eepreg/app.config.test +++ /dev/null @@ -1 +0,0 @@ -CONFIG_MODULE_EEPREG=y diff --git a/tests/sys/events/app.config.test b/tests/sys/events/app.config.test deleted file mode 100644 index e6ce8f1f7641..000000000000 --- a/tests/sys/events/app.config.test +++ /dev/null @@ -1,6 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -# enable event thread in lowest priority -CONFIG_MODULE_EVENT=y -CONFIG_MODULE_EVENT_CALLBACK=y -CONFIG_MODULE_EVENT_TIMEOUT=y diff --git a/tests/sys/evtimer_mbox/app.config.test b/tests/sys/evtimer_mbox/app.config.test deleted file mode 100644 index 4f02c158e226..000000000000 --- a/tests/sys/evtimer_mbox/app.config.test +++ /dev/null @@ -1 +0,0 @@ -CONFIG_MODULE_EVTIMER_MBOX=y diff --git a/tests/sys/evtimer_msg/app.config.test b/tests/sys/evtimer_msg/app.config.test deleted file mode 100644 index 77160ead67d6..000000000000 --- a/tests/sys/evtimer_msg/app.config.test +++ /dev/null @@ -1 +0,0 @@ -CONFIG_MODULE_EVTIMER=y diff --git a/tests/sys/evtimer_underflow/app.config.test b/tests/sys/evtimer_underflow/app.config.test deleted file mode 100644 index 77160ead67d6..000000000000 --- a/tests/sys/evtimer_underflow/app.config.test +++ /dev/null @@ -1 +0,0 @@ -CONFIG_MODULE_EVTIMER=y diff --git a/tests/sys/fido2_ctap/app.config.test b/tests/sys/fido2_ctap/app.config.test deleted file mode 100644 index a54418e52446..000000000000 --- a/tests/sys/fido2_ctap/app.config.test +++ /dev/null @@ -1,13 +0,0 @@ -CONFIG_MODULE_AUTO_INIT_USBUS=n -CONFIG_KCONFIG_USB=y -CONFIG_MODULE_USBUS=y -CONFIG_MODULE_FIDO2=y -CONFIG_MODULE_FIDO2_CTAP=y -CONFIG_MODULE_FIDO2_CTAP_TRANSPORT=y -CONFIG_MODULE_FIDO2_CTAP_TRANSPORT_HID=y -CONFIG_MODULE_ZTIMER=y -CONFIG_MODULE_ZTIMER_SEC=y - -CONFIG_PACKAGE_FIDO2_TESTS=y - -CONFIG_CUSTOM_USB_VID_PID=y diff --git a/tests/sys/heap_cmd/app.config.test b/tests/sys/heap_cmd/app.config.test deleted file mode 100644 index 116ea6168a0e..000000000000 --- a/tests/sys/heap_cmd/app.config.test +++ /dev/null @@ -1,7 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. - -CONFIG_MODULE_PS=y -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_SHELL_CMDS_DEFAULT=y -CONFIG_MODULE_SHELL_CMD_HEAP=y diff --git a/tests/sys/log_color/app.config.test b/tests/sys/log_color/app.config.test deleted file mode 100644 index 3b73d454d9a5..000000000000 --- a/tests/sys/log_color/app.config.test +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_MODULE_LOG=y -CONFIG_MODULE_LOG_COLOR=y diff --git a/tests/sys/log_printfnoformat/app.config.test b/tests/sys/log_printfnoformat/app.config.test deleted file mode 100644 index a6da5b098069..000000000000 --- a/tests/sys/log_printfnoformat/app.config.test +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_MODULE_LOG=y -CONFIG_MODULE_LOG_PRINTFNOFORMAT=y diff --git a/tests/sys/phydat_unix/app.config.test b/tests/sys/phydat_unix/app.config.test deleted file mode 100644 index b71b9c3d1366..000000000000 --- a/tests/sys/phydat_unix/app.config.test +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_MODULE_PHYDAT=y -CONFIG_MODULE_EMBUNIT=y diff --git a/tests/sys/pipe/app.config.test b/tests/sys/pipe/app.config.test deleted file mode 100644 index 18cf9c231407..000000000000 --- a/tests/sys/pipe/app.config.test +++ /dev/null @@ -1 +0,0 @@ -CONFIG_MODULE_PIPE=y diff --git a/tests/sys/posix_sleep/app.config.test b/tests/sys/posix_sleep/app.config.test deleted file mode 100644 index 1400000f7831..000000000000 --- a/tests/sys/posix_sleep/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -CONFIG_MODULE_POSIX_SLEEP=y -CONFIG_MODULE_ZTIMER=y -CONFIG_ZTIMER_USEC=y -CONFIG_MODULE_ZTIMER_MSEC=y diff --git a/tests/sys/prng_sha1prng/app.config.test b/tests/sys/prng_sha1prng/app.config.test deleted file mode 100644 index f254088039cd..000000000000 --- a/tests/sys/prng_sha1prng/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_RANDOM=y -CONFIG_MODULE_PRNG_SHA1PRNG=y -CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y diff --git a/tests/sys/prng_sha256prng/app.config.test b/tests/sys/prng_sha256prng/app.config.test deleted file mode 100644 index 64073325df00..000000000000 --- a/tests/sys/prng_sha256prng/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_RANDOM=y -CONFIG_MODULE_PRNG_SHA256PRNG=y -CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y diff --git a/tests/sys/ps_schedstatistics/Makefile.ci b/tests/sys/ps_schedstatistics/Makefile.ci index 7ae24644195e..65e7e44e55fe 100644 --- a/tests/sys/ps_schedstatistics/Makefile.ci +++ b/tests/sys/ps_schedstatistics/Makefile.ci @@ -24,5 +24,4 @@ BOARD_INSUFFICIENT_MEMORY := \ stm32l0538-disco \ telosb \ weact-g030f6 \ - z1 \ # diff --git a/tests/sys/psa_crypto_cipher/Makefile b/tests/sys/psa_crypto_cipher/Makefile index 44b4b8f059c7..2e8dd0ae2ba6 100644 --- a/tests/sys/psa_crypto_cipher/Makefile +++ b/tests/sys/psa_crypto_cipher/Makefile @@ -8,10 +8,8 @@ USEMODULE += psa_crypto USEMODULE += psa_cipher USEMODULE += psa_cipher_aes_128_cbc -ifneq (1, $(TEST_KCONFIG)) +ifneq (1, $(SHOULD_RUN_KCONFIG)) CFLAGS += -DCONFIG_PSA_SINGLE_KEY_COUNT=1 endif -SHOULD_RUN_KCONFIG := - include $(RIOTBASE)/Makefile.include diff --git a/tests/sys/psa_crypto_cipher/app.config.test b/tests/sys/psa_crypto_cipher/app.config.test deleted file mode 100644 index cada089f55db..000000000000 --- a/tests/sys/psa_crypto_cipher/app.config.test +++ /dev/null @@ -1,8 +0,0 @@ -CONFIG_MODULE_PSA_CRYPTO=y - -CONFIG_MODULE_PSA_CIPHER=y -CONFIG_MODULE_PSA_CIPHER_AES_128_CBC=y - -CONFIG_PSA_SINGLE_KEY_COUNT=1 - -CONFIG_ZTIMER_USEC=y diff --git a/tests/sys/psa_crypto_ecdsa/Makefile b/tests/sys/psa_crypto_ecdsa/Makefile index 1ffb6ed2685f..8b529ac2660a 100644 --- a/tests/sys/psa_crypto_ecdsa/Makefile +++ b/tests/sys/psa_crypto_ecdsa/Makefile @@ -10,13 +10,11 @@ USEMODULE += psa_hash_sha_256 USEMODULE += psa_asymmetric USEMODULE += psa_asymmetric_ecc_p256r1 -ifneq (1, $(TEST_KCONFIG)) +ifneq (1, $(SHOULD_RUN_KCONFIG)) CFLAGS += -DCONFIG_PSA_ASYMMETRIC_KEYPAIR_COUNT=1 CFLAGS += -DCONFIG_PSA_SINGLE_KEY_COUNT=1 endif -SHOULD_RUN_KCONFIG := - CFLAGS += -DTHREAD_STACKSIZE_MAIN=4096 include $(RIOTBASE)/Makefile.include diff --git a/tests/sys/psa_crypto_ecdsa/app.config.test b/tests/sys/psa_crypto_ecdsa/app.config.test deleted file mode 100644 index 9e39cdbd9884..000000000000 --- a/tests/sys/psa_crypto_ecdsa/app.config.test +++ /dev/null @@ -1,10 +0,0 @@ -CONFIG_MODULE_PSA_CRYPTO=y - -CONFIG_MODULE_PSA_HASH=y -CONFIG_MODULE_PSA_HASH_SHA_256=y -CONFIG_MODULE_PSA_ASYMMETRIC=y -CONFIG_MODULE_PSA_ASYMMETRIC_ECC_P256R1=y -CONFIG_PSA_ASYMMETRIC_KEYPAIR_COUNT=1 -CONFIG_PSA_SINGLE_KEY_COUNT=1 - -CONFIG_ZTIMER_USEC=y diff --git a/tests/sys/psa_crypto_eddsa/Makefile b/tests/sys/psa_crypto_eddsa/Makefile index f8cd24031875..578eeaf74769 100644 --- a/tests/sys/psa_crypto_eddsa/Makefile +++ b/tests/sys/psa_crypto_eddsa/Makefile @@ -8,13 +8,11 @@ USEMODULE += psa_crypto USEMODULE += psa_asymmetric USEMODULE += psa_asymmetric_ecc_ed25519 -ifneq (1, $(TEST_KCONFIG)) +ifneq (1, $(SHOULD_RUN_KCONFIG)) CFLAGS += -DCONFIG_PSA_ASYMMETRIC_KEYPAIR_COUNT=1 CFLAGS += -DCONFIG_PSA_SINGLE_KEY_COUNT=1 endif -SHOULD_RUN_KCONFIG := - CFLAGS += -DTHREAD_STACKSIZE_MAIN=4096 include $(RIOTBASE)/Makefile.include diff --git a/tests/sys/psa_crypto_eddsa/app.config.test b/tests/sys/psa_crypto_eddsa/app.config.test deleted file mode 100644 index 4d19f22e3215..000000000000 --- a/tests/sys/psa_crypto_eddsa/app.config.test +++ /dev/null @@ -1,8 +0,0 @@ -CONFIG_MODULE_PSA_CRYPTO=y - -CONFIG_MODULE_PSA_ASYMMETRIC=y -CONFIG_MODULE_PSA_ASYMMETRIC_ECC_ED25519=y -CONFIG_PSA_ASYMMETRIC_KEYPAIR_COUNT=1 -CONFIG_PSA_SINGLE_KEY_COUNT=1 - -CONFIG_ZTIMER_USEC=y diff --git a/tests/sys/psa_crypto_hashes/Makefile.ci b/tests/sys/psa_crypto_hashes/Makefile.ci index 72db76ccb5cc..363d4f3a79ad 100644 --- a/tests/sys/psa_crypto_hashes/Makefile.ci +++ b/tests/sys/psa_crypto_hashes/Makefile.ci @@ -1,3 +1,4 @@ BOARD_INSUFFICIENT_MEMORY := \ atmega8 \ + nucleo-l011k4 \ # diff --git a/tests/sys/psa_crypto_hashes/app.config.test b/tests/sys/psa_crypto_hashes/app.config.test deleted file mode 100644 index d5a63d3a56bf..000000000000 --- a/tests/sys/psa_crypto_hashes/app.config.test +++ /dev/null @@ -1,6 +0,0 @@ -CONFIG_MODULE_PSA_CRYPTO=y - -CONFIG_MODULE_PSA_HASH=y -CONFIG_MODULE_PSA_HASH_SHA_256=y - -CONFIG_ZTIMER_USEC=y diff --git a/tests/sys/psa_crypto_mac/Makefile b/tests/sys/psa_crypto_mac/Makefile index ee2bd15508cc..126d573540d3 100644 --- a/tests/sys/psa_crypto_mac/Makefile +++ b/tests/sys/psa_crypto_mac/Makefile @@ -8,10 +8,8 @@ USEMODULE += psa_crypto USEMODULE += psa_mac USEMODULE += psa_mac_hmac_sha_256 -ifneq (1, $(TEST_KCONFIG)) +ifneq (1, $(SHOULD_RUN_KCONFIG)) CFLAGS += -DCONFIG_PSA_SINGLE_KEY_COUNT=1 endif -SHOULD_RUN_KCONFIG := - include $(RIOTBASE)/Makefile.include diff --git a/tests/sys/psa_crypto_mac/app.config.test b/tests/sys/psa_crypto_mac/app.config.test deleted file mode 100644 index 9e44cc14155f..000000000000 --- a/tests/sys/psa_crypto_mac/app.config.test +++ /dev/null @@ -1,8 +0,0 @@ -CONFIG_MODULE_PSA_CRYPTO=y - -CONFIG_MODULE_PSA_MAC=y -CONFIG_MODULE_PSA_MAC_HMAC_SHA_256=y - -CONFIG_PSA_SINGLE_KEY_COUNT=1 - -CONFIG_ZTIMER_USEC=y diff --git a/tests/sys/psa_crypto_se/Makefile b/tests/sys/psa_crypto_se/Makefile index 4e1286028a79..9186bbff1142 100644 --- a/tests/sys/psa_crypto_se/Makefile +++ b/tests/sys/psa_crypto_se/Makefile @@ -15,7 +15,7 @@ USEMODULE += psa_secure_element_ateccx08a_cipher_aes_128 USEMODULE += psa_secure_element_ateccx08a_hmac_sha256 USEMODULE += psa_secure_element_ateccx08a_ecc_p256 -ifneq (1, $(TEST_KCONFIG)) +ifneq (1, $(SHOULD_RUN_KCONFIG)) CFLAGS += -DCONFIG_PSA_PROTECTED_KEY_COUNT=3 CFLAGS += -DCONFIG_PSA_SINGLE_KEY_COUNT=1 endif @@ -25,6 +25,4 @@ CFLAGS += -DCUSTOM_ATCA_PARAMS INCLUDES += -I$(APPDIR) # Application specific (not needed by PSA) -SHOULD_RUN_KCONFIG := - include $(RIOTBASE)/Makefile.include diff --git a/tests/sys/psa_crypto_se/app.config.test b/tests/sys/psa_crypto_se/app.config.test deleted file mode 100644 index 4c21b198d750..000000000000 --- a/tests/sys/psa_crypto_se/app.config.test +++ /dev/null @@ -1,14 +0,0 @@ -CONFIG_MODULE_PSA_CRYPTO=y - -CONFIG_MODULE_PSA_HASH=y -CONFIG_MODULE_PSA_HASH_SHA_256=y -CONFIG_MODULE_PSA_SECURE_ELEMENT=y -CONFIG_MODULE_PSA_SECURE_ELEMENT_ATECCX08A=y -CONFIG_MODULE_PSA_SECURE_ELEMENT_ATECCX08A_CIPHER_AES_128=y -CONFIG_MODULE_PSA_SECURE_ELEMENT_ATECCX08A_HMAC_SHA256=y -CONFIG_MODULE_PSA_SECURE_ELEMENT_ATECCX08A_ECC_P256=y - -CONFIG_PSA_PROTECTED_KEY_COUNT=3 -CONFIG_PSA_SINGLE_KEY_COUNT=1 - -CONFIG_ZTIMER_USEC=y diff --git a/tests/sys/psa_crypto_se_cipher/Makefile b/tests/sys/psa_crypto_se_cipher/Makefile index 61e4949d5b31..f0eca74b1cef 100644 --- a/tests/sys/psa_crypto_se_cipher/Makefile +++ b/tests/sys/psa_crypto_se_cipher/Makefile @@ -11,8 +11,7 @@ USEMODULE += psa_secure_element USEMODULE += psa_secure_element_ateccx08a USEMODULE += psa_secure_element_ateccx08a_cipher_aes_128 - -ifneq (1, $(TEST_KCONFIG)) +ifneq (1, $(SHOULD_RUN_KCONFIG)) CFLAGS += -DCONFIG_PSA_PROTECTED_KEY_COUNT=1 endif @@ -21,6 +20,4 @@ CFLAGS += -DCUSTOM_ATCA_PARAMS INCLUDES += -I$(APPDIR) # Application specific (not needed by PSA) -SHOULD_RUN_KCONFIG := - include $(RIOTBASE)/Makefile.include diff --git a/tests/sys/psa_crypto_se_cipher/app.config.test b/tests/sys/psa_crypto_se_cipher/app.config.test deleted file mode 100644 index efff02995515..000000000000 --- a/tests/sys/psa_crypto_se_cipher/app.config.test +++ /dev/null @@ -1,9 +0,0 @@ -CONFIG_MODULE_PSA_CRYPTO=y - -CONFIG_MODULE_PSA_SECURE_ELEMENT=y -CONFIG_MODULE_PSA_SECURE_ELEMENT_ATECCX08A=y -CONFIG_MODULE_PSA_SECURE_ELEMENT_ATECCX08A_CIPHER_AES_128=y - -CONFIG_PSA_PROTECTED_KEY_COUNT=1 - -CONFIG_ZTIMER_USEC=y diff --git a/tests/sys/psa_crypto_se_ecdsa/Makefile b/tests/sys/psa_crypto_se_ecdsa/Makefile index d0f6cadc62a0..afba066b1de4 100644 --- a/tests/sys/psa_crypto_se_ecdsa/Makefile +++ b/tests/sys/psa_crypto_se_ecdsa/Makefile @@ -13,7 +13,7 @@ USEMODULE += psa_secure_element USEMODULE += psa_secure_element_ateccx08a USEMODULE += psa_secure_element_ateccx08a_ecc_p256 -ifneq (1, $(TEST_KCONFIG)) +ifneq (1, $(SHOULD_RUN_KCONFIG)) CFLAGS += -DCONFIG_PSA_SINGLE_KEY_COUNT=1 CFLAGS += -DCONFIG_PSA_PROTECTED_KEY_COUNT=1 endif @@ -23,6 +23,5 @@ CFLAGS += -DCUSTOM_ATCA_PARAMS INCLUDES += -I$(APPDIR) # Application specific (not needed by PSA) -SHOULD_RUN_KCONFIG := include $(RIOTBASE)/Makefile.include diff --git a/tests/sys/psa_crypto_se_ecdsa/app.config.test b/tests/sys/psa_crypto_se_ecdsa/app.config.test deleted file mode 100644 index 80906948c4af..000000000000 --- a/tests/sys/psa_crypto_se_ecdsa/app.config.test +++ /dev/null @@ -1,12 +0,0 @@ -CONFIG_MODULE_PSA_CRYPTO=y - -CONFIG_MODULE_PSA_HASH=y -CONFIG_MODULE_PSA_HASH_SHA_256=y -CONFIG_MODULE_PSA_SECURE_ELEMENT=y -CONFIG_MODULE_PSA_SECURE_ELEMENT_ATECCX08A=y -CONFIG_MODULE_PSA_SECURE_ELEMENT_ATECCX08A_ECC_P256=y - -CONFIG_PSA_SINGLE_KEY_COUNT=1 -CONFIG_PSA_PROTECTED_KEY_COUNT=1 - -CONFIG_ZTIMER_USEC=y diff --git a/tests/sys/psa_crypto_se_mac/Makefile b/tests/sys/psa_crypto_se_mac/Makefile index 5130e9acadd5..3783b8062f49 100644 --- a/tests/sys/psa_crypto_se_mac/Makefile +++ b/tests/sys/psa_crypto_se_mac/Makefile @@ -11,7 +11,7 @@ USEMODULE += psa_secure_element USEMODULE += psa_secure_element_ateccx08a USEMODULE += psa_secure_element_ateccx08a_hmac_sha256 -ifneq (1, $(TEST_KCONFIG)) +ifneq (1, $(SHOULD_RUN_KCONFIG)) CFLAGS += -DCONFIG_PSA_PROTECTED_KEY_COUNT=1 endif diff --git a/tests/sys/psa_crypto_se_mac/app.config.test b/tests/sys/psa_crypto_se_mac/app.config.test deleted file mode 100644 index 27a58c14462e..000000000000 --- a/tests/sys/psa_crypto_se_mac/app.config.test +++ /dev/null @@ -1,9 +0,0 @@ -CONFIG_MODULE_PSA_CRYPTO=y - -CONFIG_MODULE_PSA_SECURE_ELEMENT=y -CONFIG_MODULE_PSA_SECURE_ELEMENT_ATECCX08A=y -CONFIG_MODULE_PSA_SECURE_ELEMENT_ATECCX08A_HMAC_SHA256=y - -CONFIG_PSA_PROTECTED_KEY_COUNT=1 - -CONFIG_ZTIMER_USEC=y diff --git a/tests/sys/sema_inv/app.config.test b/tests/sys/sema_inv/app.config.test deleted file mode 100644 index 214cd33b4494..000000000000 --- a/tests/sys/sema_inv/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -CONFIG_MODULE_SEMA_INV=y -CONFIG_MODULE_ZTIMER=y -CONFIG_MODULE_ZTIMER_MSEC=y diff --git a/tests/sys/senml_cbor/app.config.test b/tests/sys/senml_cbor/app.config.test deleted file mode 100644 index ff0dae5786de..000000000000 --- a/tests/sys/senml_cbor/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -CONFIG_MODULE_SENML_CBOR=y -CONFIG_MODULE_FMT=y -CONFIG_MODULE_EMBUNIT=y diff --git a/tests/sys/senml_phydat/app.config.test b/tests/sys/senml_phydat/app.config.test deleted file mode 100644 index 16bdcfd387ed..000000000000 --- a/tests/sys/senml_phydat/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -CONFIG_MODULE_SENML_PHYDAT=y -CONFIG_MODULE_EMBUNIT=y -CONFIG_MODULE_PRINTF_FLOAT=y diff --git a/tests/sys/shell/Makefile b/tests/sys/shell/Makefile index 0c904de2de89..ec4ed07377dc 100644 --- a/tests/sys/shell/Makefile +++ b/tests/sys/shell/Makefile @@ -4,6 +4,7 @@ include ../Makefile.sys_common USEMODULE += app_metadata USEMODULE += shell_cmds_default USEMODULE += ps +USEMODULE += ztimer_msec # Use a terminal that does not introduce extra characters into the stream. RIOT_TERMINAL ?= socat @@ -13,6 +14,9 @@ APP_SHELL_FMT ?= NONE # microbit qemu failing currently TEST_ON_CI_BLACKLIST += microbit +# requires #19005 +TEST_ON_CI_BLACKLIST += native native64 + include $(RIOTBASE)/Makefile.include CFLAGS += '-DTHREAD_STACKSIZE_MAIN=(THREAD_STACKSIZE_SMALL+THREAD_EXTRA_STACKSIZE_PRINTF)' diff --git a/tests/sys/shell/Makefile.ci b/tests/sys/shell/Makefile.ci index 72db76ccb5cc..6dd70e79649f 100644 --- a/tests/sys/shell/Makefile.ci +++ b/tests/sys/shell/Makefile.ci @@ -1,3 +1,4 @@ BOARD_INSUFFICIENT_MEMORY := \ + atmega328p-xplained-mini \ atmega8 \ # diff --git a/tests/sys/shell/app.config.test b/tests/sys/shell/app.config.test deleted file mode 100644 index 86c432250665..000000000000 --- a/tests/sys/shell/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -CONFIG_MODULE_APP_METADATA=y -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_SHELL_CMDS_DEFAULT=y -CONFIG_MODULE_PS=y diff --git a/tests/sys/shell/main.c b/tests/sys/shell/main.c index bb665b0625b2..46fec268c9d9 100644 --- a/tests/sys/shell/main.c +++ b/tests/sys/shell/main.c @@ -20,14 +20,15 @@ #include #include +#include + +#include "thread.h" +#include "string_utils.h" +#include "ztimer.h" #include "architecture.h" #include "shell.h" -#if MODULE_STDIO_RTT -#include "xtimer.h" -#endif - /* define buffer to be used by the shell. Note: This is intentionally * smaller than 64 bytes, as the EDBG integrated UART bridge of the samr21-xpro * (and likely all other EDBG boards) drops chars when sending more than 64 @@ -100,12 +101,48 @@ static int print_empty(int argc, char **argv) return 0; } +static char _stack[THREAD_STACKSIZE_TINY]; +static struct { + uint16_t period_ms; + uint16_t reps; +} _periodic_ctx; + +static void *_func(void *arg) +{ + (void)arg; + + while (_periodic_ctx.reps--) { + ztimer_sleep(ZTIMER_MSEC, _periodic_ctx.period_ms); + puts("test"); + } + + return NULL; +} + +/* test to make sure that waiting for stdin does not block other threads */ +static int print_periodic(int argc, char **argv) +{ + if (argc > 1) { + _periodic_ctx.reps = atoi(argv[1]); + } else { + _periodic_ctx.reps = 5; + } + + _periodic_ctx.period_ms = 500; + + thread_create(_stack, sizeof(_stack), THREAD_PRIORITY_MAIN, THREAD_CREATE_STACKTEST, + _func, NULL, "periodic"); + + return 0; +} + static const shell_command_t shell_commands[] = { { "bufsize", "Get the shell's buffer size", print_shell_bufsize }, { "start_test", "starts a test", print_teststart }, { "end_test", "ends a test", print_testend }, { "echo", "prints the input command", print_echo }, { "empty", "print nothing on command", print_empty }, + { "periodic", "periodically print command", print_periodic }, { NULL, NULL, NULL } }; diff --git a/tests/sys/shell/tests/01-run.py b/tests/sys/shell/tests/01-run.py index fc9c081d0b3f..faa79a3859b7 100755 --- a/tests/sys/shell/tests/01-run.py +++ b/tests/sys/shell/tests/01-run.py @@ -19,6 +19,7 @@ 'end_test ends a test', 'echo prints the input command', 'empty print nothing on command', + 'periodic periodically print command', 'app_metadata Returns application metadata', 'pm interact with layered PM subsystem', 'ps Prints information about running threads.', @@ -205,6 +206,18 @@ def check_control_d(child): child.expect_exact(PROMPT) +def check_preempt(child): + child.expect(PROMPT) + child.sendline('periodic 5') + + child.expect_exact('test') + child.expect_exact('test') + child.expect_exact('test') + child.expect_exact('test') + child.expect_exact('test') + child.sendline('') + + def testfunc(child): # avoid sending an extra empty line on native. if BOARD in ['native', 'native64']: @@ -224,6 +237,8 @@ def testfunc(child): check_control_d(child) + check_preempt(child) + # loop other defined commands and expected output for cmd, expected in CMDS: diff --git a/tests/sys/shell_lock/Makefile b/tests/sys/shell_lock/Makefile index 29bebcdd80dc..a023a1a86013 100644 --- a/tests/sys/shell_lock/Makefile +++ b/tests/sys/shell_lock/Makefile @@ -7,9 +7,9 @@ USEMODULE += shell_cmds_default USEMODULE += shell_lock USEMODULE += shell_lock_auto_locking -ifneq (1,$(TEST_KCONFIG)) -CFLAGS += -DCONFIG_SHELL_LOCK_PASSWORD=\"password\" -CFLAGS += -DCONFIG_SHELL_LOCK_AUTO_LOCK_TIMEOUT_MS=7000 +ifneq (1, $(SHOULD_RUN_KCONFIG)) + CFLAGS += -DCONFIG_SHELL_LOCK_PASSWORD=\"password\" + CFLAGS += -DCONFIG_SHELL_LOCK_AUTO_LOCK_TIMEOUT_MS=7000 endif # test_utils_interactive_sync_shell assumes that the prompt is always '> ' which breaks diff --git a/tests/sys/shell_lock/app.config.test b/tests/sys/shell_lock/app.config.test deleted file mode 100644 index c11575af5a3a..000000000000 --- a/tests/sys/shell_lock/app.config.test +++ /dev/null @@ -1,6 +0,0 @@ -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_SHELL_CMDS_DEFAULT=y -CONFIG_MODULE_SHELL_LOCK=y -CONFIG_MODULE_SHELL_LOCK_AUTO_LOCKING=y -CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC_SHELL=n -CONFIG_SHELL_SHUTDOWN_ON_EXIT=n diff --git a/tests/sys/ssp/app.config.test b/tests/sys/ssp/app.config.test deleted file mode 100644 index 7a73919bdd34..000000000000 --- a/tests/sys/ssp/app.config.test +++ /dev/null @@ -1 +0,0 @@ -CONFIG_MODULE_SSP=y diff --git a/tests/sys/stdio_semihosting/app.config.test b/tests/sys/stdio_semihosting/app.config.test deleted file mode 100644 index 2b6ee44c8861..000000000000 --- a/tests/sys/stdio_semihosting/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -CONFIG_MODULE_STDIO_SEMIHOSTING=y -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_SHELL_CMDS_DEFAULT=y -CONFIG_MODULE_PS=y -CONFIG_FORCE_USB_STDIO=n diff --git a/tests/sys/struct_tm_utility/app.config.test b/tests/sys/struct_tm_utility/app.config.test deleted file mode 100644 index f7b3f7834e66..000000000000 --- a/tests/sys/struct_tm_utility/app.config.test +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_TIMEX=y diff --git a/tests/sys/suit_manifest/Makefile.ci b/tests/sys/suit_manifest/Makefile.ci index df09f36a0b98..4816c2bb2330 100644 --- a/tests/sys/suit_manifest/Makefile.ci +++ b/tests/sys/suit_manifest/Makefile.ci @@ -20,5 +20,4 @@ BOARD_INSUFFICIENT_MEMORY := \ stm32l0538-disco \ telosb \ weact-g030f6 \ - z1 \ # diff --git a/tests/sys/trace/app.config.test b/tests/sys/trace/app.config.test deleted file mode 100644 index 19114841f95b..000000000000 --- a/tests/sys/trace/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_TRACE=y diff --git a/tests/sys/trickle/app.config.test b/tests/sys/trickle/app.config.test deleted file mode 100644 index 6ef900d1d026..000000000000 --- a/tests/sys/trickle/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -CONFIG_MODULE_TRICKLE=y -CONFIG_MODULE_ZTIMER=y -CONFIG_MODULE_ZTIMER_MSEC=y diff --git a/tests/sys/usbus_board_reset/app.config.test b/tests/sys/usbus_board_reset/app.config.test deleted file mode 100644 index ffe94ad435dd..000000000000 --- a/tests/sys/usbus_board_reset/app.config.test +++ /dev/null @@ -1,12 +0,0 @@ -CONFIG_MODULE_APP_METADATA=y -CONFIG_MODULE_PS=y -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_SHELL_CMDS_DEFAULT=y -CONFIG_MODULE_USB_BOARD_RESET=y -CONFIG_KCONFIG_USB=y -CONFIG_MODULE_USBUS=y -CONFIG_MODULE_USBUS_CDC_ACM=y - -CONFIG_MODULE_AUTO_INIT_USBUS=n - -CONFIG_CUSTOM_USB_VID_PID=y diff --git a/tests/sys/usbus_msc/app.config.test b/tests/sys/usbus_msc/app.config.test deleted file mode 100644 index 42d1dfb4c580..000000000000 --- a/tests/sys/usbus_msc/app.config.test +++ /dev/null @@ -1,9 +0,0 @@ -CONFIG_MODULE_PS=y -CONFIG_MODULE_SHELL=y -CONFIG_KCONFIG_USB=y -CONFIG_MODULE_USBUS=y -CONFIG_MODULE_USBUS_MSC=y -CONFIG_MODULE_ZTIMER=y -CONFIG_MODULE_ZTIMER_MSEC=y - -CONFIG_CUSTOM_USB_VID_PID=y diff --git a/tests/sys/vfs_plus_stdio/app.config.test b/tests/sys/vfs_plus_stdio/app.config.test deleted file mode 100644 index 5a93753419ce..000000000000 --- a/tests/sys/vfs_plus_stdio/app.config.test +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_MODULE_FMT=y -CONFIG_MODULE_VFS=y diff --git a/tests/sys/xtimer_drift/app.config.test b/tests/sys/xtimer_drift/app.config.test deleted file mode 100644 index 76a9363d02a3..000000000000 --- a/tests/sys/xtimer_drift/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# 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_DIV=y diff --git a/tests/sys/xtimer_hang/app.config.test b/tests/sys/xtimer_hang/app.config.test deleted file mode 100644 index 7b68e9778bd0..000000000000 --- a/tests/sys/xtimer_hang/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# 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_CORE_MSG=n diff --git a/tests/sys/xtimer_longterm/app.config.test b/tests/sys/xtimer_longterm/app.config.test deleted file mode 100644 index 6833955646aa..000000000000 --- a/tests/sys/xtimer_longterm/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# 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 diff --git a/tests/sys/xtimer_msg/app.config.test b/tests/sys/xtimer_msg/app.config.test deleted file mode 100644 index 6833955646aa..000000000000 --- a/tests/sys/xtimer_msg/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# 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 diff --git a/tests/sys/xtimer_msg_receive_timeout/app.config.test b/tests/sys/xtimer_msg_receive_timeout/app.config.test deleted file mode 100644 index 6833955646aa..000000000000 --- a/tests/sys/xtimer_msg_receive_timeout/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# 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 diff --git a/tests/sys/xtimer_mutex_lock_timeout/app.config.test b/tests/sys/xtimer_mutex_lock_timeout/app.config.test deleted file mode 100644 index 3b139fb8c304..000000000000 --- a/tests/sys/xtimer_mutex_lock_timeout/app.config.test +++ /dev/null @@ -1,8 +0,0 @@ -# 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_SHELL=y - -# for testing -# CONFIG_MODULE_PS=y -# CONFIG_MODULE_SHELL_CMDS_DEFAULT=y diff --git a/tests/sys/xtimer_now32_overflow/app.config.test b/tests/sys/xtimer_now32_overflow/app.config.test deleted file mode 100644 index 9fc59457d0ba..000000000000 --- a/tests/sys/xtimer_now32_overflow/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# 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_XTIMER_NO_ZTIMER_DEFAULT=y -CONFIG_MODULE_AUTO_INIT_XTIMER=n diff --git a/tests/sys/xtimer_now64_continuity/app.config.test b/tests/sys/xtimer_now64_continuity/app.config.test deleted file mode 100644 index c0c51bf4c546..000000000000 --- a/tests/sys/xtimer_now64_continuity/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# 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_XTIMER_NO_ZTIMER_DEFAULT=y -CONFIG_MODULE_FMT=y diff --git a/tests/sys/xtimer_now_irq/app.config.test b/tests/sys/xtimer_now_irq/app.config.test deleted file mode 100644 index 6833955646aa..000000000000 --- a/tests/sys/xtimer_now_irq/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# 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 diff --git a/tests/sys/xtimer_overhead/app.config.test b/tests/sys/xtimer_overhead/app.config.test deleted file mode 100644 index 6833955646aa..000000000000 --- a/tests/sys/xtimer_overhead/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# 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 diff --git a/tests/sys/xtimer_periodic_wakeup/app.config.test b/tests/sys/xtimer_periodic_wakeup/app.config.test deleted file mode 100644 index 6833955646aa..000000000000 --- a/tests/sys/xtimer_periodic_wakeup/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# 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 diff --git a/tests/sys/xtimer_remove/app.config.test b/tests/sys/xtimer_remove/app.config.test deleted file mode 100644 index 6833955646aa..000000000000 --- a/tests/sys/xtimer_remove/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# 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 diff --git a/tests/sys/xtimer_reset/app.config.test b/tests/sys/xtimer_reset/app.config.test deleted file mode 100644 index 6833955646aa..000000000000 --- a/tests/sys/xtimer_reset/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# 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 diff --git a/tests/sys/xtimer_rmutex_lock_timeout/app.config.test b/tests/sys/xtimer_rmutex_lock_timeout/app.config.test deleted file mode 100644 index 4961b975e1a8..000000000000 --- a/tests/sys/xtimer_rmutex_lock_timeout/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# 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_SHELL=y diff --git a/tests/sys/xtimer_usleep/app.config.test b/tests/sys/xtimer_usleep/app.config.test deleted file mode 100644 index 6833955646aa..000000000000 --- a/tests/sys/xtimer_usleep/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# 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 diff --git a/tests/sys/xtimer_usleep_short/app.config.test b/tests/sys/xtimer_usleep_short/app.config.test deleted file mode 100644 index 6833955646aa..000000000000 --- a/tests/sys/xtimer_usleep_short/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# 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 diff --git a/tests/sys/ztimer64_msg/app.config.test b/tests/sys/ztimer64_msg/app.config.test deleted file mode 100644 index aba183dfcb15..000000000000 --- a/tests/sys/ztimer64_msg/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_ZTIMER64_USEC=y diff --git a/tests/sys/ztimer_msg/app.config.test b/tests/sys/ztimer_msg/app.config.test deleted file mode 100644 index 2fc4266478a8..000000000000 --- a/tests/sys/ztimer_msg/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_ZTIMER=y -CONFIG_ZTIMER_USEC=y diff --git a/tests/sys/ztimer_mutex_lock_timeout/app.config.test b/tests/sys/ztimer_mutex_lock_timeout/app.config.test deleted file mode 100644 index 2fc4266478a8..000000000000 --- a/tests/sys/ztimer_mutex_lock_timeout/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_ZTIMER=y -CONFIG_ZTIMER_USEC=y diff --git a/tests/sys/ztimer_overhead/app.config.test b/tests/sys/ztimer_overhead/app.config.test deleted file mode 100644 index a8fe62236a98..000000000000 --- a/tests/sys/ztimer_overhead/app.config.test +++ /dev/null @@ -1,6 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_ZTIMER=y -CONFIG_ZTIMER_USEC=y -CONFIG_MODULE_ZTIMER_OVERHEAD=y -CONFIG_MODULE_ZTIMER_AUTO_ADJUST=y diff --git a/tests/sys/ztimer_periodic/app.config.test b/tests/sys/ztimer_periodic/app.config.test deleted file mode 100644 index 063d9187d5b6..000000000000 --- a/tests/sys/ztimer_periodic/app.config.test +++ /dev/null @@ -1,7 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_ZTIMER=y -CONFIG_ZTIMER_USEC=y -CONFIG_MODULE_ZTIMER_MSEC=y - -CONFIG_MODULE_FMT=y diff --git a/tests/sys/ztimer_rmutex_lock_timeout/app.config.test b/tests/sys/ztimer_rmutex_lock_timeout/app.config.test deleted file mode 100644 index b35fac38a3f0..000000000000 --- a/tests/sys/ztimer_rmutex_lock_timeout/app.config.test +++ /dev/null @@ -1,5 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_ZTIMER=y -CONFIG_ZTIMER_USEC=y -CONFIG_MODULE_SHELL=y diff --git a/tests/sys/ztimer_underflow/Makefile b/tests/sys/ztimer_underflow/Makefile index c197e3ccd90c..fa549b5abe78 100644 --- a/tests/sys/ztimer_underflow/Makefile +++ b/tests/sys/ztimer_underflow/Makefile @@ -6,10 +6,6 @@ USEMODULE += ztimer USEMODULE += ztimer_usec ifeq ($(TEST_ZTIMER_CLOCK), ZTIMER_MSEC) USEMODULE += ztimer_msec - # the same for Kconfig - ifeq (1,$(TEST_KCONFIG)) - KCONFIG_ADD_CONFIG += $(APPDIR)/app.config.msec.test - endif endif ifeq ($(TEST_ZTIMER_CLOCK), ZTIMER_SEC) USEMODULE += ztimer_sec diff --git a/tests/sys/ztimer_underflow/app.config.msec.test b/tests/sys/ztimer_underflow/app.config.msec.test deleted file mode 100644 index 33be97d04f5f..000000000000 --- a/tests/sys/ztimer_underflow/app.config.msec.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_ZTIMER_MSEC=y -CONFIG_MODULE_ZTIMER_PERIPH_RTT=y diff --git a/tests/sys/ztimer_underflow/app.config.test b/tests/sys/ztimer_underflow/app.config.test deleted file mode 100644 index 2fc4266478a8..000000000000 --- a/tests/sys/ztimer_underflow/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_ZTIMER=y -CONFIG_ZTIMER_USEC=y diff --git a/tests/sys/ztimer_xsec/app.config.test b/tests/sys/ztimer_xsec/app.config.test deleted file mode 100644 index bf645cb12e47..000000000000 --- a/tests/sys/ztimer_xsec/app.config.test +++ /dev/null @@ -1,6 +0,0 @@ -# this file enables modules defined in Kconfig. Do not use this file for -# application configuration. This is only needed during migration. -CONFIG_MODULE_ZTIMER_PERIPH_TIMER=y -CONFIG_ZTIMER_USEC=y -CONFIG_MODULE_ZTIMER_MSEC=y -CONFIG_MODULE_ZTIMER_SEC=y diff --git a/tests/test_print_stack_usage.config b/tests/test_print_stack_usage.config deleted file mode 100644 index dac31232ed66..000000000000 --- a/tests/test_print_stack_usage.config +++ /dev/null @@ -1 +0,0 @@ -CONFIG_MODULE_TEST_UTILS_PRINT_STACK_USAGE=y diff --git a/tests/test_utils.config b/tests/test_utils.config deleted file mode 100644 index 001c82ce9732..000000000000 --- a/tests/test_utils.config +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y -CONFIG_MODULE_TEST_UTILS_PRINT_STACK_USAGE=y diff --git a/tests/turo/app.config.test b/tests/turo/app.config.test deleted file mode 100644 index 6fce29e733af..000000000000 --- a/tests/turo/app.config.test +++ /dev/null @@ -1,3 +0,0 @@ -CONFIG_MODULE_FMT=y -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_TEST_UTILS_RESULT_OUTPUT=y diff --git a/tests/turo_txt/app.config.test b/tests/turo_txt/app.config.test deleted file mode 100644 index d7cf937d21d3..000000000000 --- a/tests/turo_txt/app.config.test +++ /dev/null @@ -1,4 +0,0 @@ -CONFIG_MODULE_FMT=y -CONFIG_MODULE_SHELL=y -CONFIG_MODULE_TEST_UTILS_RESULT_OUTPUT=y -CONFIG_MODULE_TEST_UTILS_RESULT_OUTPUT_TXT=y