-
Notifications
You must be signed in to change notification settings - Fork 41
/
platformio.ini
204 lines (176 loc) · 4.66 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
; 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
[platformio]
include_dir = src
build_cache_dir = .pio/cache
extra_configs =
targets/*.ini
[common]
lib_archive = no
build_src_filter = +<*> -<.git/> -<.svn/> -<example/> -<examples/> -<test/> -<tests/> -<system/> -<driver/mcu/>
extra_scripts =
pre:script/pre_script.py
post:script/post_script.py
debug_build_flags =
-O1
-ggdb3
-g3
build_flags =
-DUSBD_SOF_DISABLED
-DUSE_FULL_LL_DRIVER
-Isrc
[env:simulator]
extends = common
board = SIMULATOR
platform = native
debug_tool = custom
build_src_filter = ${common.build_src_filter} +<driver/mcu/native> +<system/native>
build_flags =
${common.build_flags}
-lm
-DSIMULATOR
-Isrc/system/native
[stm32]
extends = common
debug_tool = stlink
upload_protocol = dfu
platform = ststm32@~17.5.0
platform_packages = toolchain-gccarmnoneeabi@~1.120301.0
build_src_filter = ${common.build_src_filter} +<driver/mcu/stm32>
framework = stm32cube
board_build.stm32cube.custom_system_setup = yes
[stm32f4]
extends = stm32
system_flags =
-mfloat-abi=hard
-mfpu=fpv4-sp-d16
build_flags =
${stm32.build_flags}
-DHSE_STARTUP_TIMEOUT=5000
[stm32f405]
extends = stm32f4
board = STM32F405RG
build_src_filter = ${stm32.build_src_filter} +<system/stm32f405>
board_build.ldscript = $PROJECT_DIR/src/system/stm32f405/flash_layout.ld
build_flags =
${stm32f4.build_flags}
-Isrc/system/stm32f405
[env:stm32f405]
extends = stm32f405
[stm32f411]
extends = stm32f4
board = STM32F411RE
build_src_filter = ${stm32.build_src_filter} +<system/stm32f411>
board_build.ldscript = $PROJECT_DIR/src/system/stm32f411/flash_layout.ld
build_flags =
${stm32f4.build_flags}
-Isrc/system/stm32f411
[env:stm32f411]
extends = stm32f411
[stm32f7]
extends = stm32
system_flags =
-mfloat-abi=hard
-mfpu=fpv5-sp-d16
[stm32f745]
extends = stm32f7
board = STM32F745XG
build_src_filter = ${stm32.build_src_filter} +<system/stm32f745>
board_build.ldscript = $PROJECT_DIR/src/system/stm32f745/flash_layout.ld
build_flags =
${stm32f7.build_flags}
-Isrc/system/stm32f745
[env:stm32f745]
extends = stm32f745
[stm32f765]
extends = stm32f7
board = STM32F765VI
build_src_filter = ${stm32.build_src_filter} +<system/stm32f765>
board_build.ldscript = $PROJECT_DIR/src/system/stm32f765/flash_layout.ld
build_flags =
${stm32f7.build_flags}
-Isrc/system/stm32f765
[env:stm32f765]
extends = stm32f765
[stm32f722]
extends = stm32f7
board = STM32F722RE
build_src_filter = ${stm32.build_src_filter} +<system/stm32f722>
board_build.ldscript = $PROJECT_DIR/src/system/stm32f722/flash_layout.ld
build_flags =
${stm32f7.build_flags}
-Isrc/system/stm32f722
[env:stm32f722]
extends = stm32f722
[stm32h7]
extends = stm32
system_flags =
-mfloat-abi=hard
-mfpu=fpv5-sp-d16
[stm32h743]
extends = stm32h7
board = STM32H743VI
build_src_filter = ${stm32.build_src_filter} +<system/stm32h743>
board_build.ldscript = $PROJECT_DIR/src/system/stm32h743/flash_layout.ld
build_flags =
${stm32h7.build_flags}
-Isrc/system/stm32h743
[env:stm32h743]
extends = stm32h743
[stm32g4]
extends = stm32
system_flags =
-mfloat-abi=hard
-mfpu=fpv4-sp-d16
[stm32g473]
extends = stm32g4
board = STM32G473CE
build_src_filter = ${stm32.build_src_filter} +<system/stm32g473>
board_build.ldscript = $PROJECT_DIR/src/system/stm32g473/flash_layout.ld
build_flags =
${stm32g4.build_flags}
-Isrc/system/stm32g473
[env:stm32g473]
extends = stm32g473
[at32]
extends = common
debug_tool = stlink
upload_protocol = dfu
platform = https://github.com/ArteryTek/platform-arterytekat32.git#5729d36
platform_packages = toolchain-gccarmnoneeabi@~1.120301.0
framework = at32firmlib
board_build.at32firmlib.custom_system_setup = yes
build_src_filter = ${common.build_src_filter} +<driver/mcu/at32>
[at32f435]
extends = at32
board = AT32F435RG
build_src_filter = ${at32.build_src_filter} +<system/at32f435>
board_build.ldscript = $PROJECT_DIR/src/system/at32f435/flash_layout.ld
system_flags =
-mfloat-abi=hard
-mfpu=fpv4-sp-d16
build_flags =
${at32.build_flags}
-Isrc/system/at32f435
[env:at32f435]
extends = at32f435
[at32f435m]
extends = at32
board = AT32F435RM
build_src_filter = ${at32.build_src_filter} +<system/at32f435>
board_build.ldscript = $PROJECT_DIR/src/system/at32f435/flash_layout.ld
system_flags =
-mfloat-abi=hard
-mfpu=fpv4-sp-d16
build_flags =
${at32.build_flags}
-Isrc/system/at32f435
[env:at32f435m]
extends = at32f435m