-
Notifications
You must be signed in to change notification settings - Fork 6
/
stm32h7hal.mk
185 lines (180 loc) · 9.88 KB
/
stm32h7hal.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
#*********************************************************************************************************
#
# 北京翼辉信息技术有限公司
#
# 微型安全实时操作系统
#
# MS-RTOS(TM)
#
# Copyright All Rights Reserved
#
#--------------文件信息--------------------------------------------------------------------------------
#
# 文 件 名: stm32h7hal.mk
#
# 创 建 人: Jiao.jinxing
#
# 文件创建日期: 2020 年 01 月 02 日
#
# 描 述: STM32H7 HAL Makefile
#*********************************************************************************************************
#*********************************************************************************************************
# STM32H7xx HAL source list
#*********************************************************************************************************
STM32H7HAL_SRCS := \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_adc_ex.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cec.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_comp.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_crc.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_crc_ex.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cryp.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cryp_ex.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dac.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dac_ex.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dcmi.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dfsdm.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dfsdm_ex.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma2d.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dsi.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dts.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_eth_ex.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_fdcan.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gfxmmu.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hash.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hash_ex.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hcd.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hrtim.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2s.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2s_ex.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_irda.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_iwdg.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_jpeg.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_lptim.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_ltdc.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_ltdc_ex.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdios.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mmc.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mmc_ex.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_msp_template.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_nand.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_nor.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_opamp.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_opamp_ex.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_ospi.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_otfdec.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pcd.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pcd_ex.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pssi.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_qspi.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_ramecc.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rng.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rng_ex.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rtc.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rtc_ex.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sai.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sai_ex.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sdram.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sd_ex.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_smartcard.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_smartcard_ex.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_smbus.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_spdifrx.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_spi.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_spi_ex.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sram.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_swpmi.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_uart_ex.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_usart.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_usart_ex.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_wwdg.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_adc.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_bdma.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_comp.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_crc.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_crs.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_dac.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_delayblock.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_dma.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_dma2d.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_exti.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_fmc.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_gpio.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_hrtim.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_i2c.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_lptim.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_lpuart.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_mdma.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_opamp.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_pwr.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_rcc.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_rng.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_rtc.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_spi.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_swpmi.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_tim.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_usart.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_usb.c \
src/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_utils.c
#*********************************************************************************************************
# STM32H7xx HAL header file search path
#*********************************************************************************************************
STM32H7HAL_INC_PATH := \
-I"./src/Drivers/STM32H7xx_HAL_Driver/Inc" \
-I"./src/Drivers/CMSIS/Device/ST/STM32H7xx/Include" \
-I"./src/Drivers/CMSIS/Include" \
-I"$(MSRTOS_BASE_PATH)/littlefs/src" \
-I"$(MSRTOS_BASE_PATH)/fatfs/src" \
-I"$(MSRTOS_BASE_PATH)/st_usb_stack/src/usb_host/Core/Inc" \
-I"$(MSRTOS_BASE_PATH)/st_usb_stack/src/usb_host/Class/MSC/Inc" \
-I"$(MSRTOS_BASE_PATH)/st_usb_stack/src/usb_host/Class/HID/Inc" \
-I"$(MSRTOS_BASE_PATH)/esp_at_net/src" \
-I"$(MSRTOS_BASE_PATH)/esp_at_net/src/esp-at-lib/esp_at_lib/src/include" \
-I"$(MSRTOS_BASE_PATH)/esp_at_net/src/esp-at-lib/esp_at_lib/src/include/system/port/msrtos" \
-I"./src/driver" \
-I"./src/common" \
-I"./src" \
-I"."
#*********************************************************************************************************
# STM32H7xx HAL pre-defined macro (eg. -DYOUR_MARCO=1)
#*********************************************************************************************************
STM32H7HAL_DSYMBOL := \
-DUSE_HAL_DRIVER \
-DUSE_FULL_LL_DRIVER \
-DARM_MATH_CM7 \
-D__FPU_PRESENT=1 \
-DDATA_IN_ExtSDRAM
#*********************************************************************************************************
# STM32H7xx HAL depend library (eg. LOCAL_DEPEND_LIB := -la LOCAL_DEPEND_LIB_PATH := -L"Your library search path")
#*********************************************************************************************************
STM32H7HAL_DEPEND_LIB_PATH := \
-L"$(MSRTOS_BASE_PATH)/littlefs/$(OUTDIR)" \
-L"$(MSRTOS_BASE_PATH)/fatfs/$(OUTDIR)" \
-L"$(MSRTOS_BASE_PATH)/st_usb_stack/$(OUTDIR)" \
-L"$(MSRTOS_BASE_PATH)/esp_at_net/$(OUTDIR)" \
-L"$(MSRTOS_BASE_PATH)/lwip_net/$(OUTDIR)"
#*********************************************************************************************************
# End
#*********************************************************************************************************