diff options
| author | Aditya Naik | 2020-06-24 10:53:58 -0400 |
|---|---|---|
| committer | Aditya Naik | 2020-06-24 10:53:58 -0400 |
| commit | da3f69722aa088a4530095d94a6d206c1ce06e03 (patch) | |
| tree | 823f7899a2d59af38ac3472e9e2e092abd4b47a9 /ports/stm32f4/makefile | |
| parent | 7897fd742ffc4afb82faa5fc8f3a39b12b8c667b (diff) | |
| parent | 0915882d1ee834d2cc7c8d4ca9bcdb7495dbe1a1 (diff) | |
Master mergerefactor
Diffstat (limited to 'ports/stm32f4/makefile')
| -rw-r--r-- | ports/stm32f4/makefile | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/ports/stm32f4/makefile b/ports/stm32f4/makefile new file mode 100644 index 0000000..c3701b9 --- /dev/null +++ b/ports/stm32f4/makefile @@ -0,0 +1,42 @@ +# Makefile for the STM32F4 port + +# These variables are dependent on the target MCU +LDSCRIPT=STM32F405RGTx_FLASH.ld +ASM_FILE=startup_stm32f405xx.s +C_DEFS += \ +-DSTM32F405xx + +FLOAT-ABI = -mfloat-abi=hard +CPU = -mcpu=cortex-m4 +FPU = -mfpu=fpv4-sp-d16 +MCU = $(CPU) -mthumb $(FPU) $(FLOAT-ABI) + +# Library files common to all F4 MCUs +C_SOURCES += \ +lib/f4/stm32f4xx_hal_i2c.c \ +lib/f4/stm32f4xx_hal_i2c_ex.c \ +lib/f4/stm32f4xx_hal_rcc.c \ +lib/f4/stm32f4xx_hal_rcc_ex.c \ +lib/f4/stm32f4xx_hal_flash.c \ +lib/f4/stm32f4xx_hal_flash_ex.c \ +lib/f4/stm32f4xx_hal_flash_ramfunc.c \ +lib/f4/stm32f4xx_hal_gpio.c \ +lib/f4/stm32f4xx_hal_dma_ex.c \ +lib/f4/stm32f4xx_hal_dma.c \ +lib/f4/stm32f4xx_hal_pwr.c \ +lib/f4/stm32f4xx_hal_pwr_ex.c \ +lib/f4/stm32f4xx_hal_cortex.c \ +lib/f4/stm32f4xx_hal.c \ +lib/f4/stm32f4xx_hal_exti.c \ +lib/f4/stm32f4xx_hal_tim.c \ +lib/f4/stm32f4xx_hal_tim_ex.c \ +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 \ + +C_INCLUDES += \ +-Ilib/f4 \ +-Ilib/f4/Legacy \ +-Ilib/cmsis/f4 \ +-Iports/stm32f4/src |
