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

cpu/arm7_common: Add Kconfig symbols

HAS_ARCH_ARM features now is moved to Kconfig.features as it is being
used by multiple architectures.
This commit is contained in:
Leandro Lanzieri 2020-07-09 09:44:36 +02:00
parent a20d663086
commit c71c2b79a7
No known key found for this signature in database
GPG Key ID: 13559905E2EBEAA5
4 changed files with 41 additions and 5 deletions

33
cpu/arm7_common/Kconfig Normal file
View File

@ -0,0 +1,33 @@
# 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 CPU_ARCH_ARMV4T
bool
select HAS_ARCH_32BIT
select HAS_ARCH_ARM
select HAS_CPP
config CPU_CORE_ARM7TDMI_S
bool
select CPU_ARCH_ARMV4T
select HAS_ARCH_ARM7
select HAS_PERIPH_PM
select HAS_PUF_SRAM
select HAS_SSP
## Declaration of specific features
config HAS_ARCH_ARM7
bool
help
Indicates that the core is part of the ARM7 group of cores.
## Common CPU symbols
config CPU_ARCH
default "armv4t" if CPU_ARCH_ARMV4T
config CPU_CORE
default "arm7tdmi_s" if CPU_CORE_ARM7TDMI_S

View File

@ -1,3 +1,6 @@
CPU_ARCH = armv4t
CPU_CORE = arm7tdmi_s
FEATURES_PROVIDED += arch_32bit
FEATURES_PROVIDED += arch_arm
FEATURES_PROVIDED += arch_arm7

View File

@ -88,11 +88,6 @@ config HAS_CPU_CORE_CORTEXM
help
Indicates that the current CPU has an ARM Cortex-M core.
config HAS_ARCH_ARM
bool
help
Indicates that the current architecture is ARM.
config HAS_CORTEXM_FPU
bool
help

View File

@ -22,6 +22,11 @@ config HAS_ARCH_32BIT
help
Indicates that the CPU has a 32-bits architecture.
config HAS_ARCH_ARM
bool
help
Indicates that the current architecture is ARM.
config HAS_ARDUINO
bool
help