cpu/cortexm_common: Model cortexm_common modules

This models cortexm_common and cortexm_common_periph modules.
This commit is contained in:
Leandro Lanzieri 2020-04-06 17:26:25 +02:00
parent 4ad2180f81
commit 2d53003ee2
No known key found for this signature in database
GPG Key ID: 13559905E2EBEAA5
2 changed files with 28 additions and 0 deletions

View File

@ -4,6 +4,13 @@
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
config MOD_CORTEXM_COMMON
bool
default y if CPU_CORE_CORTEX_M
depends on TEST_KCONFIG
help
Common code for Cortex-M cores.
config CPU_ARCH_ARMV6M
bool
select HAS_ARCH_ARM
@ -103,3 +110,11 @@ config HAS_CORTEXM_SVC
bool
help
Indicates that ARM Cortex-M Supervisor Calls are available.
config MOD_CORTEXM_FPU
bool "Cortex-M Floating Point Unit (FPU) support"
default y
depends on HAS_CORTEXM_FPU
depends on TEST_KCONFIG
rsource "periph/Kconfig"

View 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 MOD_CORTEXM_COMMON_PERIPH
bool
default y if CPU_CORE_CORTEX_M
depends on TEST_KCONFIG
help
Common code for Cortex-M core peripherals.