mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/cortexm_common: enable FPU on cortexm33
This commit is contained in:
parent
7b827f405c
commit
6f52b90e58
@ -90,6 +90,7 @@ config CPU_CORE_CORTEX_M33
|
||||
bool
|
||||
select CPU_ARCH_ARMV8M
|
||||
select CPU_CORE_CORTEX_M
|
||||
select HAS_CORTEXM_FPU
|
||||
#select HAS_RUST_TARGET
|
||||
|
||||
config CPU_CORE_CORTEX_M4
|
||||
|
@ -12,8 +12,8 @@ FEATURES_PROVIDED += puf_sram
|
||||
FEATURES_PROVIDED += picolibc
|
||||
FEATURES_PROVIDED += ssp
|
||||
|
||||
# cortex-m4f and cortex-m7 provide FPU support
|
||||
ifneq (,$(filter $(CPU_CORE),cortex-m4f cortex-m7))
|
||||
# cortex-m33, cortex-m4f and cortex-m7 provide FPU support
|
||||
ifneq (,$(filter $(CPU_CORE),cortex-m33 cortex-m4f cortex-m7))
|
||||
FEATURES_PROVIDED += cortexm_fpu
|
||||
endif
|
||||
|
||||
|
@ -63,7 +63,7 @@ CFLAGS += -DCPU_CORE_$(call uppercase_and_underscore,$(CPU_CORE))
|
||||
|
||||
# Add soft or hard FPU CFLAGS depending on the module
|
||||
ifneq (,$(filter cortexm_fpu,$(USEMODULE)))
|
||||
ifeq ($(CPU_CORE),cortex-m7)
|
||||
ifneq (,$(filter $(CPU_CORE),cortex-m33 cortex-m7))
|
||||
CFLAGS_FPU ?= -mfloat-abi=hard -mfpu=fpv5-sp-d16
|
||||
else
|
||||
CFLAGS_FPU ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16
|
||||
|
Loading…
Reference in New Issue
Block a user