forked from bigtreetech/BIGTREETECH-TouchScreenFirmware
-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
platformio.ini
285 lines (269 loc) · 8.3 KB
/
platformio.ini
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
;BIGTREE_TFT35_V1_0
;BIGTREE_TFT35_V1_1
;BIGTREE_TFT35_V1_2
;BIGTREE_TFT35_V2_0
;BIGTREE_TFT35_V3_0
;BIGTREE_TFT35_E3_V3_0
;BIGTREE_TFT28_V1_0
;BIGTREE_TFT28_V3_0
;BIGTREE_TFT24_V1_1
;MKS_32_V1_4
;MKS_32_V1_4_NOBL
;MKS_28_Clone_V1_0
[platformio]
src_dir = TFT
boards_dir = buildroot/boards
default_envs = MKS_28_Clone_V1_0
[common]
default_src_filter = +<src/*> -<src/Libraries> -<src/User/Hal/stm32f10x> -<src/User/Hal/stm32f2xx>
build_flags = -fmax-errors=5
-g
-ggdb
-Wno-missing-braces
-DUSE_STDPERIPH_DRIVER=
-D__STATIC_INLINE=
-ITFT/src/Libraries/cmsis/Core-CM3
-ITFT/src/User/Fatfs
-ITFT/src/User/Hal
-ITFT/src/User/Menu
-ITFT/src/User/Variants
-ITFT/src/User
-ITFT/src/User/API
-ITFT/src/User/API/UI
-ITFT/src/User/API/Gcode
-ITFT/src/User/API/Language
-ITFT/src/User/API/Vfs
-ITFT/src/User/Hal
-ITFT/src/User/Hal/STM32_USB_HOST_Library/Core/inc
-ITFT/src/User/Hal/STM32_USB_HOST_Library/Class/MSC/inc
-ITFT/src/User/Hal/STM32_USB_HOST_Library/Usr/inc
-ITFT/src/User/Hal/STM32_USB_OTG_Driver/inc
-DSOFTWARE_VERSION=28.x
[stm32f10x]
default_src_filter = ${common.default_src_filter} +<src/Libraries/cmsis/stm32f10x> +<src/Libraries/fwlib/stm32f10x> +<src/User/Hal/stm32f10x>
build_flags = ${common.build_flags}
-ITFT/src/Libraries/cmsis/stm32f10x
-ITFT/src/Libraries/fwlib/stm32f10x
-ITFT/src/Libraries/fwlib/stm32f10x/inc
-ITFT/src/User/Hal/stm32f10x
[stm32f2xx]
default_src_filter = ${common.default_src_filter} +<src/Libraries/cmsis/stm32f2xx> +<src/Libraries/fwlib/stm32f2xx> +<src/User/Hal/stm32f2xx>
build_flags = ${common.build_flags}
-ITFT/src/Libraries/cmsis/stm32f2xx
-ITFT/src/Libraries/fwlib/stm32f2xx
-ITFT/src/Libraries/fwlib/stm32f2xx/inc
-ITFT/src/User/Hal/stm32f2xx
#
# BIGTREE TFT35 V1.0
#
[env:BIGTREE_TFT35_V1_0]
platform = ststm32
framework = stm32cube
board = STM32F103VC
upload_protocol = cmsis-dap
src_filter = ${stm32f10x.default_src_filter} +<src/Libraries/Startup/stm32f10x_hd>
extra_scripts = pre:buildroot/scripts/custom_filename.py
buildroot/scripts/stm32f10x_0x6000_iap.py
build_flags = ${stm32f10x.build_flags}
-DSTM32F10X_HD=
-DHSE_VALUE=16000000ul
-DVECT_TAB_FLASH=0x08006000
-DHARDWARE="BIQU_TFT35_V1.0"
-DTFT35_V1_0=
#
# BIGTREE TFT35 V1.1
#
[env:BIGTREE_TFT35_V1_1]
platform = ststm32
framework = stm32cube
board = STM32F103VC
upload_protocol = cmsis-dap
src_filter = ${stm32f10x.default_src_filter} +<src/Libraries/Startup/stm32f10x_hd>
extra_scripts = pre:buildroot/scripts/custom_filename.py
buildroot/scripts/stm32f10x_0x6000_iap.py
build_flags = ${stm32f10x.build_flags}
-DSTM32F10X_HD=
-DHSE_VALUE=16000000ul
-DVECT_TAB_FLASH=0x08006000
-DHARDWARE="BIQU_TFT35_V1.1"
-DTFT35_V1_1=
#
# BIGTREE TFT35 V1.2
#
[env:BIGTREE_TFT35_V1_2]
platform = ststm32
framework = stm32cube
board = STM32F103VC
upload_protocol = cmsis-dap
src_filter = ${stm32f10x.default_src_filter} +<src/Libraries/Startup/stm32f10x_hd>
extra_scripts = pre:buildroot/scripts/custom_filename.py
buildroot/scripts/stm32f10x_0x6000_iap.py
build_flags = ${stm32f10x.build_flags}
-DSTM32F10X_HD=
-DHSE_VALUE=16000000ul
-DVECT_TAB_FLASH=0x08006000
-DHARDWARE="BIQU_TFT35_V1.2"
-DTFT35_V1_2=
#
# BIGTREE TFT35 V2.0
#
[env:BIGTREE_TFT35_V2_0]
platform = ststm32
framework = stm32cube
board = STM32F103VC
upload_protocol = cmsis-dap
src_filter = ${stm32f10x.default_src_filter} +<src/Libraries/Startup/stm32f10x_hd>
extra_scripts = pre:buildroot/scripts/custom_filename.py
buildroot/scripts/stm32f10x_0x3000_iap.py
build_flags = ${stm32f10x.build_flags}
-DSTM32F10X_HD=
-DHSE_VALUE=16000000ul
-DVECT_TAB_FLASH=0x08003000
-DHARDWARE="BIQU_TFT35_APP1_V2.0"
-DTFT35_V2_0=
monitor_speed = 250000
#
# BIGTREE TFT35 V3.0
#
[env:BIGTREE_TFT35_V3_0]
platform = ststm32
framework = stm32cube
board = STM32F103VC
upload_protocol = cmsis-dap
src_filter = ${stm32f2xx.default_src_filter} +<src/Libraries/Startup/stm32f2xx>
extra_scripts = pre:buildroot/scripts/custom_filename.py
buildroot/scripts/stm32f2xx_0x8000_iap.py
build_flags = ${stm32f2xx.build_flags}
-DSTM32F2XX=
-DHSE_VALUE=8000000ul
-DVECT_TAB_FLASH=0x08008000
-DHARDWARE="BIGTREE_TFT35_V3.0"
-DTFT35_V3_0=
#
# BIGTREE TFT35 E3 V3.0
#
[env:BIGTREE_TFT35_E3_V3_0]
platform = ststm32
framework = stm32cube
board = STM32F103VC
upload_protocol = cmsis-dap
src_filter = ${stm32f2xx.default_src_filter} +<src/Libraries/Startup/stm32f2xx>
extra_scripts = pre:buildroot/scripts/custom_filename.py
buildroot/scripts/stm32f2xx_0x8000_iap.py
build_flags = ${stm32f2xx.build_flags}
-DSTM32F2XX=
-DHSE_VALUE=8000000ul
-DVECT_TAB_FLASH=0x08008000
-DHARDWARE="BIGTREE_TFT35_V3.0_E3"
-DTFT35_E3_V3_0=
#
# BIGTREE TFT28 V1.0
#
[env:BIGTREE_TFT28_V1_0]
platform = ststm32
framework = stm32cube
board = STM32F103VC
upload_protocol = cmsis-dap
src_filter = ${stm32f10x.default_src_filter} +<src/Libraries/Startup/stm32f10x_hd>
extra_scripts = pre:buildroot/scripts/custom_filename.py
buildroot/scripts/stm32f10x_0x6000_iap.py
build_flags = ${stm32f10x.build_flags}
-DSTM32F10X_HD=
-DHSE_VALUE=16000000ul
-DVECT_TAB_FLASH=0x08006000
-DHARDWARE="BIQU_TFT28_V1.0"
-DTFT28_V1_0=
#
# BIGTREE TFT28 V3.0
#
[env:BIGTREE_TFT28_V3_0]
platform = ststm32
framework = stm32cube
board = STM32F103VC
upload_protocol = cmsis-dap
src_filter = ${stm32f2xx.default_src_filter} +<src/Libraries/Startup/stm32f2xx>
extra_scripts = pre:buildroot/scripts/custom_filename.py
buildroot/scripts/stm32f2xx_0x8000_iap.py
build_flags = ${stm32f2xx.build_flags}
-DSTM32F2XX=
-DHSE_VALUE=8000000ul
-DVECT_TAB_FLASH=0x08008000
-DHARDWARE="BIGTREE_TFT28_V3.0"
-DTFT28_V3_0=
#
# BIGTREE TFT24 V1.1
#
[env:BIGTREE_TFT24_V1_1]
platform = ststm32
framework = stm32cube
board = STM32F105RC
upload_protocol = cmsis-dap
src_filter = ${stm32f10x.default_src_filter} +<src/Libraries/Startup/stm32f10x_cl>
extra_scripts = pre:buildroot/scripts/custom_filename.py
buildroot/scripts/stm32f10x_0x6000_iap.py
build_flags = ${stm32f10x.build_flags}
-DSTM32F10X_CL=
-DHSE_VALUE=8000000ul
-DVECT_TAB_FLASH=0x08006000
-DHARDWARE="BIGTREE_TFT24_V1.1"
-DTFT24_V1_1=
#
# MKS TFT32 V1.4
#
[env:MKS_32_V1_4]
platform = ststm32
framework = stm32cube
board = STM32F107VC
upload_protocol = stlink
debug_tool = stlink
src_filter = ${stm32f10x.default_src_filter} +<src/Libraries/Startup/stm32f10x_cl>
extra_scripts = pre:buildroot/scripts/custom_filename.py
buildroot/scripts/stm32f10x_0x7000_iap.py
build_flags = ${stm32f10x.build_flags}
-DSTM32F10X_CL=
-DHSE_VALUE=25000000ul
-DVECT_TAB_FLASH=0x08007000
-DHARDWARE="MKS_32_V1_4"
-DMKS_32_V1_4=
#
# MKS TFT32 V1.4 No Bootloader
#
[env:MKS_32_V1_4_NOBL]
platform = ststm32
framework = stm32cube
board = STM32F107VC
upload_protocol = stlink
debug_tool = stlink
src_filter = ${stm32f10x.default_src_filter} +<src/Libraries/Startup/stm32f10x_cl>
extra_scripts = pre:buildroot/scripts/custom_filename.py
buildroot/scripts/stm32f10x_0x0000_iap.py
build_flags = ${stm32f10x.build_flags}
-DSTM32F10X_CL=
-DHSE_VALUE=25000000ul
-DVECT_TAB_FLASH=0x08000000
-DHARDWARE="MKS_32_V1_4"
-DMKS_32_V1_4=
[env:MKS_28_Clone_V1_0]
platform = [email protected]
framework = stm32cube
board = STM32F107VC
upload_protocol = stlink
debug_tool = stlink
src_filter = ${stm32f10x.default_src_filter} +<src/Libraries/Startup/stm32f10x_cl>
extra_scripts = pre:buildroot/scripts/custom_filename.py
buildroot/scripts/stm32f10x_0x7000_iap.py
build_flags = ${stm32f10x.build_flags}
-DHARDWARE="mkstft28"
-DSTM32F10X_CL=
-DMKS_28_Clone_V1_0=
-DVECT_TAB_FLASH=0x08007000
-DHSE_VALUE=25000000ul