diff options
| author | Dave Hylands | 2015-07-28 11:13:33 -0700 |
|---|---|---|
| committer | Damien George | 2015-07-30 00:38:32 +0100 |
| commit | 92d4b51ad5d828930334f87d9619a78b5877a384 (patch) | |
| tree | b055ba812bfce720130c6c52272bde38e80a00c9 /stmhal/Makefile | |
| parent | 7e7fb0b7a3d716062281c2366de97a41a1ea87c1 (diff) | |
stmhal: Add STM32F7DISC and associated changes.
Diffstat (limited to 'stmhal/Makefile')
| -rw-r--r-- | stmhal/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/stmhal/Makefile b/stmhal/Makefile index 78498d9e8..5d35bfa4d 100644 --- a/stmhal/Makefile +++ b/stmhal/Makefile @@ -44,8 +44,13 @@ INC += -I../lib/mp-readline INC += -I../lib/netutils 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_CORTEX_M = -mthumb -mabi=aapcs-linux -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fsingle-precision-constant -Wdouble-promotion +CFLAGS_MCU_f4 = $(CFLAGS_CORTEX_M) -mtune=cortex-m4 -mcpu=cortex-m4 +CFLAGS_MCU_f7 = $(CFLAGS_CORTEX_M) -mtune=cortex-m7 -mcpu=cortex-m7 + +CFLAGS = $(INC) -Wall -Wpointer-arith -Werror -ansi -std=gnu99 -nostdlib $(CFLAGS_MOD) +CFLAGS += $(CFLAGS_MCU_$(MCU_SERIES)) +CFLAGS += $(COPT) CFLAGS += -Iboards/$(BOARD) CFLAGS += -DSTM32_HAL_H='<stm32$(MCU_SERIES)xx_hal.h>' @@ -154,6 +159,7 @@ SRC_C = \ servo.c \ dac.c \ adc.c \ + $(wildcard boards/$(BOARD)/*.c) SRC_O = \ startup_stm32.o \ |
