From 2d53003ee23ad2d4694fed5c16e47c67e94d163a Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Mon, 6 Apr 2020 17:26:25 +0200 Subject: [PATCH] cpu/cortexm_common: Model cortexm_common modules This models cortexm_common and cortexm_common_periph modules. --- cpu/cortexm_common/Kconfig | 15 +++++++++++++++ cpu/cortexm_common/periph/Kconfig | 13 +++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 cpu/cortexm_common/periph/Kconfig diff --git a/cpu/cortexm_common/Kconfig b/cpu/cortexm_common/Kconfig index 47ddc0deda..cc7daca23b 100644 --- a/cpu/cortexm_common/Kconfig +++ b/cpu/cortexm_common/Kconfig @@ -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" diff --git a/cpu/cortexm_common/periph/Kconfig b/cpu/cortexm_common/periph/Kconfig new file mode 100644 index 0000000000..ff79084188 --- /dev/null +++ b/cpu/cortexm_common/periph/Kconfig @@ -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.