1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tests/periph_*: add Kconfig configuration files

This commit is contained in:
Leandro Lanzieri 2020-09-24 15:44:52 +02:00
parent 8b74702c7e
commit 59dee592cd
No known key found for this signature in database
GPG Key ID: 13559905E2EBEAA5
42 changed files with 279 additions and 0 deletions

View File

@ -54,7 +54,15 @@ KCONFIG_OUT_DEP = $(KCONFIG_OUT_CONFIG).d
# KCONFIG_ADD_CONFIG holds a list of .config files that are merged for the
# initial configuration. This allows to split configurations in common files
# and share them among boards or cpus.
# This file will contain application default configurations used for Kconfig Test
MERGE_SOURCES += $(KCONFIG_ADD_CONFIG)
# Add configurations that only work when running the Kconfig test so far,
# because they activate modules.
ifeq (1,$(TEST_KCONFIG))
MERGE_SOURCES += $(wildcard $(APPDIR)/app.config.test)
endif
MERGE_SOURCES += $(wildcard $(KCONFIG_APP_CONFIG))
MERGE_SOURCES += $(wildcard $(KCONFIG_USER_CONFIG))
@ -80,6 +88,11 @@ SHOULD_RUN_KCONFIG ?= $(or $(wildcard $(APPDIR)/*.config), \
$(if $(CLEAN),,$(wildcard $(KCONFIG_OUT_CONFIG))), \
$(filter menuconfig, $(MAKECMDGOALS)))
# When testing Kconfig we should always run it
ifeq (1,$(TEST_KCONFIG))
SHOULD_RUN_KCONFIG := 1
endif
# export variable to make it visible in other Makefiles
export SHOULD_RUN_KCONFIG

View File

@ -0,0 +1,7 @@
# 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_XTIMER=y

View File

@ -0,0 +1,12 @@
# Copyright (c) 2020 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
config APPLICATION
bool
default y
depends on HAS_BACKUP_RAM
depends on TEST_KCONFIG

View File

@ -10,4 +10,7 @@ DISABLE_MODULE += test_utils_interactive_sync
CFLAGS += -DLOG_LEVEL=LOG_WARNING
# avoid running Kconfig by default
SHOULD_RUN_KCONFIG ?=
include $(RIOTBASE)/Makefile.include

View File

@ -0,0 +1,5 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_PM_LAYERED=y
CONFIG_MODULE_PERIPH_RTC=y
CONFIG_MODULE_XTIMER=y

View File

@ -0,0 +1,4 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_PERIPH_CPUID=y
CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y

View File

@ -0,0 +1,4 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_PERIPH_DAC=y
CONFIG_MODULE_XTIMER=y

View File

@ -0,0 +1,4 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_PERIPH_DMA=y
CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y

View File

@ -0,0 +1,6 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y
CONFIG_MODULE_PERIPH_EEPROM=y
CONFIG_MODULE_SHELL=y
CONFIG_MODULE_SHELL_COMMANDS=y # provides reboot command

View File

@ -0,0 +1,13 @@
# Copyright (c) 2020 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
config APPLICATION
bool
default y
imply MODULE_PERIPH_FLASHPAGE_RAW
imply MODULE_PERIPH_FLASHPAGE_RWEE
depends on TEST_KCONFIG

View File

@ -7,4 +7,7 @@ FEATURES_OPTIONAL += periph_flashpage_rwee
USEMODULE += shell
# avoid running Kconfig by default
SHOULD_RUN_KCONFIG ?=
include $(RIOTBASE)/Makefile.include

View File

@ -0,0 +1,5 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y
CONFIG_MODULE_PERIPH_FLASHPAGE=y
CONFIG_MODULE_SHELL=y

13
tests/periph_gpio/Kconfig Normal file
View File

@ -0,0 +1,13 @@
# Copyright (c) 2020 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
config APPLICATION
bool
default y
imply MODULE_PERIPH_GPIO_IRQ
imply MODULE_PERIPH_GPIO_FAST_READ
depends on TEST_KCONFIG

View File

@ -28,6 +28,9 @@ else
PORT_UNDER_TEST ?= 0
endif
# avoid running Kconfig by default
SHOULD_RUN_KCONFIG ?=
include $(RIOTBASE)/Makefile.include
$(call target-export-variables,test,PORT_UNDER_TEST)

View File

@ -0,0 +1,9 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y
CONFIG_MODULE_PERIPH_GPIO=y
CONFIG_MODULE_SHELL=y
CONFIG_MODULE_SHELL_COMMANDS=y
CONFIG_MODULE_BENCHMARK=y
CONFIG_MODULE_XTIMER=y

View File

@ -0,0 +1,6 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_PERIPH_GPIO=y
CONFIG_MODULE_SHELL=y
CONFIG_MODULE_ARDUINO=y
CONFIG_MODULE_XTIMER=y

View File

@ -0,0 +1,5 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y
CONFIG_MODULE_PERIPH_HWRNG=y
CONFIG_MODULE_XTIMER=y

12
tests/periph_i2c/Kconfig Normal file
View File

@ -0,0 +1,12 @@
# Copyright (c) 2020 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
config APPLICATION
bool
default y
imply MODULE_PERIPH_I2C_RECONFIGURE
depends on TEST_KCONFIG

View File

@ -7,4 +7,7 @@ FEATURES_OPTIONAL = periph_i2c_reconfigure
USEMODULE += shell
USEMODULE += xtimer
# avoid running Kconfig by default
SHOULD_RUN_KCONFIG ?=
include $(RIOTBASE)/Makefile.include

View File

@ -0,0 +1,5 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_PERIPH_I2C=y
CONFIG_MODULE_SHELL=y
CONFIG_MODULE_XTIMER=y

14
tests/periph_pm/Kconfig Normal file
View File

@ -0,0 +1,14 @@
# Copyright (c) 2020 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
config APPLICATION
bool
default y
imply MODULE_PERIPH_RTC
imply MODULE_PERIPH_GPIO
imply MODULE_PERIPH_GPIO_IRQ
depends on TEST_KCONFIG

View File

@ -7,4 +7,7 @@ FEATURES_OPTIONAL += periph_gpio_irq
USEMODULE += shell
USEMODULE += shell_commands
# avoid running Kconfig by default
SHOULD_RUN_KCONFIG ?=
include $(RIOTBASE)/Makefile.include

View File

@ -0,0 +1,4 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_SHELL=y
CONFIG_MODULE_SHELL_COMMANDS=y

View File

@ -0,0 +1,5 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_PERIPH_PWM=y
CONFIG_MODULE_XTIMER=y
CONFIG_MODULE_SHELL=y

View File

@ -0,0 +1,4 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_PERIPH_QDEC=y
CONFIG_MODULE_XTIMER=y

View File

@ -0,0 +1,6 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y
CONFIG_MODULE_PERIPH_RTC=y
CONFIG_MODULE_PERIPH_INIT_RTC=n
CONFIG_MODULE_XTIMER=y

View File

@ -0,0 +1,5 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y
CONFIG_MODULE_PERIPH_RTT=y
CONFIG_MODULE_PERIPH_INIT_RTT=n

View File

@ -0,0 +1,6 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y
CONFIG_MODULE_PERIPH_RTT=y
CONFIG_MODULE_PERIPH_INIT_RTT=n
CONFIG_MODULE_XTIMER=y

12
tests/periph_spi/Kconfig Normal file
View File

@ -0,0 +1,12 @@
# Copyright (c) 2020 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
config APPLICATION
bool
default y
imply MODULE_PERIPH_SPI_RECONFIGURE
depends on TEST_KCONFIG

View File

@ -9,4 +9,7 @@ USEMODULE += shell
USEMODULE += shell_commands
USEMODULE += schedstatistics
# avoid running Kconfig by default
SHOULD_RUN_KCONFIG ?=
include $(RIOTBASE)/Makefile.include

View File

@ -0,0 +1,8 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_PERIPH_SPI=y
CONFIG_MODULE_SHELL=y
CONFIG_MODULE_SHELL_COMMANDS=y
CONFIG_MODULE_SCHEDSTATISTICS=y
CONFIG_MODULE_XTIMER=y

View File

@ -0,0 +1,12 @@
# Copyright (c) 2020 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
config APPLICATION
bool
default y
imply MODULE_PERIPH_SPI_RECONFIGURE
depends on TEST_KCONFIG

View File

@ -0,0 +1,9 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_PERIPH_DMA=y
CONFIG_MODULE_PERIPH_SPI=y
CONFIG_MODULE_SHELL=y
CONFIG_MODULE_SHELL_COMMANDS=y
CONFIG_MODULE_SCHEDSTATISTICS=y
CONFIG_MODULE_XTIMER=y

View File

@ -0,0 +1,4 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y
CONFIG_MODULE_PERIPH_TIMER=y

View File

@ -0,0 +1,6 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y
CONFIG_MODULE_PERIPH_TIMER=y
CONFIG_MODULE_PERIPH_TIMER_PERIODIC=y
CONFIG_MODULE_FMT=y

View File

@ -0,0 +1,5 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y
CONFIG_MODULE_PERIPH_TIMER=y
CONFIG_MODULE_CORE_THREAD_FLAGS=y

13
tests/periph_uart/Kconfig Normal file
View File

@ -0,0 +1,13 @@
# Copyright (c) 2020 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
config APPLICATION
bool
default y
imply MODULE_PERIPH_UART_MODECFG
imply MODULE_PERIPH_LPUART
depends on TEST_KCONFIG

View File

@ -7,4 +7,7 @@ FEATURES_OPTIONAL += periph_uart_modecfg
USEMODULE += shell
USEMODULE += xtimer
# avoid running Kconfig by default
SHOULD_RUN_KCONFIG ?=
include $(RIOTBASE)/Makefile.include

View File

@ -0,0 +1,5 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_PERIPH_UART=y
CONFIG_MODULE_SHELL=y
CONFIG_MODULE_XTIMER=y

View File

@ -0,0 +1,5 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_PERIPH_UART=y
CONFIG_MODULE_PERIPH_UART_MODECFG=y
CONFIG_MODULE_XTIMER=y

View File

@ -0,0 +1,6 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y
CONFIG_MODULE_PERIPH_UART=y
CONFIG_MODULE_PERIPH_UART_NONBLOCKING=y
CONFIG_MODULE_XTIMER=y

View File

@ -0,0 +1,6 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_MODULE_TEST_UTILS_INTERACTIVE_SYNC=y
CONFIG_MODULE_PERIPH_WDT=y
CONFIG_MODULE_XTIMER=y
CONFIG_MODULE_SHELL=y