aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARMCM3-STM32F103-GCC
diff options
context:
space:
mode:
Diffstat (limited to 'demos/ARMCM3-STM32F103-GCC')
-rw-r--r--demos/ARMCM3-STM32F103-GCC/Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/demos/ARMCM3-STM32F103-GCC/Makefile b/demos/ARMCM3-STM32F103-GCC/Makefile
index 2e65c9c16..9129cd687 100644
--- a/demos/ARMCM3-STM32F103-GCC/Makefile
+++ b/demos/ARMCM3-STM32F103-GCC/Makefile
@@ -38,7 +38,7 @@ endif
# Enable this if you really want to use the STM FWLib.
ifeq ($(USE_FWLIB),)
- USE_FWLIB = no
+ USE_FWLIB = yes
endif
#
@@ -69,13 +69,13 @@ CSRC = ${PORTSRC} \
${CHIBIOS}/os/io/pal.c \
${CHIBIOS}/os/io/serial.c \
${CHIBIOS}/os/io/spi.c \
+ ${CHIBIOS}/os/io/mmc_spi.c \
${CHIBIOS}/os/io/platforms/STM32/pal_lld.c \
${CHIBIOS}/os/io/platforms/STM32/serial_lld.c \
${CHIBIOS}/os/io/platforms/STM32/spi_lld.c \
${CHIBIOS}/os/io/platforms/STM32/stm32_dma.c \
${CHIBIOS}/os/various/evtimer.c \
- board.c main.c
-
+ board.c main.c
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
# setting.
@@ -108,8 +108,7 @@ ASMSRC = $(PORTASM) \
INCDIR = $(PORTINC) $(KERNINC) $(TESTINC) \
${CHIBIOS}/os/io \
${CHIBIOS}/os/io/platforms/STM32 \
- ${CHIBIOS}/os/various \
- ./stm32lib/inc
+ ${CHIBIOS}/os/various
#
# Project, sources and paths
@@ -198,8 +197,9 @@ ULIBS =
##############################################################################
ifeq ($(USE_FWLIB),yes)
- include ./stm32lib/stm32lib.mk
+ include ${CHIBIOS}/ext/stm32lib/stm32lib.mk
CSRC += ${STM32SRC}
+ INCDIR += ${STM32INC}
USE_OPT += -DUSE_STDPERIPH_DRIVER
endif