git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_2.4.x@4191 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
5caa23648c
commit
ec70eb072b
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
# Compiler options here.
|
# Compiler options here.
|
||||||
ifeq ($(USE_OPT),)
|
ifeq ($(USE_OPT),)
|
||||||
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16 -mhard-float -mfpu=fpv4-sp-d16 -fsingle-precision-constant
|
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# C specific options here (added to USE_OPT).
|
# C specific options here (added to USE_OPT).
|
||||||
|
@ -41,6 +41,12 @@ endif
|
||||||
# Architecture or project specific options
|
# Architecture or project specific options
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Enables the use of FPU on Cortex-M4.
|
||||||
|
# Enable this if you really want to use the STM FWLib.
|
||||||
|
ifeq ($(USE_FPU),)
|
||||||
|
USE_FPU = no
|
||||||
|
endif
|
||||||
|
|
||||||
# Enable this if you really want to use the STM FWLib.
|
# Enable this if you really want to use the STM FWLib.
|
||||||
ifeq ($(USE_FWLIB),)
|
ifeq ($(USE_FWLIB),)
|
||||||
USE_FWLIB = no
|
USE_FWLIB = no
|
||||||
|
@ -200,6 +206,13 @@ ULIBS =
|
||||||
# End of user defines
|
# End of user defines
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
|
ifeq ($(USE_FPU),yes)
|
||||||
|
USE_OPT += -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -fsingle-precision-constant
|
||||||
|
DDEFS += -DCORTEX_USE_FPU=TRUE
|
||||||
|
else
|
||||||
|
DDEFS += -DCORTEX_USE_FPU=FALSE
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(USE_FWLIB),yes)
|
ifeq ($(USE_FWLIB),yes)
|
||||||
include $(CHIBIOS)/ext/stm32lib/stm32lib.mk
|
include $(CHIBIOS)/ext/stm32lib/stm32lib.mk
|
||||||
CSRC += $(STM32SRC)
|
CSRC += $(STM32SRC)
|
||||||
|
|
|
@ -5,8 +5,8 @@ Settings: SYSCLK=72, ACR=0x12 (2 wait states)
|
||||||
|
|
||||||
*** ChibiOS/RT test suite
|
*** ChibiOS/RT test suite
|
||||||
***
|
***
|
||||||
*** Kernel: 2.4.0
|
*** Kernel: 2.4.1
|
||||||
*** Compiled: Jan 21 2012 - 11:52:41
|
*** Compiled: May 12 2012 - 09:13:44
|
||||||
*** Compiler: GCC 4.6.2
|
*** Compiler: GCC 4.6.2
|
||||||
*** Architecture: ARMv7-M
|
*** Architecture: ARMv7-M
|
||||||
*** Core Variant: Cortex-M3
|
*** Core Variant: Cortex-M3
|
||||||
|
@ -148,7 +148,7 @@ Settings: SYSCLK=72, ACR=0x12 (2 wait states)
|
||||||
--- Result: SUCCESS
|
--- Result: SUCCESS
|
||||||
----------------------------------------------------------------------------
|
----------------------------------------------------------------------------
|
||||||
--- Test Case 11.13 (Benchmark, RAM footprint)
|
--- Test Case 11.13 (Benchmark, RAM footprint)
|
||||||
--- System: 376 bytes
|
--- System: 408 bytes
|
||||||
--- Thread: 72 bytes
|
--- Thread: 72 bytes
|
||||||
--- Timer : 20 bytes
|
--- Timer : 20 bytes
|
||||||
--- Semaph: 12 bytes
|
--- Semaph: 12 bytes
|
||||||
|
|
|
@ -5,8 +5,8 @@ Settings: SYSCLK=168, ACR=0x705 (5 wait states)
|
||||||
|
|
||||||
*** ChibiOS/RT test suite
|
*** ChibiOS/RT test suite
|
||||||
***
|
***
|
||||||
*** Kernel: 2.4.0
|
*** Kernel: 2.4.1
|
||||||
*** Compiled: Jan 15 2012 - 20:10:20
|
*** Compiled: May 12 2012 - 09:28:13
|
||||||
*** Compiler: GCC 4.6.2
|
*** Compiler: GCC 4.6.2
|
||||||
*** Architecture: ARMv7-ME
|
*** Architecture: ARMv7-ME
|
||||||
*** Core Variant: Cortex-M4
|
*** Core Variant: Cortex-M4
|
||||||
|
@ -148,7 +148,7 @@ Settings: SYSCLK=168, ACR=0x705 (5 wait states)
|
||||||
--- Result: SUCCESS
|
--- Result: SUCCESS
|
||||||
----------------------------------------------------------------------------
|
----------------------------------------------------------------------------
|
||||||
--- Test Case 11.13 (Benchmark, RAM footprint)
|
--- Test Case 11.13 (Benchmark, RAM footprint)
|
||||||
--- System: 376 bytes
|
--- System: 408 bytes
|
||||||
--- Thread: 72 bytes
|
--- Thread: 72 bytes
|
||||||
--- Timer : 20 bytes
|
--- Timer : 20 bytes
|
||||||
--- Semaph: 12 bytes
|
--- Semaph: 12 bytes
|
||||||
|
|
|
@ -53,7 +53,7 @@ Lines executed:100.00% of 27
|
||||||
../../os/kernel/src/chmsg.c:creating `chmsg.c.gcov'
|
../../os/kernel/src/chmsg.c:creating `chmsg.c.gcov'
|
||||||
|
|
||||||
File `../../os/kernel/src/chmboxes.c'
|
File `../../os/kernel/src/chmboxes.c'
|
||||||
Lines executed:100.00% of 94
|
Lines executed:100.00% of 95
|
||||||
../../os/kernel/src/chmboxes.c:creating `chmboxes.c.gcov'
|
../../os/kernel/src/chmboxes.c:creating `chmboxes.c.gcov'
|
||||||
|
|
||||||
File `../../os/kernel/src/chqueues.c'
|
File `../../os/kernel/src/chqueues.c'
|
||||||
|
|
|
@ -2,13 +2,13 @@ Platform : PowerPC
|
||||||
OS Setup : Full kernel
|
OS Setup : Full kernel
|
||||||
Compiler : powerpc-eabi-gcc (Sourcery G++ Lite 4.4-79) 4.4.1
|
Compiler : powerpc-eabi-gcc (Sourcery G++ Lite 4.4-79) 4.4.1
|
||||||
Options : -O2 -DCH_OPTIMIZE_SPEED=TRUE
|
Options : -O2 -DCH_OPTIMIZE_SPEED=TRUE
|
||||||
Kernel Size = 11944
|
Kernel Size = 11952
|
||||||
|
|
||||||
Platform : PowerPC
|
Platform : PowerPC
|
||||||
OS Setup : Full kernel
|
OS Setup : Full kernel
|
||||||
Compiler : powerpc-eabi-gcc (Sourcery G++ Lite 4.4-79) 4.4.1
|
Compiler : powerpc-eabi-gcc (Sourcery G++ Lite 4.4-79) 4.4.1
|
||||||
Options : -O2 -DCH_OPTIMIZE_SPEED=FALSE
|
Options : -O2 -DCH_OPTIMIZE_SPEED=FALSE
|
||||||
Kernel Size = 11452
|
Kernel Size = 11460
|
||||||
|
|
||||||
Platform : PowerPC
|
Platform : PowerPC
|
||||||
OS Setup : Minimal kernel
|
OS Setup : Minimal kernel
|
||||||
|
@ -20,13 +20,13 @@ Platform : PowerPC
|
||||||
OS Setup : Full kernel
|
OS Setup : Full kernel
|
||||||
Compiler : powerpc-eabi-gcc (Sourcery G++ Lite 4.4-79) 4.4.1
|
Compiler : powerpc-eabi-gcc (Sourcery G++ Lite 4.4-79) 4.4.1
|
||||||
Options : -Os -DCH_OPTIMIZE_SPEED=TRUE
|
Options : -Os -DCH_OPTIMIZE_SPEED=TRUE
|
||||||
Kernel Size = 10480
|
Kernel Size = 10488
|
||||||
|
|
||||||
Platform : PowerPC
|
Platform : PowerPC
|
||||||
OS Setup : Full kernel
|
OS Setup : Full kernel
|
||||||
Compiler : powerpc-eabi-gcc (Sourcery G++ Lite 4.4-79) 4.4.1
|
Compiler : powerpc-eabi-gcc (Sourcery G++ Lite 4.4-79) 4.4.1
|
||||||
Options : -Os -DCH_OPTIMIZE_SPEED=FALSE
|
Options : -Os -DCH_OPTIMIZE_SPEED=FALSE
|
||||||
Kernel Size = 9940
|
Kernel Size = 9948
|
||||||
|
|
||||||
Platform : PowerPC
|
Platform : PowerPC
|
||||||
OS Setup : Minimal kernel
|
OS Setup : Minimal kernel
|
||||||
|
@ -38,13 +38,13 @@ Platform : ARM Cortex-M3
|
||||||
OS Setup : Full kernel
|
OS Setup : Full kernel
|
||||||
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
||||||
Options : -O2 -mthumb -DCH_OPTIMIZE_SPEED=TRUE
|
Options : -O2 -mthumb -DCH_OPTIMIZE_SPEED=TRUE
|
||||||
Kernel Size = 6172
|
Kernel Size = 6180
|
||||||
|
|
||||||
Platform : ARM Cortex-M3
|
Platform : ARM Cortex-M3
|
||||||
OS Setup : Full kernel
|
OS Setup : Full kernel
|
||||||
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
||||||
Options : -O2 -mthumb -DCH_OPTIMIZE_SPEED=FALSE
|
Options : -O2 -mthumb -DCH_OPTIMIZE_SPEED=FALSE
|
||||||
Kernel Size = 5768
|
Kernel Size = 5776
|
||||||
|
|
||||||
Platform : ARM Cortex-M3
|
Platform : ARM Cortex-M3
|
||||||
OS Setup : Minimal kernel
|
OS Setup : Minimal kernel
|
||||||
|
@ -56,13 +56,13 @@ Platform : ARM Cortex-M3
|
||||||
OS Setup : Full kernel
|
OS Setup : Full kernel
|
||||||
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
||||||
Options : -Os -mthumb -DCH_OPTIMIZE_SPEED=TRUE
|
Options : -Os -mthumb -DCH_OPTIMIZE_SPEED=TRUE
|
||||||
Kernel Size = 5552
|
Kernel Size = 5556
|
||||||
|
|
||||||
Platform : ARM Cortex-M3
|
Platform : ARM Cortex-M3
|
||||||
OS Setup : Full kernel
|
OS Setup : Full kernel
|
||||||
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
||||||
Options : -Os -mthumb -DCH_OPTIMIZE_SPEED=FALSE
|
Options : -Os -mthumb -DCH_OPTIMIZE_SPEED=FALSE
|
||||||
Kernel Size = 5236
|
Kernel Size = 5240
|
||||||
|
|
||||||
Platform : ARM Cortex-M3
|
Platform : ARM Cortex-M3
|
||||||
OS Setup : Minimal kernel
|
OS Setup : Minimal kernel
|
||||||
|
@ -70,35 +70,17 @@ Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
||||||
Options : -Os -mthumb
|
Options : -Os -mthumb
|
||||||
Kernel Size = 1244
|
Kernel Size = 1244
|
||||||
|
|
||||||
Platform : ARM Cortex-M3
|
|
||||||
OS Setup : Full kernel
|
|
||||||
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
|
||||||
Options : -Os -mthumb -ffixed-r7 -DCH_CURRP_REGISTER_CACHE=\"r7\" -DCH_OPTIMIZE_SPEED=TRUE
|
|
||||||
Kernel Size = 5592
|
|
||||||
|
|
||||||
Platform : ARM Cortex-M3
|
|
||||||
OS Setup : Full kernel
|
|
||||||
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
|
||||||
Options : -Os -mthumb -ffixed-r7 -DCH_CURRP_REGISTER_CACHE=\"r7\" -DCH_OPTIMIZE_SPEED=FALSE
|
|
||||||
Kernel Size = 5260
|
|
||||||
|
|
||||||
Platform : ARM Cortex-M3
|
|
||||||
OS Setup : Minimal kernel
|
|
||||||
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
|
||||||
Options : -Os -mthumb -ffixed-r7 -DCH_CURRP_REGISTER_CACHE=\"r7\"
|
|
||||||
Kernel Size = 1244
|
|
||||||
|
|
||||||
Platform : ARM Cortex-M0
|
Platform : ARM Cortex-M0
|
||||||
OS Setup : Full kernel
|
OS Setup : Full kernel
|
||||||
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
||||||
Options : -O2 -mthumb -DCH_OPTIMIZE_SPEED=TRUE
|
Options : -O2 -mthumb -DCH_OPTIMIZE_SPEED=TRUE
|
||||||
Kernel Size = 5500
|
Kernel Size = 5504
|
||||||
|
|
||||||
Platform : ARM Cortex-M0
|
Platform : ARM Cortex-M0
|
||||||
OS Setup : Full kernel
|
OS Setup : Full kernel
|
||||||
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
||||||
Options : -O2 -mthumb -DCH_OPTIMIZE_SPEED=FALSE
|
Options : -O2 -mthumb -DCH_OPTIMIZE_SPEED=FALSE
|
||||||
Kernel Size = 5284
|
Kernel Size = 5288
|
||||||
|
|
||||||
Platform : ARM Cortex-M0
|
Platform : ARM Cortex-M0
|
||||||
OS Setup : Minimal kernel
|
OS Setup : Minimal kernel
|
||||||
|
@ -110,13 +92,13 @@ Platform : ARM Cortex-M0
|
||||||
OS Setup : Full kernel
|
OS Setup : Full kernel
|
||||||
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
||||||
Options : -Os -mthumb -DCH_OPTIMIZE_SPEED=TRUE
|
Options : -Os -mthumb -DCH_OPTIMIZE_SPEED=TRUE
|
||||||
Kernel Size = 5004
|
Kernel Size = 5008
|
||||||
|
|
||||||
Platform : ARM Cortex-M0
|
Platform : ARM Cortex-M0
|
||||||
OS Setup : Full kernel
|
OS Setup : Full kernel
|
||||||
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
||||||
Options : -Os -mthumb -DCH_OPTIMIZE_SPEED=FALSE
|
Options : -Os -mthumb -DCH_OPTIMIZE_SPEED=FALSE
|
||||||
Kernel Size = 4852
|
Kernel Size = 4856
|
||||||
|
|
||||||
Platform : ARM Cortex-M0
|
Platform : ARM Cortex-M0
|
||||||
OS Setup : Minimal kernel
|
OS Setup : Minimal kernel
|
||||||
|
@ -128,13 +110,13 @@ Platform : ARM7TDMI (ARM mode)
|
||||||
OS Setup : Full kernel
|
OS Setup : Full kernel
|
||||||
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
||||||
Options : -O2 -DCH_OPTIMIZE_SPEED=TRUE
|
Options : -O2 -DCH_OPTIMIZE_SPEED=TRUE
|
||||||
Kernel Size = 9224
|
Kernel Size = 9232
|
||||||
|
|
||||||
Platform : ARM7TDMI (ARM mode)
|
Platform : ARM7TDMI (ARM mode)
|
||||||
OS Setup : Full kernel
|
OS Setup : Full kernel
|
||||||
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
||||||
Options : -O2 -DCH_OPTIMIZE_SPEED=FALSE
|
Options : -O2 -DCH_OPTIMIZE_SPEED=FALSE
|
||||||
Kernel Size = 8688
|
Kernel Size = 8696
|
||||||
|
|
||||||
Platform : ARM7TDMI (ARM mode)
|
Platform : ARM7TDMI (ARM mode)
|
||||||
OS Setup : Minimal kernel
|
OS Setup : Minimal kernel
|
||||||
|
@ -146,13 +128,13 @@ Platform : ARM7TDMI (ARM mode)
|
||||||
OS Setup : Full kernel
|
OS Setup : Full kernel
|
||||||
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
||||||
Options : -Os -DCH_OPTIMIZE_SPEED=TRUE
|
Options : -Os -DCH_OPTIMIZE_SPEED=TRUE
|
||||||
Kernel Size = 8432
|
Kernel Size = 8440
|
||||||
|
|
||||||
Platform : ARM7TDMI (ARM mode)
|
Platform : ARM7TDMI (ARM mode)
|
||||||
OS Setup : Full kernel
|
OS Setup : Full kernel
|
||||||
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
||||||
Options : -Os -DCH_OPTIMIZE_SPEED=FALSE
|
Options : -Os -DCH_OPTIMIZE_SPEED=FALSE
|
||||||
Kernel Size = 8060
|
Kernel Size = 8068
|
||||||
|
|
||||||
Platform : ARM7TDMI (ARM mode)
|
Platform : ARM7TDMI (ARM mode)
|
||||||
OS Setup : Minimal kernel
|
OS Setup : Minimal kernel
|
||||||
|
@ -160,53 +142,17 @@ Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
||||||
Options : -Os
|
Options : -Os
|
||||||
Kernel Size = 1568
|
Kernel Size = 1568
|
||||||
|
|
||||||
Platform : ARM7TDMI (ARM mode)
|
|
||||||
OS Setup : Full kernel
|
|
||||||
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
|
||||||
Options : -O2 -ffixed-r7 -DCH_CURRP_REGISTER_CACHE=\"r7\" -DCH_OPTIMIZE_SPEED=TRUE
|
|
||||||
Kernel Size = 9224
|
|
||||||
|
|
||||||
Platform : ARM7TDMI (ARM mode)
|
|
||||||
OS Setup : Full kernel
|
|
||||||
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
|
||||||
Options : -O2 -ffixed-r7 -DCH_CURRP_REGISTER_CACHE=\"r7\" -DCH_OPTIMIZE_SPEED=FALSE
|
|
||||||
Kernel Size = 8688
|
|
||||||
|
|
||||||
Platform : ARM7TDMI (ARM mode)
|
|
||||||
OS Setup : Minimal kernel
|
|
||||||
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
|
||||||
Options : -O2 -ffixed-r7 -DCH_CURRP_REGISTER_CACHE=\"r7\"
|
|
||||||
Kernel Size = 1816
|
|
||||||
|
|
||||||
Platform : ARM7TDMI (ARM mode)
|
|
||||||
OS Setup : Full kernel
|
|
||||||
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
|
||||||
Options : -Os -ffixed-r7 -DCH_CURRP_REGISTER_CACHE=\"r7\" -DCH_OPTIMIZE_SPEED=TRUE
|
|
||||||
Kernel Size = 8432
|
|
||||||
|
|
||||||
Platform : ARM7TDMI (ARM mode)
|
|
||||||
OS Setup : Full kernel
|
|
||||||
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
|
||||||
Options : -Os -ffixed-r7 -DCH_CURRP_REGISTER_CACHE=\"r7\" -DCH_OPTIMIZE_SPEED=FALSE
|
|
||||||
Kernel Size = 8060
|
|
||||||
|
|
||||||
Platform : ARM7TDMI (ARM mode)
|
|
||||||
OS Setup : Minimal kernel
|
|
||||||
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
|
||||||
Options : -Os -ffixed-r7 -DCH_CURRP_REGISTER_CACHE=\"r7\"
|
|
||||||
Kernel Size = 1568
|
|
||||||
|
|
||||||
Platform : ARM7TDMI (THUMB mode)
|
Platform : ARM7TDMI (THUMB mode)
|
||||||
OS Setup : Full kernel
|
OS Setup : Full kernel
|
||||||
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
||||||
Options : -O2 -mthumb -DCH_OPTIMIZE_SPEED=TRUE -DTHUMB -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING
|
Options : -O2 -mthumb -DCH_OPTIMIZE_SPEED=TRUE -DTHUMB -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING
|
||||||
Kernel Size = 6052
|
Kernel Size = 6056
|
||||||
|
|
||||||
Platform : ARM7TDMI (THUMB mode)
|
Platform : ARM7TDMI (THUMB mode)
|
||||||
OS Setup : Full kernel
|
OS Setup : Full kernel
|
||||||
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
||||||
Options : -O2 -mthumb -DCH_OPTIMIZE_SPEED=FALSE -DTHUMB -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING
|
Options : -O2 -mthumb -DCH_OPTIMIZE_SPEED=FALSE -DTHUMB -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING
|
||||||
Kernel Size = 5820
|
Kernel Size = 5824
|
||||||
|
|
||||||
Platform : ARM7TDMI (THUMB mode)
|
Platform : ARM7TDMI (THUMB mode)
|
||||||
OS Setup : Minimal kernel
|
OS Setup : Minimal kernel
|
||||||
|
@ -218,13 +164,13 @@ Platform : ARM7TDMI (THUMB mode)
|
||||||
OS Setup : Full kernel
|
OS Setup : Full kernel
|
||||||
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
||||||
Options : -Os -mthumb -DCH_OPTIMIZE_SPEED=TRUE -DTHUMB -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING
|
Options : -Os -mthumb -DCH_OPTIMIZE_SPEED=TRUE -DTHUMB -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING
|
||||||
Kernel Size = 5576
|
Kernel Size = 5580
|
||||||
|
|
||||||
Platform : ARM7TDMI (THUMB mode)
|
Platform : ARM7TDMI (THUMB mode)
|
||||||
OS Setup : Full kernel
|
OS Setup : Full kernel
|
||||||
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
||||||
Options : -Os -mthumb -DCH_OPTIMIZE_SPEED=FALSE -DTHUMB -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING
|
Options : -Os -mthumb -DCH_OPTIMIZE_SPEED=FALSE -DTHUMB -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING
|
||||||
Kernel Size = 5388
|
Kernel Size = 5392
|
||||||
|
|
||||||
Platform : ARM7TDMI (THUMB mode)
|
Platform : ARM7TDMI (THUMB mode)
|
||||||
OS Setup : Minimal kernel
|
OS Setup : Minimal kernel
|
||||||
|
@ -232,75 +178,39 @@ Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
||||||
Options : -Os -mthumb -DTHUMB -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING
|
Options : -Os -mthumb -DTHUMB -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING
|
||||||
Kernel Size = 1184
|
Kernel Size = 1184
|
||||||
|
|
||||||
Platform : ARM7TDMI (THUMB mode)
|
|
||||||
OS Setup : Full kernel
|
|
||||||
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
|
||||||
Options : -O2 -mthumb -ffixed-r7 -DCH_CURRP_REGISTER_CACHE=\"r7\" -DCH_OPTIMIZE_SPEED=TRUE -DTHUMB -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING
|
|
||||||
Kernel Size = 6112
|
|
||||||
|
|
||||||
Platform : ARM7TDMI (THUMB mode)
|
|
||||||
OS Setup : Full kernel
|
|
||||||
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
|
||||||
Options : -O2 -mthumb -ffixed-r7 -DCH_CURRP_REGISTER_CACHE=\"r7\" -DCH_OPTIMIZE_SPEED=FALSE -DTHUMB -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING
|
|
||||||
Kernel Size = 5876
|
|
||||||
|
|
||||||
Platform : ARM7TDMI (THUMB mode)
|
|
||||||
OS Setup : Minimal kernel
|
|
||||||
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
|
||||||
Options : -O2 -mthumb -ffixed-r7 -DCH_CURRP_REGISTER_CACHE=\"r7\" -DTHUMB -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING
|
|
||||||
Kernel Size = 1308
|
|
||||||
|
|
||||||
Platform : ARM7TDMI (THUMB mode)
|
|
||||||
OS Setup : Full kernel
|
|
||||||
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
|
||||||
Options : -Os -mthumb -ffixed-r7 -DCH_CURRP_REGISTER_CACHE=\"r7\" -DCH_OPTIMIZE_SPEED=TRUE -DTHUMB -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING
|
|
||||||
Kernel Size = 5592
|
|
||||||
|
|
||||||
Platform : ARM7TDMI (THUMB mode)
|
|
||||||
OS Setup : Full kernel
|
|
||||||
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
|
||||||
Options : -Os -mthumb -ffixed-r7 -DCH_CURRP_REGISTER_CACHE=\"r7\" -DCH_OPTIMIZE_SPEED=FALSE -DTHUMB -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING
|
|
||||||
Kernel Size = 5408
|
|
||||||
|
|
||||||
Platform : ARM7TDMI (THUMB mode)
|
|
||||||
OS Setup : Minimal kernel
|
|
||||||
Compiler : arm-none-eabi-gcc (GCC) 4.6.2
|
|
||||||
Options : -Os -mthumb -ffixed-r7 -DCH_CURRP_REGISTER_CACHE=\"r7\" -DTHUMB -DTHUMB_PRESENT -DTHUMB_NO_INTERWORKING
|
|
||||||
Kernel Size = 1184
|
|
||||||
|
|
||||||
Platform : MSP430
|
Platform : MSP430
|
||||||
OS Setup : Full kernel
|
OS Setup : Full kernel
|
||||||
Compiler : msp430-gcc (GCC) 3.2.3
|
Compiler : msp430-gcc (GCC) 4.6.3 20120301 (mspgcc LTS 20120406 unpatched)
|
||||||
Options : -O2 -DCH_OPTIMIZE_SPEED=TRUE
|
Options : -O2 -DCH_OPTIMIZE_SPEED=TRUE
|
||||||
Kernel Size = 6108
|
Kernel Size = 6468
|
||||||
|
|
||||||
Platform : MSP430
|
Platform : MSP430
|
||||||
OS Setup : Full kernel
|
OS Setup : Full kernel
|
||||||
Compiler : msp430-gcc (GCC) 3.2.3
|
Compiler : msp430-gcc (GCC) 4.6.3 20120301 (mspgcc LTS 20120406 unpatched)
|
||||||
Options : -O2 -DCH_OPTIMIZE_SPEED=FALSE
|
Options : -O2 -DCH_OPTIMIZE_SPEED=FALSE
|
||||||
Kernel Size = 5632
|
Kernel Size = 6044
|
||||||
|
|
||||||
Platform : MSP430
|
Platform : MSP430
|
||||||
OS Setup : Minimal kernel
|
OS Setup : Minimal kernel
|
||||||
Compiler : msp430-gcc (GCC) 3.2.3
|
Compiler : msp430-gcc (GCC) 4.6.3 20120301 (mspgcc LTS 20120406 unpatched)
|
||||||
Options : -O2
|
Options : -O2
|
||||||
Kernel Size = 996
|
Kernel Size = 1084
|
||||||
|
|
||||||
Platform : MSP430
|
Platform : MSP430
|
||||||
OS Setup : Full kernel
|
OS Setup : Full kernel
|
||||||
Compiler : msp430-gcc (GCC) 3.2.3
|
Compiler : msp430-gcc (GCC) 4.6.3 20120301 (mspgcc LTS 20120406 unpatched)
|
||||||
Options : -Os -DCH_OPTIMIZE_SPEED=TRUE
|
Options : -Os -DCH_OPTIMIZE_SPEED=TRUE
|
||||||
Kernel Size = 5996
|
Kernel Size = 5772
|
||||||
|
|
||||||
Platform : MSP430
|
Platform : MSP430
|
||||||
OS Setup : Full kernel
|
OS Setup : Full kernel
|
||||||
Compiler : msp430-gcc (GCC) 3.2.3
|
Compiler : msp430-gcc (GCC) 4.6.3 20120301 (mspgcc LTS 20120406 unpatched)
|
||||||
Options : -Os -DCH_OPTIMIZE_SPEED=FALSE
|
Options : -Os -DCH_OPTIMIZE_SPEED=FALSE
|
||||||
Kernel Size = 5556
|
Kernel Size = 5472
|
||||||
|
|
||||||
Platform : MSP430
|
Platform : MSP430
|
||||||
OS Setup : Minimal kernel
|
OS Setup : Minimal kernel
|
||||||
Compiler : msp430-gcc (GCC) 3.2.3
|
Compiler : msp430-gcc (GCC) 4.6.3 20120301 (mspgcc LTS 20120406 unpatched)
|
||||||
Options : -Os
|
Options : -Os
|
||||||
Kernel Size = 996
|
Kernel Size = 908
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
# Compiler options here.
|
# Compiler options here.
|
||||||
ifeq ($(USE_OPT),)
|
ifeq ($(USE_OPT),)
|
||||||
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16 -mhard-float -mfpu=fpv4-sp-d16 -fsingle-precision-constant
|
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# C specific options here (added to USE_OPT).
|
# C specific options here (added to USE_OPT).
|
||||||
|
@ -41,6 +41,12 @@ endif
|
||||||
# Architecture or project specific options
|
# Architecture or project specific options
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Enables the use of FPU on Cortex-M4.
|
||||||
|
# Enable this if you really want to use the STM FWLib.
|
||||||
|
ifeq ($(USE_FPU),)
|
||||||
|
USE_FPU = no
|
||||||
|
endif
|
||||||
|
|
||||||
# Enable this if you really want to use the STM FWLib.
|
# Enable this if you really want to use the STM FWLib.
|
||||||
ifeq ($(USE_FWLIB),)
|
ifeq ($(USE_FWLIB),)
|
||||||
USE_FWLIB = no
|
USE_FWLIB = no
|
||||||
|
@ -64,10 +70,11 @@ include $(CHIBIOS)/os/hal/platforms/STM32F4xx/platform.mk
|
||||||
include $(CHIBIOS)/os/hal/hal.mk
|
include $(CHIBIOS)/os/hal/hal.mk
|
||||||
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F4xx/port.mk
|
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F4xx/port.mk
|
||||||
include $(CHIBIOS)/os/kernel/kernel.mk
|
include $(CHIBIOS)/os/kernel/kernel.mk
|
||||||
#include $(CHIBIOS)/test/test.mk
|
include $(CHIBIOS)/test/test.mk
|
||||||
|
|
||||||
# Define linker script file here
|
# Define linker script file here
|
||||||
LDSCRIPT= $(PORTLD)/STM32F407xG.ld
|
LDSCRIPT= $(PORTLD)/STM32F407xG.ld
|
||||||
|
#LDSCRIPT= $(PORTLD)/STM32F407xG_CCM.ld
|
||||||
|
|
||||||
# C sources that can be compiled in ARM or THUMB mode depending on the global
|
# C sources that can be compiled in ARM or THUMB mode depending on the global
|
||||||
# setting.
|
# setting.
|
||||||
|
@ -77,6 +84,7 @@ CSRC = $(PORTSRC) \
|
||||||
$(HALSRC) \
|
$(HALSRC) \
|
||||||
$(PLATFORMSRC) \
|
$(PLATFORMSRC) \
|
||||||
$(BOARDSRC) \
|
$(BOARDSRC) \
|
||||||
|
$(CHIBIOS)/os/various/chprintf.c \
|
||||||
main.c
|
main.c
|
||||||
|
|
||||||
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
|
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
|
||||||
|
@ -197,6 +205,13 @@ ULIBS =
|
||||||
# End of user defines
|
# End of user defines
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
|
ifeq ($(USE_FPU),yes)
|
||||||
|
USE_OPT += -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -fsingle-precision-constant
|
||||||
|
DDEFS += -DCORTEX_USE_FPU=TRUE
|
||||||
|
else
|
||||||
|
DDEFS += -DCORTEX_USE_FPU=FALSE
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(USE_FWLIB),yes)
|
ifeq ($(USE_FWLIB),yes)
|
||||||
include $(CHIBIOS)/ext/stm32lib/stm32lib.mk
|
include $(CHIBIOS)/ext/stm32lib/stm32lib.mk
|
||||||
CSRC += $(STM32SRC)
|
CSRC += $(STM32SRC)
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
# Compiler options here.
|
# Compiler options here.
|
||||||
ifeq ($(USE_OPT),)
|
ifeq ($(USE_OPT),)
|
||||||
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16 -mhard-float -mfpu=fpv4-sp-d16 -fsingle-precision-constant
|
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# C specific options here (added to USE_OPT).
|
# C specific options here (added to USE_OPT).
|
||||||
|
@ -41,6 +41,12 @@ endif
|
||||||
# Architecture or project specific options
|
# Architecture or project specific options
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Enables the use of FPU on Cortex-M4.
|
||||||
|
# Enable this if you really want to use the STM FWLib.
|
||||||
|
ifeq ($(USE_FPU),)
|
||||||
|
USE_FPU = no
|
||||||
|
endif
|
||||||
|
|
||||||
# Enable this if you really want to use the STM FWLib.
|
# Enable this if you really want to use the STM FWLib.
|
||||||
ifeq ($(USE_FWLIB),)
|
ifeq ($(USE_FWLIB),)
|
||||||
USE_FWLIB = no
|
USE_FWLIB = no
|
||||||
|
@ -64,10 +70,11 @@ include $(CHIBIOS)/os/hal/platforms/STM32F4xx/platform.mk
|
||||||
include $(CHIBIOS)/os/hal/hal.mk
|
include $(CHIBIOS)/os/hal/hal.mk
|
||||||
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F4xx/port.mk
|
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F4xx/port.mk
|
||||||
include $(CHIBIOS)/os/kernel/kernel.mk
|
include $(CHIBIOS)/os/kernel/kernel.mk
|
||||||
#include $(CHIBIOS)/test/test.mk
|
include $(CHIBIOS)/test/test.mk
|
||||||
|
|
||||||
# Define linker script file here
|
# Define linker script file here
|
||||||
LDSCRIPT= $(PORTLD)/STM32F407xG.ld
|
LDSCRIPT= $(PORTLD)/STM32F407xG.ld
|
||||||
|
#LDSCRIPT= $(PORTLD)/STM32F407xG_CCM.ld
|
||||||
|
|
||||||
# C sources that can be compiled in ARM or THUMB mode depending on the global
|
# C sources that can be compiled in ARM or THUMB mode depending on the global
|
||||||
# setting.
|
# setting.
|
||||||
|
@ -77,8 +84,7 @@ CSRC = $(PORTSRC) \
|
||||||
$(HALSRC) \
|
$(HALSRC) \
|
||||||
$(PLATFORMSRC) \
|
$(PLATFORMSRC) \
|
||||||
$(BOARDSRC) \
|
$(BOARDSRC) \
|
||||||
$(CHIBIOS)/os/various/evtimer.c \
|
$(CHIBIOS)/os/various/chprintf.c \
|
||||||
$(CHIBIOS)/os/various/syscalls.c \
|
|
||||||
main.c
|
main.c
|
||||||
|
|
||||||
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
|
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
|
||||||
|
@ -199,6 +205,13 @@ ULIBS =
|
||||||
# End of user defines
|
# End of user defines
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
|
ifeq ($(USE_FPU),yes)
|
||||||
|
USE_OPT += -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -fsingle-precision-constant
|
||||||
|
DDEFS += -DCORTEX_USE_FPU=TRUE
|
||||||
|
else
|
||||||
|
DDEFS += -DCORTEX_USE_FPU=FALSE
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(USE_FWLIB),yes)
|
ifeq ($(USE_FWLIB),yes)
|
||||||
include $(CHIBIOS)/ext/stm32lib/stm32lib.mk
|
include $(CHIBIOS)/ext/stm32lib/stm32lib.mk
|
||||||
CSRC += $(STM32SRC)
|
CSRC += $(STM32SRC)
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
# Compiler options here.
|
# Compiler options here.
|
||||||
ifeq ($(USE_OPT),)
|
ifeq ($(USE_OPT),)
|
||||||
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16 -mhard-float -mfpu=fpv4-sp-d16 -fsingle-precision-constant
|
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# C specific options here (added to USE_OPT).
|
# C specific options here (added to USE_OPT).
|
||||||
|
@ -41,6 +41,12 @@ endif
|
||||||
# Architecture or project specific options
|
# Architecture or project specific options
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Enables the use of FPU on Cortex-M4.
|
||||||
|
# Enable this if you really want to use the STM FWLib.
|
||||||
|
ifeq ($(USE_FPU),)
|
||||||
|
USE_FPU = no
|
||||||
|
endif
|
||||||
|
|
||||||
# Enable this if you really want to use the STM FWLib.
|
# Enable this if you really want to use the STM FWLib.
|
||||||
ifeq ($(USE_FWLIB),)
|
ifeq ($(USE_FWLIB),)
|
||||||
USE_FWLIB = no
|
USE_FWLIB = no
|
||||||
|
@ -64,10 +70,11 @@ include $(CHIBIOS)/os/hal/platforms/STM32F4xx/platform.mk
|
||||||
include $(CHIBIOS)/os/hal/hal.mk
|
include $(CHIBIOS)/os/hal/hal.mk
|
||||||
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F4xx/port.mk
|
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F4xx/port.mk
|
||||||
include $(CHIBIOS)/os/kernel/kernel.mk
|
include $(CHIBIOS)/os/kernel/kernel.mk
|
||||||
#include $(CHIBIOS)/test/test.mk
|
include $(CHIBIOS)/test/test.mk
|
||||||
|
|
||||||
# Define linker script file here
|
# Define linker script file here
|
||||||
LDSCRIPT= $(PORTLD)/STM32F407xG.ld
|
LDSCRIPT= $(PORTLD)/STM32F407xG.ld
|
||||||
|
#LDSCRIPT= $(PORTLD)/STM32F407xG_CCM.ld
|
||||||
|
|
||||||
# C sources that can be compiled in ARM or THUMB mode depending on the global
|
# C sources that can be compiled in ARM or THUMB mode depending on the global
|
||||||
# setting.
|
# setting.
|
||||||
|
@ -77,6 +84,7 @@ CSRC = $(PORTSRC) \
|
||||||
$(HALSRC) \
|
$(HALSRC) \
|
||||||
$(PLATFORMSRC) \
|
$(PLATFORMSRC) \
|
||||||
$(BOARDSRC) \
|
$(BOARDSRC) \
|
||||||
|
$(CHIBIOS)/os/various/chprintf.c \
|
||||||
main.c
|
main.c
|
||||||
|
|
||||||
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
|
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
|
||||||
|
@ -197,6 +205,13 @@ ULIBS =
|
||||||
# End of user defines
|
# End of user defines
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
|
ifeq ($(USE_FPU),yes)
|
||||||
|
USE_OPT += -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -fsingle-precision-constant
|
||||||
|
DDEFS += -DCORTEX_USE_FPU=TRUE
|
||||||
|
else
|
||||||
|
DDEFS += -DCORTEX_USE_FPU=FALSE
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(USE_FWLIB),yes)
|
ifeq ($(USE_FWLIB),yes)
|
||||||
include $(CHIBIOS)/ext/stm32lib/stm32lib.mk
|
include $(CHIBIOS)/ext/stm32lib/stm32lib.mk
|
||||||
CSRC += $(STM32SRC)
|
CSRC += $(STM32SRC)
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
# Compiler options here.
|
# Compiler options here.
|
||||||
ifeq ($(USE_OPT),)
|
ifeq ($(USE_OPT),)
|
||||||
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16 -mhard-float -mfpu=fpv4-sp-d16 -fsingle-precision-constant
|
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# C specific options here (added to USE_OPT).
|
# C specific options here (added to USE_OPT).
|
||||||
|
@ -41,6 +41,12 @@ endif
|
||||||
# Architecture or project specific options
|
# Architecture or project specific options
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Enables the use of FPU on Cortex-M4.
|
||||||
|
# Enable this if you really want to use the STM FWLib.
|
||||||
|
ifeq ($(USE_FPU),)
|
||||||
|
USE_FPU = no
|
||||||
|
endif
|
||||||
|
|
||||||
# Enable this if you really want to use the STM FWLib.
|
# Enable this if you really want to use the STM FWLib.
|
||||||
ifeq ($(USE_FWLIB),)
|
ifeq ($(USE_FWLIB),)
|
||||||
USE_FWLIB = no
|
USE_FWLIB = no
|
||||||
|
@ -64,10 +70,11 @@ include $(CHIBIOS)/os/hal/platforms/STM32F4xx/platform.mk
|
||||||
include $(CHIBIOS)/os/hal/hal.mk
|
include $(CHIBIOS)/os/hal/hal.mk
|
||||||
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F4xx/port.mk
|
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F4xx/port.mk
|
||||||
include $(CHIBIOS)/os/kernel/kernel.mk
|
include $(CHIBIOS)/os/kernel/kernel.mk
|
||||||
#include $(CHIBIOS)/test/test.mk
|
include $(CHIBIOS)/test/test.mk
|
||||||
|
|
||||||
# Define linker script file here
|
# Define linker script file here
|
||||||
LDSCRIPT= $(PORTLD)/STM32F407xG.ld
|
LDSCRIPT= $(PORTLD)/STM32F407xG.ld
|
||||||
|
#LDSCRIPT= $(PORTLD)/STM32F407xG_CCM.ld
|
||||||
|
|
||||||
# C sources that can be compiled in ARM or THUMB mode depending on the global
|
# C sources that can be compiled in ARM or THUMB mode depending on the global
|
||||||
# setting.
|
# setting.
|
||||||
|
@ -77,6 +84,7 @@ CSRC = $(PORTSRC) \
|
||||||
$(HALSRC) \
|
$(HALSRC) \
|
||||||
$(PLATFORMSRC) \
|
$(PLATFORMSRC) \
|
||||||
$(BOARDSRC) \
|
$(BOARDSRC) \
|
||||||
|
$(CHIBIOS)/os/various/chprintf.c \
|
||||||
main.c
|
main.c
|
||||||
|
|
||||||
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
|
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
|
||||||
|
@ -197,6 +205,13 @@ ULIBS =
|
||||||
# End of user defines
|
# End of user defines
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
|
ifeq ($(USE_FPU),yes)
|
||||||
|
USE_OPT += -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -fsingle-precision-constant
|
||||||
|
DDEFS += -DCORTEX_USE_FPU=TRUE
|
||||||
|
else
|
||||||
|
DDEFS += -DCORTEX_USE_FPU=FALSE
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(USE_FWLIB),yes)
|
ifeq ($(USE_FWLIB),yes)
|
||||||
include $(CHIBIOS)/ext/stm32lib/stm32lib.mk
|
include $(CHIBIOS)/ext/stm32lib/stm32lib.mk
|
||||||
CSRC += $(STM32SRC)
|
CSRC += $(STM32SRC)
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
# Compiler options here.
|
# Compiler options here.
|
||||||
ifeq ($(USE_OPT),)
|
ifeq ($(USE_OPT),)
|
||||||
USE_OPT = -O0 -ggdb -fomit-frame-pointer -falign-functions=16 -mhard-float -mfpu=fpv4-sp-d16 -fsingle-precision-constant
|
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# C specific options here (added to USE_OPT).
|
# C specific options here (added to USE_OPT).
|
||||||
|
@ -41,6 +41,12 @@ endif
|
||||||
# Architecture or project specific options
|
# Architecture or project specific options
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Enables the use of FPU on Cortex-M4.
|
||||||
|
# Enable this if you really want to use the STM FWLib.
|
||||||
|
ifeq ($(USE_FPU),)
|
||||||
|
USE_FPU = no
|
||||||
|
endif
|
||||||
|
|
||||||
# Enable this if you really want to use the STM FWLib.
|
# Enable this if you really want to use the STM FWLib.
|
||||||
ifeq ($(USE_FWLIB),)
|
ifeq ($(USE_FWLIB),)
|
||||||
USE_FWLIB = no
|
USE_FWLIB = no
|
||||||
|
@ -64,10 +70,11 @@ include $(CHIBIOS)/os/hal/platforms/STM32F4xx/platform.mk
|
||||||
include $(CHIBIOS)/os/hal/hal.mk
|
include $(CHIBIOS)/os/hal/hal.mk
|
||||||
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F4xx/port.mk
|
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F4xx/port.mk
|
||||||
include $(CHIBIOS)/os/kernel/kernel.mk
|
include $(CHIBIOS)/os/kernel/kernel.mk
|
||||||
#include $(CHIBIOS)/test/test.mk
|
include $(CHIBIOS)/test/test.mk
|
||||||
|
|
||||||
# Define linker script file here
|
# Define linker script file here
|
||||||
LDSCRIPT= $(PORTLD)/STM32F407xG.ld
|
LDSCRIPT= $(PORTLD)/STM32F407xG.ld
|
||||||
|
#LDSCRIPT= $(PORTLD)/STM32F407xG_CCM.ld
|
||||||
|
|
||||||
# C sources that can be compiled in ARM or THUMB mode depending on the global
|
# C sources that can be compiled in ARM or THUMB mode depending on the global
|
||||||
# setting.
|
# setting.
|
||||||
|
@ -77,6 +84,7 @@ CSRC = $(PORTSRC) \
|
||||||
$(HALSRC) \
|
$(HALSRC) \
|
||||||
$(PLATFORMSRC) \
|
$(PLATFORMSRC) \
|
||||||
$(BOARDSRC) \
|
$(BOARDSRC) \
|
||||||
|
$(CHIBIOS)/os/various/chprintf.c \
|
||||||
main.c
|
main.c
|
||||||
|
|
||||||
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
|
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
|
||||||
|
@ -197,6 +205,13 @@ ULIBS =
|
||||||
# End of user defines
|
# End of user defines
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
|
ifeq ($(USE_FPU),yes)
|
||||||
|
USE_OPT += -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -fsingle-precision-constant
|
||||||
|
DDEFS += -DCORTEX_USE_FPU=TRUE
|
||||||
|
else
|
||||||
|
DDEFS += -DCORTEX_USE_FPU=FALSE
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(USE_FWLIB),yes)
|
ifeq ($(USE_FWLIB),yes)
|
||||||
include $(CHIBIOS)/ext/stm32lib/stm32lib.mk
|
include $(CHIBIOS)/ext/stm32lib/stm32lib.mk
|
||||||
CSRC += $(STM32SRC)
|
CSRC += $(STM32SRC)
|
||||||
|
|
|
@ -39,10 +39,6 @@
|
||||||
#ifndef _CHCONF_H_
|
#ifndef _CHCONF_H_
|
||||||
#define _CHCONF_H_
|
#define _CHCONF_H_
|
||||||
|
|
||||||
//#define CORTEX_VTOR_INIT 0x000E0000
|
|
||||||
#define CORTEX_VTOR_INIT 0x00000000
|
|
||||||
#define CORTEX_USE_FPU TRUE
|
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* Kernel parameters. */
|
/* Kernel parameters. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -87,7 +87,7 @@
|
||||||
* @brief Enables the I2C subsystem.
|
* @brief Enables the I2C subsystem.
|
||||||
*/
|
*/
|
||||||
#if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
|
#if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
|
||||||
#define HAL_USE_I2C FALSE
|
#define HAL_USE_I2C TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
# Compiler options here.
|
# Compiler options here.
|
||||||
ifeq ($(USE_OPT),)
|
ifeq ($(USE_OPT),)
|
||||||
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16 -mhard-float -mfpu=fpv4-sp-d16 -fsingle-precision-constant
|
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# C specific options here (added to USE_OPT).
|
# C specific options here (added to USE_OPT).
|
||||||
|
@ -41,6 +41,12 @@ endif
|
||||||
# Architecture or project specific options
|
# Architecture or project specific options
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Enables the use of FPU on Cortex-M4.
|
||||||
|
# Enable this if you really want to use the STM FWLib.
|
||||||
|
ifeq ($(USE_FPU),)
|
||||||
|
USE_FPU = no
|
||||||
|
endif
|
||||||
|
|
||||||
# Enable this if you really want to use the STM FWLib.
|
# Enable this if you really want to use the STM FWLib.
|
||||||
ifeq ($(USE_FWLIB),)
|
ifeq ($(USE_FWLIB),)
|
||||||
USE_FWLIB = no
|
USE_FWLIB = no
|
||||||
|
@ -64,10 +70,11 @@ include $(CHIBIOS)/os/hal/platforms/STM32F4xx/platform.mk
|
||||||
include $(CHIBIOS)/os/hal/hal.mk
|
include $(CHIBIOS)/os/hal/hal.mk
|
||||||
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F4xx/port.mk
|
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F4xx/port.mk
|
||||||
include $(CHIBIOS)/os/kernel/kernel.mk
|
include $(CHIBIOS)/os/kernel/kernel.mk
|
||||||
#include $(CHIBIOS)/test/test.mk
|
include $(CHIBIOS)/test/test.mk
|
||||||
|
|
||||||
# Define linker script file here
|
# Define linker script file here
|
||||||
LDSCRIPT= $(PORTLD)/STM32F407xG.ld
|
LDSCRIPT= $(PORTLD)/STM32F407xG.ld
|
||||||
|
#LDSCRIPT= $(PORTLD)/STM32F407xG_CCM.ld
|
||||||
|
|
||||||
# C sources that can be compiled in ARM or THUMB mode depending on the global
|
# C sources that can be compiled in ARM or THUMB mode depending on the global
|
||||||
# setting.
|
# setting.
|
||||||
|
@ -77,6 +84,7 @@ CSRC = $(PORTSRC) \
|
||||||
$(HALSRC) \
|
$(HALSRC) \
|
||||||
$(PLATFORMSRC) \
|
$(PLATFORMSRC) \
|
||||||
$(BOARDSRC) \
|
$(BOARDSRC) \
|
||||||
|
$(CHIBIOS)/os/various/chprintf.c \
|
||||||
main.c
|
main.c
|
||||||
|
|
||||||
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
|
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
|
||||||
|
@ -197,6 +205,13 @@ ULIBS =
|
||||||
# End of user defines
|
# End of user defines
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
|
ifeq ($(USE_FPU),yes)
|
||||||
|
USE_OPT += -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -fsingle-precision-constant
|
||||||
|
DDEFS += -DCORTEX_USE_FPU=TRUE
|
||||||
|
else
|
||||||
|
DDEFS += -DCORTEX_USE_FPU=FALSE
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(USE_FWLIB),yes)
|
ifeq ($(USE_FWLIB),yes)
|
||||||
include $(CHIBIOS)/ext/stm32lib/stm32lib.mk
|
include $(CHIBIOS)/ext/stm32lib/stm32lib.mk
|
||||||
CSRC += $(STM32SRC)
|
CSRC += $(STM32SRC)
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
# Compiler options here.
|
# Compiler options here.
|
||||||
ifeq ($(USE_OPT),)
|
ifeq ($(USE_OPT),)
|
||||||
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16 -mhard-float -mfpu=fpv4-sp-d16 -fsingle-precision-constant
|
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# C specific options here (added to USE_OPT).
|
# C specific options here (added to USE_OPT).
|
||||||
|
@ -41,6 +41,12 @@ endif
|
||||||
# Architecture or project specific options
|
# Architecture or project specific options
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Enables the use of FPU on Cortex-M4.
|
||||||
|
# Enable this if you really want to use the STM FWLib.
|
||||||
|
ifeq ($(USE_FPU),)
|
||||||
|
USE_FPU = yes
|
||||||
|
endif
|
||||||
|
|
||||||
# Enable this if you really want to use the STM FWLib.
|
# Enable this if you really want to use the STM FWLib.
|
||||||
ifeq ($(USE_FWLIB),)
|
ifeq ($(USE_FWLIB),)
|
||||||
USE_FWLIB = no
|
USE_FWLIB = no
|
||||||
|
@ -64,10 +70,11 @@ include $(CHIBIOS)/os/hal/platforms/STM32F4xx/platform.mk
|
||||||
include $(CHIBIOS)/os/hal/hal.mk
|
include $(CHIBIOS)/os/hal/hal.mk
|
||||||
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F4xx/port.mk
|
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F4xx/port.mk
|
||||||
include $(CHIBIOS)/os/kernel/kernel.mk
|
include $(CHIBIOS)/os/kernel/kernel.mk
|
||||||
#include $(CHIBIOS)/test/test.mk
|
include $(CHIBIOS)/test/test.mk
|
||||||
|
|
||||||
# Define linker script file here
|
# Define linker script file here
|
||||||
LDSCRIPT= $(PORTLD)/STM32F407xG.ld
|
LDSCRIPT= $(PORTLD)/STM32F407xG.ld
|
||||||
|
#LDSCRIPT= $(PORTLD)/STM32F407xG_CCM.ld
|
||||||
|
|
||||||
# C sources that can be compiled in ARM or THUMB mode depending on the global
|
# C sources that can be compiled in ARM or THUMB mode depending on the global
|
||||||
# setting.
|
# setting.
|
||||||
|
@ -77,6 +84,7 @@ CSRC = $(PORTSRC) \
|
||||||
$(HALSRC) \
|
$(HALSRC) \
|
||||||
$(PLATFORMSRC) \
|
$(PLATFORMSRC) \
|
||||||
$(BOARDSRC) \
|
$(BOARDSRC) \
|
||||||
|
$(CHIBIOS)/os/various/chprintf.c \
|
||||||
extfunc.c main.c
|
extfunc.c main.c
|
||||||
|
|
||||||
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
|
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
|
||||||
|
@ -197,6 +205,13 @@ ULIBS =
|
||||||
# End of user defines
|
# End of user defines
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
|
ifeq ($(USE_FPU),yes)
|
||||||
|
USE_OPT += -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -fsingle-precision-constant
|
||||||
|
DDEFS += -DCORTEX_USE_FPU=TRUE
|
||||||
|
else
|
||||||
|
DDEFS += -DCORTEX_USE_FPU=FALSE
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(USE_FWLIB),yes)
|
ifeq ($(USE_FWLIB),yes)
|
||||||
include $(CHIBIOS)/ext/stm32lib/stm32lib.mk
|
include $(CHIBIOS)/ext/stm32lib/stm32lib.mk
|
||||||
CSRC += $(STM32SRC)
|
CSRC += $(STM32SRC)
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
# Compiler options here.
|
# Compiler options here.
|
||||||
ifeq ($(USE_OPT),)
|
ifeq ($(USE_OPT),)
|
||||||
USE_OPT = -O0 -ggdb -fomit-frame-pointer -falign-functions=16 -mhard-float -mfpu=fpv4-sp-d16 -fsingle-precision-constant
|
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# C specific options here (added to USE_OPT).
|
# C specific options here (added to USE_OPT).
|
||||||
|
@ -41,6 +41,12 @@ endif
|
||||||
# Architecture or project specific options
|
# Architecture or project specific options
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Enables the use of FPU on Cortex-M4.
|
||||||
|
# Enable this if you really want to use the STM FWLib.
|
||||||
|
ifeq ($(USE_FPU),)
|
||||||
|
USE_FPU = no
|
||||||
|
endif
|
||||||
|
|
||||||
# Enable this if you really want to use the STM FWLib.
|
# Enable this if you really want to use the STM FWLib.
|
||||||
ifeq ($(USE_FWLIB),)
|
ifeq ($(USE_FWLIB),)
|
||||||
USE_FWLIB = no
|
USE_FWLIB = no
|
||||||
|
@ -64,9 +70,11 @@ include $(CHIBIOS)/os/hal/platforms/STM32F4xx/platform.mk
|
||||||
include $(CHIBIOS)/os/hal/hal.mk
|
include $(CHIBIOS)/os/hal/hal.mk
|
||||||
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F4xx/port.mk
|
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F4xx/port.mk
|
||||||
include $(CHIBIOS)/os/kernel/kernel.mk
|
include $(CHIBIOS)/os/kernel/kernel.mk
|
||||||
|
include $(CHIBIOS)/test/test.mk
|
||||||
|
|
||||||
# Define linker script file here
|
# Define linker script file here
|
||||||
LDSCRIPT= $(PORTLD)/STM32F407xG.ld
|
LDSCRIPT= $(PORTLD)/STM32F407xG.ld
|
||||||
|
#LDSCRIPT= $(PORTLD)/STM32F407xG_CCM.ld
|
||||||
|
|
||||||
# C sources that can be compiled in ARM or THUMB mode depending on the global
|
# C sources that can be compiled in ARM or THUMB mode depending on the global
|
||||||
# setting.
|
# setting.
|
||||||
|
@ -76,7 +84,8 @@ CSRC = $(PORTSRC) \
|
||||||
$(HALSRC) \
|
$(HALSRC) \
|
||||||
$(PLATFORMSRC) \
|
$(PLATFORMSRC) \
|
||||||
$(BOARDSRC) \
|
$(BOARDSRC) \
|
||||||
main.c
|
$(CHIBIOS)/os/various/chprintf.c \
|
||||||
|
main.c
|
||||||
|
|
||||||
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
|
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
|
||||||
# setting.
|
# setting.
|
||||||
|
@ -196,6 +205,13 @@ ULIBS =
|
||||||
# End of user defines
|
# End of user defines
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
|
ifeq ($(USE_FPU),yes)
|
||||||
|
USE_OPT += -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -fsingle-precision-constant
|
||||||
|
DDEFS += -DCORTEX_USE_FPU=TRUE
|
||||||
|
else
|
||||||
|
DDEFS += -DCORTEX_USE_FPU=FALSE
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(USE_FWLIB),yes)
|
ifeq ($(USE_FWLIB),yes)
|
||||||
include $(CHIBIOS)/ext/stm32lib/stm32lib.mk
|
include $(CHIBIOS)/ext/stm32lib/stm32lib.mk
|
||||||
CSRC += $(STM32SRC)
|
CSRC += $(STM32SRC)
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
# Compiler options here.
|
# Compiler options here.
|
||||||
ifeq ($(USE_OPT),)
|
ifeq ($(USE_OPT),)
|
||||||
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16 -mhard-float -mfpu=fpv4-sp-d16 -fsingle-precision-constant
|
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# C specific options here (added to USE_OPT).
|
# C specific options here (added to USE_OPT).
|
||||||
|
@ -41,6 +41,12 @@ endif
|
||||||
# Architecture or project specific options
|
# Architecture or project specific options
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Enables the use of FPU on Cortex-M4.
|
||||||
|
# Enable this if you really want to use the STM FWLib.
|
||||||
|
ifeq ($(USE_FPU),)
|
||||||
|
USE_FPU = no
|
||||||
|
endif
|
||||||
|
|
||||||
# Enable this if you really want to use the STM FWLib.
|
# Enable this if you really want to use the STM FWLib.
|
||||||
ifeq ($(USE_FWLIB),)
|
ifeq ($(USE_FWLIB),)
|
||||||
USE_FWLIB = no
|
USE_FWLIB = no
|
||||||
|
@ -64,10 +70,11 @@ include $(CHIBIOS)/os/hal/platforms/STM32F4xx/platform.mk
|
||||||
include $(CHIBIOS)/os/hal/hal.mk
|
include $(CHIBIOS)/os/hal/hal.mk
|
||||||
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F4xx/port.mk
|
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F4xx/port.mk
|
||||||
include $(CHIBIOS)/os/kernel/kernel.mk
|
include $(CHIBIOS)/os/kernel/kernel.mk
|
||||||
#include $(CHIBIOS)/test/test.mk
|
include $(CHIBIOS)/test/test.mk
|
||||||
|
|
||||||
# Define linker script file here
|
# Define linker script file here
|
||||||
LDSCRIPT= $(PORTLD)/STM32F407xG.ld
|
LDSCRIPT= $(PORTLD)/STM32F407xG.ld
|
||||||
|
#LDSCRIPT= $(PORTLD)/STM32F407xG_CCM.ld
|
||||||
|
|
||||||
# C sources that can be compiled in ARM or THUMB mode depending on the global
|
# C sources that can be compiled in ARM or THUMB mode depending on the global
|
||||||
# setting.
|
# setting.
|
||||||
|
@ -77,6 +84,7 @@ CSRC = $(PORTSRC) \
|
||||||
$(HALSRC) \
|
$(HALSRC) \
|
||||||
$(PLATFORMSRC) \
|
$(PLATFORMSRC) \
|
||||||
$(BOARDSRC) \
|
$(BOARDSRC) \
|
||||||
|
$(CHIBIOS)/os/various/chprintf.c \
|
||||||
main.c
|
main.c
|
||||||
|
|
||||||
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
|
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
|
||||||
|
@ -197,6 +205,13 @@ ULIBS =
|
||||||
# End of user defines
|
# End of user defines
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
|
ifeq ($(USE_FPU),yes)
|
||||||
|
USE_OPT += -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -fsingle-precision-constant
|
||||||
|
DDEFS += -DCORTEX_USE_FPU=TRUE
|
||||||
|
else
|
||||||
|
DDEFS += -DCORTEX_USE_FPU=FALSE
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(USE_FWLIB),yes)
|
ifeq ($(USE_FWLIB),yes)
|
||||||
include $(CHIBIOS)/ext/stm32lib/stm32lib.mk
|
include $(CHIBIOS)/ext/stm32lib/stm32lib.mk
|
||||||
CSRC += $(STM32SRC)
|
CSRC += $(STM32SRC)
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
# Compiler options here.
|
# Compiler options here.
|
||||||
ifeq ($(USE_OPT),)
|
ifeq ($(USE_OPT),)
|
||||||
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16 -mhard-float -mfpu=fpv4-sp-d16 -fsingle-precision-constant
|
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# C specific options here (added to USE_OPT).
|
# C specific options here (added to USE_OPT).
|
||||||
|
@ -41,6 +41,12 @@ endif
|
||||||
# Architecture or project specific options
|
# Architecture or project specific options
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Enables the use of FPU on Cortex-M4.
|
||||||
|
# Enable this if you really want to use the STM FWLib.
|
||||||
|
ifeq ($(USE_FPU),)
|
||||||
|
USE_FPU = no
|
||||||
|
endif
|
||||||
|
|
||||||
# Enable this if you really want to use the STM FWLib.
|
# Enable this if you really want to use the STM FWLib.
|
||||||
ifeq ($(USE_FWLIB),)
|
ifeq ($(USE_FWLIB),)
|
||||||
USE_FWLIB = no
|
USE_FWLIB = no
|
||||||
|
@ -64,10 +70,11 @@ include $(CHIBIOS)/os/hal/platforms/STM32F4xx/platform.mk
|
||||||
include $(CHIBIOS)/os/hal/hal.mk
|
include $(CHIBIOS)/os/hal/hal.mk
|
||||||
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F4xx/port.mk
|
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F4xx/port.mk
|
||||||
include $(CHIBIOS)/os/kernel/kernel.mk
|
include $(CHIBIOS)/os/kernel/kernel.mk
|
||||||
#include $(CHIBIOS)/test/test.mk
|
include $(CHIBIOS)/test/test.mk
|
||||||
|
|
||||||
# Define linker script file here
|
# Define linker script file here
|
||||||
LDSCRIPT= $(PORTLD)/STM32F407xG.ld
|
LDSCRIPT= $(PORTLD)/STM32F407xG.ld
|
||||||
|
#LDSCRIPT= $(PORTLD)/STM32F407xG_CCM.ld
|
||||||
|
|
||||||
# C sources that can be compiled in ARM or THUMB mode depending on the global
|
# C sources that can be compiled in ARM or THUMB mode depending on the global
|
||||||
# setting.
|
# setting.
|
||||||
|
@ -77,8 +84,7 @@ CSRC = $(PORTSRC) \
|
||||||
$(HALSRC) \
|
$(HALSRC) \
|
||||||
$(PLATFORMSRC) \
|
$(PLATFORMSRC) \
|
||||||
$(BOARDSRC) \
|
$(BOARDSRC) \
|
||||||
$(CHIBIOS)/os/various/evtimer.c \
|
$(CHIBIOS)/os/various/chprintf.c \
|
||||||
$(CHIBIOS)/os/various/syscalls.c \
|
|
||||||
main.c
|
main.c
|
||||||
|
|
||||||
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
|
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
|
||||||
|
@ -199,6 +205,13 @@ ULIBS =
|
||||||
# End of user defines
|
# End of user defines
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
|
ifeq ($(USE_FPU),yes)
|
||||||
|
USE_OPT += -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -fsingle-precision-constant
|
||||||
|
DDEFS += -DCORTEX_USE_FPU=TRUE
|
||||||
|
else
|
||||||
|
DDEFS += -DCORTEX_USE_FPU=FALSE
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(USE_FWLIB),yes)
|
ifeq ($(USE_FWLIB),yes)
|
||||||
include $(CHIBIOS)/ext/stm32lib/stm32lib.mk
|
include $(CHIBIOS)/ext/stm32lib/stm32lib.mk
|
||||||
CSRC += $(STM32SRC)
|
CSRC += $(STM32SRC)
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
# Compiler options here.
|
# Compiler options here.
|
||||||
ifeq ($(USE_OPT),)
|
ifeq ($(USE_OPT),)
|
||||||
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16 -mhard-float -mfpu=fpv4-sp-d16 -fsingle-precision-constant
|
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# C specific options here (added to USE_OPT).
|
# C specific options here (added to USE_OPT).
|
||||||
|
@ -41,6 +41,12 @@ endif
|
||||||
# Architecture or project specific options
|
# Architecture or project specific options
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Enables the use of FPU on Cortex-M4.
|
||||||
|
# Enable this if you really want to use the STM FWLib.
|
||||||
|
ifeq ($(USE_FPU),)
|
||||||
|
USE_FPU = no
|
||||||
|
endif
|
||||||
|
|
||||||
# Enable this if you really want to use the STM FWLib.
|
# Enable this if you really want to use the STM FWLib.
|
||||||
ifeq ($(USE_FWLIB),)
|
ifeq ($(USE_FWLIB),)
|
||||||
USE_FWLIB = no
|
USE_FWLIB = no
|
||||||
|
@ -64,10 +70,11 @@ include $(CHIBIOS)/os/hal/platforms/STM32F4xx/platform.mk
|
||||||
include $(CHIBIOS)/os/hal/hal.mk
|
include $(CHIBIOS)/os/hal/hal.mk
|
||||||
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F4xx/port.mk
|
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F4xx/port.mk
|
||||||
include $(CHIBIOS)/os/kernel/kernel.mk
|
include $(CHIBIOS)/os/kernel/kernel.mk
|
||||||
#include $(CHIBIOS)/test/test.mk
|
include $(CHIBIOS)/test/test.mk
|
||||||
|
|
||||||
# Define linker script file here
|
# Define linker script file here
|
||||||
LDSCRIPT= $(PORTLD)/STM32F407xG.ld
|
LDSCRIPT= $(PORTLD)/STM32F407xG.ld
|
||||||
|
#LDSCRIPT= $(PORTLD)/STM32F407xG_CCM.ld
|
||||||
|
|
||||||
# C sources that can be compiled in ARM or THUMB mode depending on the global
|
# C sources that can be compiled in ARM or THUMB mode depending on the global
|
||||||
# setting.
|
# setting.
|
||||||
|
@ -77,6 +84,7 @@ CSRC = $(PORTSRC) \
|
||||||
$(HALSRC) \
|
$(HALSRC) \
|
||||||
$(PLATFORMSRC) \
|
$(PLATFORMSRC) \
|
||||||
$(BOARDSRC) \
|
$(BOARDSRC) \
|
||||||
|
$(CHIBIOS)/os/various/chprintf.c \
|
||||||
main.c
|
main.c
|
||||||
|
|
||||||
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
|
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
|
||||||
|
@ -197,6 +205,13 @@ ULIBS =
|
||||||
# End of user defines
|
# End of user defines
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
|
ifeq ($(USE_FPU),yes)
|
||||||
|
USE_OPT += -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -fsingle-precision-constant
|
||||||
|
DDEFS += -DCORTEX_USE_FPU=TRUE
|
||||||
|
else
|
||||||
|
DDEFS += -DCORTEX_USE_FPU=FALSE
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(USE_FWLIB),yes)
|
ifeq ($(USE_FWLIB),yes)
|
||||||
include $(CHIBIOS)/ext/stm32lib/stm32lib.mk
|
include $(CHIBIOS)/ext/stm32lib/stm32lib.mk
|
||||||
CSRC += $(STM32SRC)
|
CSRC += $(STM32SRC)
|
||||||
|
|
Loading…
Reference in New Issue