2018-05-04 15:44:29 +02:00
|
|
|
FEATURES_PROVIDED += arch_32bit
|
|
|
|
FEATURES_PROVIDED += arch_arm
|
2020-06-10 13:30:56 +02:00
|
|
|
FEATURES_PROVIDED += cpu_core_cortexm
|
2017-11-06 10:35:30 +01:00
|
|
|
FEATURES_PROVIDED += periph_pm
|
2020-04-06 21:03:31 +02:00
|
|
|
FEATURES_PROVIDED += cortexm_svc
|
2017-10-28 17:46:57 +02:00
|
|
|
FEATURES_PROVIDED += cpp
|
2018-10-11 17:10:03 +02:00
|
|
|
FEATURES_PROVIDED += cpu_check_address
|
2020-01-22 15:26:19 +01:00
|
|
|
FEATURES_PROVIDED += ssp
|
2020-03-27 13:17:52 +01:00
|
|
|
|
|
|
|
# cortex-m4f and cortex-m7 provide FPU support
|
2020-06-10 13:11:32 +02:00
|
|
|
ifneq (,$(filter $(CPU_CORE),cortex-m4f cortex-m7))
|
2020-03-27 13:17:52 +01:00
|
|
|
FEATURES_PROVIDED += cortexm_fpu
|
|
|
|
endif
|
2020-06-10 13:11:32 +02:00
|
|
|
|
|
|
|
# Set CPU_ARCH depending on the CPU_CORE
|
|
|
|
ifeq ($(CPU_CORE),cortex-m0)
|
|
|
|
CPU_ARCH := armv6m
|
|
|
|
else ifeq ($(CPU_CORE),cortex-m0plus)
|
|
|
|
CPU_ARCH := armv6m
|
|
|
|
else ifeq ($(CPU_CORE),cortex-m3)
|
|
|
|
CPU_ARCH := armv7m
|
|
|
|
else ifeq ($(CPU_CORE),cortex-m4)
|
|
|
|
CPU_ARCH := armv7m
|
|
|
|
else ifeq ($(CPU_CORE),cortex-m4f)
|
|
|
|
CPU_ARCH := armv7m
|
|
|
|
else ifeq ($(CPU_CORE),cortex-m7)
|
|
|
|
CPU_ARCH := armv7m
|
|
|
|
else ifeq ($(CPU_CORE),cortex-m23)
|
|
|
|
CPU_ARCH := armv8m
|
|
|
|
else
|
|
|
|
$(error Unkwnown cortexm core: $(CPU_CORE))
|
|
|
|
endif
|