diff options
author | Fabien Poussin <fabien.poussin@gmail.com> | 2018-03-15 14:46:29 +0100 |
---|---|---|
committer | Fabien Poussin <fabien.poussin@gmail.com> | 2018-03-15 14:46:29 +0100 |
commit | 0a83c4adda4898a74e5b87ddd6968522ec614602 (patch) | |
tree | 4c530f5d95d7bd40dadf7e678e7176ad5ff2801b /testhal/STM32/STM32F4xx/FSMC_SRAM/Makefile | |
parent | 106edc8ddb1e4929c11ece3ecc64ecfd0b7047ab (diff) | |
download | ChibiOS-Contrib-0a83c4adda4898a74e5b87ddd6968522ec614602.tar.gz ChibiOS-Contrib-0a83c4adda4898a74e5b87ddd6968522ec614602.tar.bz2 ChibiOS-Contrib-0a83c4adda4898a74e5b87ddd6968522ec614602.zip |
Fixed STM32F4 FSMC examples
Diffstat (limited to 'testhal/STM32/STM32F4xx/FSMC_SRAM/Makefile')
-rw-r--r-- | testhal/STM32/STM32F4xx/FSMC_SRAM/Makefile | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/testhal/STM32/STM32F4xx/FSMC_SRAM/Makefile b/testhal/STM32/STM32F4xx/FSMC_SRAM/Makefile index c1eae62..28e3d68 100644 --- a/testhal/STM32/STM32F4xx/FSMC_SRAM/Makefile +++ b/testhal/STM32/STM32F4xx/FSMC_SRAM/Makefile @@ -30,7 +30,7 @@ endif # Enable this if you want link time optimizations (LTO) ifeq ($(USE_LTO),) - USE_LTO = yes + USE_LTO = no endif # If enabled, this option allows to compile the application in THUMB mode. @@ -93,12 +93,13 @@ include $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f4xx.m # HAL-OSAL files (optional). include $(CHIBIOS_CONTRIB)/os/hal/hal.mk include $(CHIBIOS_CONTRIB)/os/hal/ports/STM32/STM32F4xx/platform.mk -include $(CHIBIOS)/os/hal/boards/ST_STM32F4_DISCOVERY/board.mk +include $(CHIBIOS_CONTRIB)/os/hal/boards/NONSTANDARD_STM32F4_BARTHESS2/board.mk include $(CHIBIOS)/os/hal/osal/rt/osal.mk # RTOS files (optional). include $(CHIBIOS)/os/rt/rt.mk include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk # Other files (optional). +include $(CHIBIOS)/os/various/cpp_wrappers/chcpp.mk #include $(CHIBIOS)/test/lib/test.mk #include $(CHIBIOS)/test/rt/rt_test.mk #include $(CHIBIOS)/test/oslib/oslib_test.mk @@ -116,11 +117,14 @@ CSRC = $(STARTUPSRC) \ $(PLATFORMSRC) \ $(BOARDSRC) \ $(TESTSRC) \ - main.c + main.c \ + membench.c \ + memcpy_dma.c # C++ sources that can be compiled in ARM or THUMB mode depending on the global # setting. -CPPSRC = +CPPSRC = $(CHCPPSRC) \ + $(CHIBIOS_CONTRIB)/os/various/memtest.cpp # C sources to be compiled in ARM mode regardless of the global setting. # NOTE: Mixing ARM and THUMB mode enables the -mthumb-interwork compiler @@ -149,6 +153,7 @@ ASMXSRC = $(STARTUPASM) $(PORTASM) $(OSALASM) INCDIR = $(CHIBIOS)/os/license \ $(STARTUPINC) $(KERNINC) $(PORTINC) $(OSALINC) \ $(HALINC) $(PLATFORMINC) $(BOARDINC) $(TESTINC) \ + $(CHIBIOS)/os/various/cpp_wrappers \ $(CHIBIOS_CONTRIB)/os/various # |