summaryrefslogtreecommitdiff
path: root/nuttx/configs/stm32f4discovery/ostest
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-02-23 21:29:42 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-02-23 21:29:42 +0000
commit6537ccc38c1dbb7261b037bf3919bbe6e6c89bf7 (patch)
treefeeb06bdb58e93a0722363f90b2b7dda8f86be4e /nuttx/configs/stm32f4discovery/ostest
parentea61dba2159dde7b53fda2bcabdd172a081687ef (diff)
downloadpx4-nuttx-6537ccc38c1dbb7261b037bf3919bbe6e6c89bf7.tar.gz
px4-nuttx-6537ccc38c1dbb7261b037bf3919bbe6e6c89bf7.tar.bz2
px4-nuttx-6537ccc38c1dbb7261b037bf3919bbe6e6c89bf7.zip
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
Diffstat (limited to 'nuttx/configs/stm32f4discovery/ostest')
-rw-r--r--nuttx/configs/stm32f4discovery/ostest/Make.defs4
1 files changed, 4 insertions, 0 deletions
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-