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:
parent
b8e2e3ce66
commit
a37f59b109
@ -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"
|
||||
|
@ -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
|
||||
|
2
cpu/atxmega/atxmega.config
Normal file
2
cpu/atxmega/atxmega.config
Normal file
@ -0,0 +1,2 @@
|
||||
# All ATxmega based CPUs provide PM
|
||||
CONFIG_MODULE_PM_LAYERED=y
|
20
cpu/atxmega/ebi/Kconfig
Normal file
20
cpu/atxmega/ebi/Kconfig
Normal 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.
|
22
cpu/atxmega/periph/Kconfig
Normal file
22
cpu/atxmega/periph/Kconfig
Normal 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.
|
Loading…
Reference in New Issue
Block a user