summaryrefslogtreecommitdiff
path: root/ports/stm32f4/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'ports/stm32f4/makefile')
-rw-r--r--ports/stm32f4/makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/ports/stm32f4/makefile b/ports/stm32f4/makefile
index c3701b9..df447d1 100644
--- a/ports/stm32f4/makefile
+++ b/ports/stm32f4/makefile
@@ -1,11 +1,15 @@
# Makefile for the STM32F4 port
+PREFIX = arm-none-eabi-
+
# These variables are dependent on the target MCU
LDSCRIPT=STM32F405RGTx_FLASH.ld
ASM_FILE=startup_stm32f405xx.s
C_DEFS += \
-DSTM32F405xx
+LDFLAGS = $(MCU) -specs=nosys.specs -specs=nano.specs -u _printf_float -T$(PORT_DIR)/$(LDSCRIPT) $(LIBDIR) $(LIBS) -Wl,-Map=$(BUILD_DIR)/$(TARGET).map,--cref -Wl,--gc-sections
+
FLOAT-ABI = -mfloat-abi=hard
CPU = -mcpu=cortex-m4
FPU = -mfpu=fpv4-sp-d16
@@ -34,6 +38,7 @@ lib/f4/stm32f4xx_hal_uart.c \
ports/stm32f4/src/stm32f4xx_it.c \
ports/stm32f4/src/stm32f4xx_hal_msp.c \
ports/stm32f4/src/system_stm32f4xx.c \
+ports/stm32f4/src/stream_i2c.c
C_INCLUDES += \
-Ilib/f4 \