1
0
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:
Alexandre Abadie 2022-05-05 21:14:53 +02:00
parent 7b827f405c
commit 6f52b90e58
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
3 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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