aboutsummaryrefslogtreecommitdiff
path: root/stmhal/Makefile
diff options
context:
space:
mode:
authorDave Hylands2015-08-06 00:03:45 -0700
committerDamien George2015-08-07 08:54:14 +0100
commit872f9af6aed49fa088d89152b983506285e1d34b (patch)
tree90f10e11dd47ac2965da6fda9667dcd9af3603ac /stmhal/Makefile
parent8f59bacb92cb705d79f08f29f4d64c0a774ab78f (diff)
stmhal: Use CMSIS_MCU definition from mpconfigboard.mk
This needs to land afte #1407 lands, since #1407 is where the CMSIS_MCU was defined.
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 c3460c8c5..5f31be577 100644
--- a/stmhal/Makefile
+++ b/stmhal/Makefile
@@ -49,6 +49,7 @@ CFLAGS_MCU_f4 = $(CFLAGS_CORTEX_M) -mtune=cortex-m4 -mcpu=cortex-m4 -DMCU_SERIES
CFLAGS_MCU_f7 = $(CFLAGS_CORTEX_M) -mtune=cortex-m7 -mcpu=cortex-m7 -DMCU_SERIES_F7
CFLAGS = $(INC) -Wall -Wpointer-arith -Werror -ansi -std=gnu99 -nostdlib $(CFLAGS_MOD)
+CFLAGS += -D$(CMSIS_MCU)
CFLAGS += $(CFLAGS_MCU_$(MCU_SERIES))
CFLAGS += $(COPT)
CFLAGS += -Iboards/$(BOARD)