From 2ffd7b426142018bda78fd9e8ec884f627fc640e Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Mon, 1 Feb 2021 00:06:01 +0100 Subject: [PATCH] cpu/kinetis: enable floating point support I think this CPU was added before RIOT had support for the FPU on Cortex-M4F, this should now have been long fixed. Advertise the FPU on these CPUs. --- cpu/kinetis/Kconfig | 6 ++---- cpu/kinetis/kinetis-info.mk | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/cpu/kinetis/Kconfig b/cpu/kinetis/Kconfig index b42e2b16e8..de64add3ed 100644 --- a/cpu/kinetis/Kconfig +++ b/cpu/kinetis/Kconfig @@ -44,8 +44,7 @@ config CPU_MODEL_MK20DX256VLH7 config CPU_MODEL_MK22FN512VLH12 bool -# This is actually M4F; TODO: Add floating point support - select CPU_CORE_CORTEX_M4 + select CPU_CORE_CORTEX_M4F select CPU_FAM_K select HAS_PERIPH_HWRNG @@ -77,8 +76,7 @@ config CPU_MODEL_MK60DN512VLL10 config CPU_MODEL_MK64FN1M0VLL12 bool -# This is actually M4F; TODO: Add floating point support - select CPU_CORE_CORTEX_M4 + select CPU_CORE_CORTEX_M4F select CPU_FAM_K select HAS_PERIPH_HWRNG diff --git a/cpu/kinetis/kinetis-info.mk b/cpu/kinetis/kinetis-info.mk index a424fa55e9..4403c9e1d9 100644 --- a/cpu/kinetis/kinetis-info.mk +++ b/cpu/kinetis/kinetis-info.mk @@ -37,8 +37,7 @@ else ifeq ($(KINETIS_CORE), D) CPU_CORE = cortex-m4 else ifeq ($(KINETIS_CORE), F) # Cortex-M4F or Cortex-M7 - # TODO: Add floating point support - CPU_CORE = cortex-m4 + CPU_CORE = cortex-m4f endif # For the rest of the build system we expose the series as family