From 5895b0f2a06ac1a1578c3b0812b20832c3d69c29 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Mon, 27 Jun 2016 08:28:06 +0000 Subject: FPU settings for Cortex-M7, requires GCC 4.9 minimum. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9669 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testhal/STM32/STM32F7xx/GPT-ADC/Makefile | 7 ++++++- testhal/STM32/STM32F7xx/IRQ_STORM/Makefile | 7 ++++++- testhal/STM32/STM32F7xx/PWM-ICU/Makefile | 7 ++++++- testhal/STM32/STM32F7xx/SPI/Makefile | 7 ++++++- testhal/STM32/STM32F7xx/USB_CDC/Makefile | 7 ++++++- testhal/STM32/STM32F7xx/USB_RAW/Makefile | 7 ++++++- 6 files changed, 36 insertions(+), 6 deletions(-) (limited to 'testhal/STM32/STM32F7xx') diff --git a/testhal/STM32/STM32F7xx/GPT-ADC/Makefile b/testhal/STM32/STM32F7xx/GPT-ADC/Makefile index 1ec4ee842..50efac016 100644 --- a/testhal/STM32/STM32F7xx/GPT-ADC/Makefile +++ b/testhal/STM32/STM32F7xx/GPT-ADC/Makefile @@ -74,6 +74,11 @@ ifeq ($(USE_FPU),) USE_FPU = no endif +# FPU-related options. +ifeq ($(USE_FPU_OPT),) + USE_FPU_OPT = -mfloat-abi=$(USE_FPU) -mfpu=fpv5-sp-d16 -fsingle-precision-constant +endif + # # Architecture or project specific options ############################################################################## @@ -156,7 +161,7 @@ INCDIR = $(CHIBIOS)/os/license \ # Compiler settings # -MCU = cortex-m4 +MCU = cortex-m7 #TRGT = arm-elf- TRGT = arm-none-eabi- diff --git a/testhal/STM32/STM32F7xx/IRQ_STORM/Makefile b/testhal/STM32/STM32F7xx/IRQ_STORM/Makefile index 6fdb06896..cb7c733e9 100644 --- a/testhal/STM32/STM32F7xx/IRQ_STORM/Makefile +++ b/testhal/STM32/STM32F7xx/IRQ_STORM/Makefile @@ -74,6 +74,11 @@ ifeq ($(USE_FPU),) USE_FPU = no endif +# FPU-related options. +ifeq ($(USE_FPU_OPT),) + USE_FPU_OPT = -mfloat-abi=$(USE_FPU) -mfpu=fpv5-sp-d16 -fsingle-precision-constant +endif + # # Architecture or project specific options ############################################################################## @@ -161,7 +166,7 @@ INCDIR = $(CHIBIOS)/os/license \ # Compiler settings # -MCU = cortex-m4 +MCU = cortex-m7 #TRGT = arm-elf- TRGT = arm-none-eabi- diff --git a/testhal/STM32/STM32F7xx/PWM-ICU/Makefile b/testhal/STM32/STM32F7xx/PWM-ICU/Makefile index 1ec4ee842..50efac016 100644 --- a/testhal/STM32/STM32F7xx/PWM-ICU/Makefile +++ b/testhal/STM32/STM32F7xx/PWM-ICU/Makefile @@ -74,6 +74,11 @@ ifeq ($(USE_FPU),) USE_FPU = no endif +# FPU-related options. +ifeq ($(USE_FPU_OPT),) + USE_FPU_OPT = -mfloat-abi=$(USE_FPU) -mfpu=fpv5-sp-d16 -fsingle-precision-constant +endif + # # Architecture or project specific options ############################################################################## @@ -156,7 +161,7 @@ INCDIR = $(CHIBIOS)/os/license \ # Compiler settings # -MCU = cortex-m4 +MCU = cortex-m7 #TRGT = arm-elf- TRGT = arm-none-eabi- diff --git a/testhal/STM32/STM32F7xx/SPI/Makefile b/testhal/STM32/STM32F7xx/SPI/Makefile index 1ec4ee842..50efac016 100644 --- a/testhal/STM32/STM32F7xx/SPI/Makefile +++ b/testhal/STM32/STM32F7xx/SPI/Makefile @@ -74,6 +74,11 @@ ifeq ($(USE_FPU),) USE_FPU = no endif +# FPU-related options. +ifeq ($(USE_FPU_OPT),) + USE_FPU_OPT = -mfloat-abi=$(USE_FPU) -mfpu=fpv5-sp-d16 -fsingle-precision-constant +endif + # # Architecture or project specific options ############################################################################## @@ -156,7 +161,7 @@ INCDIR = $(CHIBIOS)/os/license \ # Compiler settings # -MCU = cortex-m4 +MCU = cortex-m7 #TRGT = arm-elf- TRGT = arm-none-eabi- diff --git a/testhal/STM32/STM32F7xx/USB_CDC/Makefile b/testhal/STM32/STM32F7xx/USB_CDC/Makefile index 926096a14..8a5a9a774 100644 --- a/testhal/STM32/STM32F7xx/USB_CDC/Makefile +++ b/testhal/STM32/STM32F7xx/USB_CDC/Makefile @@ -74,6 +74,11 @@ ifeq ($(USE_FPU),) USE_FPU = no endif +# FPU-related options. +ifeq ($(USE_FPU_OPT),) + USE_FPU_OPT = -mfloat-abi=$(USE_FPU) -mfpu=fpv5-sp-d16 -fsingle-precision-constant +endif + # # Architecture or project specific options ############################################################################## @@ -160,7 +165,7 @@ INCDIR = $(CHIBIOS)/os/license \ # Compiler settings # -MCU = cortex-m4 +MCU = cortex-m7 #TRGT = arm-elf- TRGT = arm-none-eabi- diff --git a/testhal/STM32/STM32F7xx/USB_RAW/Makefile b/testhal/STM32/STM32F7xx/USB_RAW/Makefile index 3cef56ba2..cf6257f33 100644 --- a/testhal/STM32/STM32F7xx/USB_RAW/Makefile +++ b/testhal/STM32/STM32F7xx/USB_RAW/Makefile @@ -74,6 +74,11 @@ ifeq ($(USE_FPU),) USE_FPU = no endif +# FPU-related options. +ifeq ($(USE_FPU_OPT),) + USE_FPU_OPT = -mfloat-abi=$(USE_FPU) -mfpu=fpv5-sp-d16 -fsingle-precision-constant +endif + # # Architecture or project specific options ############################################################################## @@ -155,7 +160,7 @@ INCDIR = $(CHIBIOS)/os/license \ # Compiler settings # -MCU = cortex-m4 +MCU = cortex-m7 #TRGT = arm-elf- TRGT = arm-none-eabi- -- cgit v1.2.3