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:
parent
8b74702c7e
commit
59dee592cd
@ -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
|
||||
|
||||
|
7
tests/periph_adc/app.config.test
Normal file
7
tests/periph_adc/app.config.test
Normal 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
|
12
tests/periph_backup_ram/Kconfig
Normal file
12
tests/periph_backup_ram/Kconfig
Normal 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
|
@ -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
|
||||
|
5
tests/periph_backup_ram/app.config.test
Normal file
5
tests/periph_backup_ram/app.config.test
Normal 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
|
4
tests/periph_cpuid/app.config.test
Normal file
4
tests/periph_cpuid/app.config.test
Normal 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
|
4
tests/periph_dac/app.config.test
Normal file
4
tests/periph_dac/app.config.test
Normal 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
|
4
tests/periph_dma/app.config.test
Normal file
4
tests/periph_dma/app.config.test
Normal 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
|
6
tests/periph_eeprom/app.config.test
Normal file
6
tests/periph_eeprom/app.config.test
Normal 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
|
13
tests/periph_flashpage/Kconfig
Normal file
13
tests/periph_flashpage/Kconfig
Normal 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
|
@ -7,4 +7,7 @@ FEATURES_OPTIONAL += periph_flashpage_rwee
|
||||
|
||||
USEMODULE += shell
|
||||
|
||||
# avoid running Kconfig by default
|
||||
SHOULD_RUN_KCONFIG ?=
|
||||
|
||||
include $(RIOTBASE)/Makefile.include
|
||||
|
5
tests/periph_flashpage/app.config.test
Normal file
5
tests/periph_flashpage/app.config.test
Normal 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
13
tests/periph_gpio/Kconfig
Normal 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
|
@ -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)
|
||||
|
9
tests/periph_gpio/app.config.test
Normal file
9
tests/periph_gpio/app.config.test
Normal 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
|
6
tests/periph_gpio_arduino/app.config.test
Normal file
6
tests/periph_gpio_arduino/app.config.test
Normal 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
|
5
tests/periph_hwrng/app.config.test
Normal file
5
tests/periph_hwrng/app.config.test
Normal 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
12
tests/periph_i2c/Kconfig
Normal 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
|
@ -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
|
||||
|
5
tests/periph_i2c/app.config.test
Normal file
5
tests/periph_i2c/app.config.test
Normal 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
14
tests/periph_pm/Kconfig
Normal 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
|
@ -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
|
||||
|
4
tests/periph_pm/app.config.test
Normal file
4
tests/periph_pm/app.config.test
Normal 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
|
5
tests/periph_pwm/app.config.test
Normal file
5
tests/periph_pwm/app.config.test
Normal 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
|
4
tests/periph_qdec/app.config.test
Normal file
4
tests/periph_qdec/app.config.test
Normal 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
|
6
tests/periph_rtc/app.config.test
Normal file
6
tests/periph_rtc/app.config.test
Normal 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
|
5
tests/periph_rtt/app.config.test
Normal file
5
tests/periph_rtt/app.config.test
Normal 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
|
6
tests/periph_rtt_min/app.config.test
Normal file
6
tests/periph_rtt_min/app.config.test
Normal 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
12
tests/periph_spi/Kconfig
Normal 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
|
@ -9,4 +9,7 @@ USEMODULE += shell
|
||||
USEMODULE += shell_commands
|
||||
USEMODULE += schedstatistics
|
||||
|
||||
# avoid running Kconfig by default
|
||||
SHOULD_RUN_KCONFIG ?=
|
||||
|
||||
include $(RIOTBASE)/Makefile.include
|
||||
|
8
tests/periph_spi/app.config.test
Normal file
8
tests/periph_spi/app.config.test
Normal 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
|
12
tests/periph_spi_dma/Kconfig
Normal file
12
tests/periph_spi_dma/Kconfig
Normal 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
|
9
tests/periph_spi_dma/app.config.test
Normal file
9
tests/periph_spi_dma/app.config.test
Normal 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
|
4
tests/periph_timer/app.config.test
Normal file
4
tests/periph_timer/app.config.test
Normal 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
|
6
tests/periph_timer_periodic/app.config.test
Normal file
6
tests/periph_timer_periodic/app.config.test
Normal 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
|
5
tests/periph_timer_short_relative_set/app.config.test
Normal file
5
tests/periph_timer_short_relative_set/app.config.test
Normal 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
13
tests/periph_uart/Kconfig
Normal 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
|
@ -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
|
||||
|
5
tests/periph_uart/app.config.test
Normal file
5
tests/periph_uart/app.config.test
Normal 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
|
5
tests/periph_uart_mode/app.config.test
Normal file
5
tests/periph_uart_mode/app.config.test
Normal 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
|
6
tests/periph_uart_nonblocking/app.config.test
Normal file
6
tests/periph_uart_nonblocking/app.config.test
Normal 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
|
6
tests/periph_wdt/app.config.test
Normal file
6
tests/periph_wdt/app.config.test
Normal 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
|
Loading…
Reference in New Issue
Block a user