mirror of
https://github.com/apache/nuttx.git
synced 2026-08-08 22:17:18 +00:00
More STM32F429 Discovery FPU-related changes from David Alessio
This commit is contained in:
parent
c461be6b32
commit
0c19cc2c13
3 changed files with 11 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
*/
|
||||
|
||||
/************************************************************************************
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue