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

cpu/kinetis: model Kconfig

This commit is contained in:
Leandro Lanzieri 2021-11-19 09:42:44 +01:00
parent 9bfa652f9e
commit 421bc95cc6
No known key found for this signature in database
GPG Key ID: F4E9A721761C7593
4 changed files with 51 additions and 0 deletions

View File

@ -12,6 +12,15 @@ config CPU_COMMON_KINETIS
select HAS_PERIPH_GPIO_IRQ
select HAS_PERIPH_PM
# 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
@ -162,3 +171,5 @@ config CPU
default "kinetis" if CPU_COMMON_KINETIS
source "$(RIOTCPU)/cortexm_common/Kconfig"
rsource "periph/Kconfig"

View File

@ -33,3 +33,9 @@ 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_ADD_CONFIG += $(RIOTCPU)/kinetis/kinetis.config
endif

View File

@ -0,0 +1 @@
CONFIG_MODULE_PM_LAYERED=y

View File

@ -0,0 +1,33 @@
# 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