From 6537ccc38c1dbb7261b037bf3919bbe6e6c89bf7 Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 23 Feb 2012 21:29:42 +0000 Subject: Enable STM32 F4 hardware floating point with the Atollic toolchain git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4418 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/configs/stm32f4discovery/ostest/Make.defs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nuttx/configs/stm32f4discovery/ostest') diff --git a/nuttx/configs/stm32f4discovery/ostest/Make.defs b/nuttx/configs/stm32f4discovery/ostest/Make.defs index ea129c142..a59a108bc 100644 --- a/nuttx/configs/stm32f4discovery/ostest/Make.defs +++ b/nuttx/configs/stm32f4discovery/ostest/Make.defs @@ -56,8 +56,12 @@ ifeq ($(CONFIG_STM32_ATOLLIC),y) CROSSDEV = arm-atollic-eabi- ARCROSSDEV = WINTOOL = y +ifeq ($(CONFIG_ARCH_FPU),y) + ARCHCPUFLAGS = -mcpu=cortex-m4 -mthumb -march=armv7e-m -mfpu=fpv4-sp-d16 -mfloat-abi=hard +else ARCHCPUFLAGS = -mcpu=cortex-m3 -mthumb -mfloat-abi=soft endif +endif ifeq ($(CONFIG_STM32_DEVKITARM),y) # devkitARM under Windows CROSSDEV = arm-eabi- -- cgit v1.2.3