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:
parent
9bfa652f9e
commit
421bc95cc6
@ -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"
|
||||
|
@ -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
|
||||
|
1
cpu/kinetis/kinetis.config
Normal file
1
cpu/kinetis/kinetis.config
Normal file
@ -0,0 +1 @@
|
||||
CONFIG_MODULE_PM_LAYERED=y
|
33
cpu/kinetis/periph/Kconfig
Normal file
33
cpu/kinetis/periph/Kconfig
Normal 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
|
Loading…
Reference in New Issue
Block a user