More STM32F429 Discovery FPU-related changes from David Alessio

This commit is contained in:
Gregory Nutt 2014-02-18 12:07:17 -06:00
parent 0b0340598e
commit 06e7e5dfa1
4 changed files with 15 additions and 4 deletions

View File

@ -6588,4 +6588,7 @@
(2014-2-16).
* sched/task_terminate.c: Always returns an error because the
return value was not being set correctly. From Gosha (2014-2-18).
* stm32f429i-disco/ostest-fpu: OS test for FPU-enabled system from
David Alessio (2014-2-18).
* Other misc changes to support FPU on STM32F429 Discovery from
David Alession (2014-2-18)

View File

@ -186,7 +186,15 @@ ifeq ($(CONFIG_ARMV7M_OABI_TOOLCHAIN),y)
else
CROSSDEV ?= arm-nuttx-eabi-
ARCROSSDEV ?= arm-nuttx-eabi-
ARCHCPUFLAGS = -mcpu=cortex-m3 -mthumb -mfloat-abi=soft
ifeq ($(CONFIG_ARCH_CORTEXM4),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-m4 -mthumb -march=armv7e-m -mfloat-abi=soft
endif
else ifeq ($(CONFIG_ARCH_CORTEXM3),y)
ARCHCPUFLAGS = -mcpu=cortex-m3 -mthumb -mfloat-abi=soft
endif
endif
MAXOPTIMIZATION ?= -Os
endif

View File

@ -35,7 +35,7 @@
/*
* When this file is assembled, it will require the following GCC options:
*
* -mcpu=cortex-m3 -mfloat-abi=hard -mfpu=vfp -meabi=5
* -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=vfp -meabi=5 -mthumb
*/
/************************************************************************************

View File

@ -774,7 +774,7 @@ config STM32_OTGFS
config STM32_OTGHS
bool "OTG HS"
default n
depends on STM32_STM32F20XX || STM32_STM32F40XX
depends on STM32_STM32F20XX || STM32_STM32F40XX || STM32_STM32F429
config STM32_OTGHS_FS_MODE
bool "Use OTG HS in FS mode"