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

cpu/atxmega: model Kconfig

This commit is contained in:
Leandro Lanzieri 2021-09-30 13:36:51 +02:00
parent b8e2e3ce66
commit a37f59b109
No known key found for this signature in database
GPG Key ID: F4E9A721761C7593
5 changed files with 52 additions and 5 deletions

View File

@ -77,14 +77,11 @@ source "$(RIOTCPU)/atxmega/Kconfig.XMEGAE"
config HAS_CPU_ATXMEGA
bool
config HAS_ATXMEGA_EBI
bool
help
Indicates that the External Bus Interface is present.
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"

View File

@ -13,3 +13,9 @@ FEATURES_PROVIDED += periph_gpio periph_gpio_irq
FEATURES_PROVIDED += periph_nvm
FEATURES_PROVIDED += periph_pm
FEATURES_PROVIDED += periph_timer periph_timer_periodic
# Add atxmega configurations. This configuration enables modules that are only available when
# using Kconfig module modelling
ifeq (1, $(TEST_KCONFIG))
KCONFIG_ADD_CONFIG += $(RIOTCPU)/atxmega/atxmega.config
endif

View File

@ -0,0 +1,2 @@
# All ATxmega based CPUs provide PM
CONFIG_MODULE_PM_LAYERED=y

20
cpu/atxmega/ebi/Kconfig Normal file
View File

@ -0,0 +1,20 @@
# Copyright (c) 2021 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
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.

View File

@ -0,0 +1,22 @@
# 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_CPUID
help
Internal ATXmega Non Volatile Memory (NVM) driver.