aboutsummaryrefslogtreecommitdiffstats
path: root/testex/STM32/STM32F3xx/SPI-L3GD20/Makefile
diff options
context:
space:
mode:
authorRocco Marco Guglielmi <roccomarco.guglielmi@gmail.com>2018-03-08 15:59:00 +0000
committerRocco Marco Guglielmi <roccomarco.guglielmi@gmail.com>2018-03-08 15:59:00 +0000
commitc02e7a5abc74eafc69e7a134bf90e0dda6069c96 (patch)
tree9f70d5ec53aadf6158641624365fea350d466259 /testex/STM32/STM32F3xx/SPI-L3GD20/Makefile
parent3f7504385e93915d8bcec72867f095ca3661a0b3 (diff)
downloadChibiOS-c02e7a5abc74eafc69e7a134bf90e0dda6069c96.tar.gz
ChibiOS-c02e7a5abc74eafc69e7a134bf90e0dda6069c96.tar.bz2
ChibiOS-c02e7a5abc74eafc69e7a134bf90e0dda6069c96.zip
Updated STM32/STM32F3xx/SPI-L3GD20
git-svn-id: https://svn.code.sf.net/p/chibios/svn2/trunk@11644 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'testex/STM32/STM32F3xx/SPI-L3GD20/Makefile')
-rw-r--r--testex/STM32/STM32F3xx/SPI-L3GD20/Makefile34
1 files changed, 15 insertions, 19 deletions
diff --git a/testex/STM32/STM32F3xx/SPI-L3GD20/Makefile b/testex/STM32/STM32F3xx/SPI-L3GD20/Makefile
index ba5a5012e..7b0d22824 100644
--- a/testex/STM32/STM32F3xx/SPI-L3GD20/Makefile
+++ b/testex/STM32/STM32F3xx/SPI-L3GD20/Makefile
@@ -87,6 +87,9 @@ PROJECT = ch
# Imported source files and paths
CHIBIOS = ../../../..
+
+# Licensing files.
+include $(CHIBIOS)/os/license/license.mk
# Startup files.
include $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f3xx.mk
# HAL-OSAL files (optional).
@@ -97,31 +100,23 @@ 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).
+# EX files (optional).
include $(CHIBIOS)/os/ex/ST/l3gd20.mk
+# Other files (optional).
include $(CHIBIOS)/os/hal/lib/streams/streams.mk
-include $(CHIBIOS)/os/various/shell/shell.mk
# Define linker script file here
LDSCRIPT= $(STARTUPLD)/STM32F303xC.ld
# C sources that can be compiled in ARM or THUMB mode depending on the global
# setting.
-CSRC = $(STARTUPSRC) \
- $(KERNSRC) \
- $(PORTSRC) \
- $(OSALSRC) \
- $(HALSRC) \
- $(PLATFORMSRC) \
- $(BOARDSRC) \
- $(L3GD20SRC) \
- $(STREAMSSRC) \
- $(SHELLSRC) \
- usbcfg.c main.c
+CSRC = $(ALLCSRC) \
+ $(TESTSRC) \
+ main.c
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
# setting.
-CPPSRC =
+CPPSRC = $(AllCPPSRC)
# C sources to be compiled in ARM mode regardless of the global setting.
# NOTE: Mixing ARM and THUMB mode enables the -mthumb-interwork compiler
@@ -147,10 +142,11 @@ TCPPSRC =
ASMSRC =
ASMXSRC = $(STARTUPASM) $(PORTASM) $(OSALASM)
-INCDIR = $(CHIBIOS)/os/license \
- $(STARTUPINC) $(KERNINC) $(PORTINC) $(OSALINC) \
- $(HALINC) $(PLATFORMINC) $(BOARDINC) $(L3GD20INC) \
- $(STREAMSINC) $(SHELLINC)
+# List ASM source files here
+ASMSRC = $(ALLASMSRC)
+ASMXSRC = $(ALLXASMSRC)
+
+INCDIR = $(ALLINC) $(TESTINC)
#
# Project, sources and paths
@@ -200,7 +196,7 @@ CPPWARN = -Wall -Wextra -Wundef
#
# List all user C define here, like -D_DEBUG=1
-UDEFS = -DCHPRINTF_USE_FLOAT=1 -DSHELL_CMD_TEST_ENABLED=0 \
+UDEFS = -DCHPRINTF_USE_FLOAT=1 \
-DL3GD20_USE_ADVANCED=0 -DL3GD20_SHARED_SPI=0
# Define ASM defines here