-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cpu/cortexm_common: Add Kconfig symbols
This declares the architecture and core specific Kconfig symbols and the features provided by it are selected.
- Loading branch information
1 parent
a6fe69b
commit c19e618
Showing
1 changed file
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# 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_ARM7 | ||
bool | ||
|
||
config CPU_ARCH | ||
default "armv7_m" if CPU_ARCH_ARM7 | ||
|
||
config CPU_CORE_CORTEX_M | ||
bool | ||
select CPU_ARCH_ARM7 | ||
select HAS_ARCH_32BIT | ||
select HAS_ARCH_ARM | ||
select HAS_ARCH_CORTEXM | ||
select HAS_PERIPH_PM | ||
select HAS_CPP | ||
select HAS_CPU_CHECK_ADDRESS | ||
select HAS_SSP | ||
|
||
## Common CPU symbols | ||
config CPU_CORE | ||
default "cortex-m0" if CPU_CORE_CORTEX_M0 | ||
default "cortex-m0plus" if CPU_CORE_CORTEX_M0PLUS | ||
default "cortex-m23" if CPU_CORE_CORTEX_M23 | ||
default "cortex-m3" if CPU_CORE_CORTEX_M3 | ||
default "cortex-m4" if CPU_CORE_CORTEX_M4 | ||
default "cortex-m4f" if CPU_CORE_CORTEX_M4F | ||
default "cortex-m7" if CPU_CORE_CORTEX_M7 | ||
|
||
config CPU_CORE_CORTEX_M0 | ||
bool | ||
select CPU_CORE_CORTEX_M | ||
|
||
config CPU_CORE_CORTEX_M0PLUS | ||
bool | ||
select CPU_CORE_CORTEX_M | ||
|
||
config CPU_CORE_CORTEX_M23 | ||
bool | ||
select CPU_CORE_CORTEX_M | ||
|
||
config CPU_CORE_CORTEX_M3 | ||
bool | ||
select CPU_CORE_CORTEX_M | ||
|
||
config CPU_CORE_CORTEX_M4 | ||
bool | ||
select CPU_CORE_CORTEX_M | ||
|
||
config CPU_CORE_CORTEX_M4F | ||
bool | ||
select CPU_CORE_CORTEX_M | ||
|
||
config CPU_CORE_CORTEX_M7 | ||
bool | ||
select CPU_CORE_CORTEX_M | ||
|
||
## Definition of specific features | ||
config HAS_ARCH_CORTEXM | ||
bool | ||
|
||
config HAS_ARCH_ARM | ||
bool |