aboutsummaryrefslogtreecommitdiff
path: root/stmhal/Makefile
diff options
context:
space:
mode:
authorDave Hylands2015-07-28 08:36:26 -0700
committerDamien George2015-07-30 00:38:25 +0100
commitea8bf8105812b36fbf1596a78c6e14aa0a0c5a36 (patch)
tree6a8f4a024791052bf50a0328f994d311acd37b49 /stmhal/Makefile
parentf243851ccdbb686508f37a573e3ba46da5fffa0c (diff)
stmhal: Replace #include "stm32f4xx_hal.h" with #include STM32_HAL_H.
Diffstat (limited to 'stmhal/Makefile')
-rw-r--r--stmhal/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/stmhal/Makefile b/stmhal/Makefile
index 4931ebf80..b1424a61e 100644
--- a/stmhal/Makefile
+++ b/stmhal/Makefile
@@ -47,6 +47,7 @@ INC += -I../lib/timeutils
CFLAGS_CORTEX_M4 = -mthumb -mtune=cortex-m4 -mabi=aapcs-linux -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fsingle-precision-constant -Wdouble-promotion
CFLAGS = $(INC) -Wall -Wpointer-arith -Werror -ansi -std=gnu99 -nostdlib $(CFLAGS_MOD) $(CFLAGS_CORTEX_M4) $(COPT)
CFLAGS += -Iboards/$(BOARD)
+CFLAGS += -DSTM32_HAL_H='<stm32$(MCU_SERIES)xx_hal.h>'
LDFLAGS = -nostdlib -T $(LD_FILE) -Map=$(@:.elf=.map) --cref
LIBS =