File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ ST_FAMILY = f3
2
+
3
+ ST_CMSIS = hw/mcu/st/cmsis_device_$(ST_FAMILY )
4
+ ST_HAL_DRIVER = hw/mcu/st/stm32$(ST_FAMILY ) xx_hal_driver
5
+
6
+ DEPS_SUBMODULES += \
7
+ lib/CMSIS_5 \
8
+ $(ST_CMSIS ) \
9
+ $(ST_HAL_DRIVER )
10
+
11
+ include $(TOP ) /$(BOARD_PATH ) /board.mk
12
+
13
+ CFLAGS += \
14
+ -flto \
15
+ -mthumb \
16
+ -mabi=aapcs \
17
+ -mcpu=cortex-m4 \
18
+ -mfloat-abi=hard \
19
+ -mfpu=fpv4-sp-d16 \
20
+ -nostdlib -nostartfiles \
21
+ -DCFG_TUSB_MCU=OPT_MCU_STM32F3
22
+
23
+ # mcu driver cause following warnings
24
+ CFLAGS += -Wno-error=unused-parameter
25
+
26
+ SRC_C += \
27
+ src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c \
28
+ $(ST_CMSIS ) /Source/Templates/system_stm32$(ST_FAMILY ) xx.c \
29
+ $(ST_HAL_DRIVER ) /Src/stm32$(ST_FAMILY ) xx_hal.c \
30
+ $(ST_HAL_DRIVER ) /Src/stm32$(ST_FAMILY ) xx_hal_cortex.c \
31
+ $(ST_HAL_DRIVER ) /Src/stm32$(ST_FAMILY ) xx_hal_rcc.c \
32
+ $(ST_HAL_DRIVER ) /Src/stm32$(ST_FAMILY ) xx_hal_rcc_ex.c \
33
+ $(ST_HAL_DRIVER ) /Src/stm32$(ST_FAMILY ) xx_hal_gpio.c
34
+
35
+ INC += \
36
+ $(TOP ) /lib/CMSIS_5/CMSIS/Core/Include \
37
+ $(TOP ) /$(ST_CMSIS ) /Include \
38
+ $(TOP ) /$(ST_HAL_DRIVER ) /Inc \
39
+ $(TOP ) /$(BOARD_PATH )
40
+
41
+ # For freeRTOS port source
42
+ FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH ) /ARM_CM4F
You can’t perform that action at this time.
0 commit comments