forked from bdring/FluidNC
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatformio.ini
More file actions
301 lines (279 loc) · 8.04 KB
/
platformio.ini
File metadata and controls
301 lines (279 loc) · 8.04 KB
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
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
; 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]
src_dir = FluidNC/src
include_dir = FluidNC/include
test_dir = FluidNC/tests
data_dir = FluidNC/data
default_envs = wifi
extra_configs=
platformio_override.ini
;debug.ini
[common_env_data]
lib_deps_builtin =
SPI
[common]
build_flags =
!python git-version.py
-DCORE_DEBUG_LEVEL=0
-DCONFIG_ASYNC_TCP_MAX_ACK_TIME=5000
-DCONFIG_ASYNC_TCP_PRIORITY=10
-DCONFIG_ASYNC_TCP_QUEUE_SIZE=64
-DWS_MAX_QUEUED_MESSAGES=32 ; 256 is no longer needed, and could be set to default of 32 if memory is an issue
-DCONFIG_ASYNC_TCP_RUNNING_CORE=0 ; Which core is best to use for async tcp? If the main stepper control loop is running on core 1, I think it should be 0...
-DCONFIG_ASYNC_TCP_STACK_SIZE=8192
-DASYNCWEBSERVER_LOG_LEVEL=ASYNC_WS_LOG_NONE ; this may require CORE_DEBUG_LEVEL to be higher as well
-DASYNCWEBSERVER_USE_CHUNK_INFLIGHT=1
-Wno-unused-variable
-Wno-unused-function
lib_deps =
TMCStepper@>=0.7.0,<1.0.0
thingpulse/ESP8266 and ESP32 OLED driver for SSD1306 displays@4.4.1
https://github.com/MitchBradley/json-streaming-parser
bt_deps =
BluetoothSerial
wifi_deps =
ESP32Async/AsyncTCP
ESPAsyncWebServer=https://github.com/ESP32Async/ESPAsyncWebServer.git
;WiFi=https://github.com/MitchBradley/WiFi#canWrite
; If we include the following explicit dependencies when we get the
; Arduino framework code from github, platformio picks up different
; and incompatible versions of these libraries from who knows where,
; ArduinoOTA
; DNSServer
; ESPmDNS
; Update
; WebServer
; WiFi
; WiFiClientSecure
[common_esp32_base]
platform = https://github.com/platformio/platform-espressif32.git
framework = arduino
platform_packages = platformio/framework-arduinoespressif32@^3.20017.241212
board_build.arduino.upstream_packages = no
upload_speed = 921600
board_build.partitions = min_littlefs.csv ; For 4M ESP32
board_build.filesystem = littlefs
; board_build.partitions = FluidNC/ld/esp32/app3M_spiffs1M_8MB.csv ; For 8Meg ESP32
; board_build.partitions = FluidNC/ld/esp32/app3M_spiffs9M_16MB.csv ; For 16Meg ESP32
monitor_speed = 115200
monitor_flags =
--eol=LF
monitor_filters=esp32_exception_decoder
board_build.f_flash = 80000000L
build_unflags = -std=gnu++11
build_flags =
${common.build_flags} -std=gnu++17 -D_GLIBCXX_HAVE_DIRENT_H -D__FLUIDNC
-IFluidNC/esp32
; -lstdc++fs
build_src_filter =
+<**/*.h> +<**/*.s> +<**/*.S> +<**/*.cpp> +<**/*.c>
+<../stdfs>
-<WebUI>
-<BTConfig.cpp>
; -<OLED.cpp>
lib_extra_dirs =
libraries
[common_esp32]
extends = common_esp32_base
FluidNC/ld/esp32/vtable_in_dram.py
board = esp32dev
build_src_filter =
${common_esp32_base.build_src_filter}
+<../esp32/*.c>
+<../esp32/*.cpp>
+<../esp32/esp32/*.c>
+<../esp32/esp32/*.cpp>
build_flags =
${common_esp32_base.build_flags}
-IFluidNC/esp32/esp32
-DMCU=\"esp32\"
[common_esp32s3]
extends = common_esp32_base
extra_scripts =
FluidNC/ld/esp32s3/vtable_in_dram.py
build_merged.py
board = esp32-s3-devkitc-1
board_build.partitions = FluidNC/ld/esp32s3/app3M_spiffs1M_8MB.csv
custom_filesystem_start = 0x610000
build_src_filter =
${common_esp32_base.build_src_filter}
+<../esp32/*.c>
+<../esp32/*.cpp>
+<../esp32/esp32s3/*.c>
+<../esp32/esp32s3/*.cpp>
-<../esp32/esp32s3/USBCDCChannel_IDF.cpp>
build_flags =
${common_esp32_base.build_flags}
-IFluidNC/esp32/esp32s3
; -DBOARD_HAS_PSRAM
-DMCU=\"esp32s3\"
lib_deps_usb_host =
https://github.com/X-Stuff/usb_host_cdc_acm.git#7c6e0ce
https://github.com/APIUM/usb_host_vcp.git#3ceae75
debug_tool = esp-builtin
[common_wifi]
build_src_filter = +<WebUI>
build_flags = -DVARIANT=\"wifi\"
[common_bt]
build_src_filter = +<BTConfig.cpp> +<WebUI/WebCommands.cpp>
build_flags = -DVARIANT=\"bt\"
[common_noradio]
build_src_filter =
build_flags = -DVARIANT=\"noradio\"
[env:debug]
extends = common_esp32
build_type = debug
lib_deps = ${common.lib_deps}
[env:noradio]
extends = common_esp32
lib_deps = ${common.lib_deps}
build_src_filter =
${common_esp32.build_src_filter}
${common_esp32.build_src_filter}
build_flags =
${common_esp32.build_flags}
${common_noradio.build_flags}
[env:wifi]
extends = common_esp32
lib_deps = ${common.lib_deps} ${common.wifi_deps}
build_src_filter =
${common_esp32.build_src_filter}
${common_wifi.build_src_filter}
build_flags =
${common_esp32.build_flags}
${common_wifi.build_flags}
[env:bt]
extends = common_esp32
lib_deps = ${common.lib_deps} ${common.bt_deps}
build_src_filter =
${common_esp32.build_src_filter}
${common_bt.build_src_filter}
build_flags =
${common_esp32.build_flags}
${common_bt.build_flags}
[env:noradio_s3]
extends = common_esp32s3
lib_deps = ${common.lib_deps} ${common_esp32s3.lib_deps_usb_host}
build_src_filter =
${common_esp32s3.build_src_filter}
${common_noradio.build_src_filter}
build_flags =
${common_esp32s3.build_flags}
${common_noradio.build_flags}
[env:wifi_s3]
extends = common_esp32s3
lib_deps = ${common.lib_deps} ${common.wifi_deps} ${common_esp32s3.lib_deps_usb_host}
build_src_filter =
${common_esp32s3.build_src_filter}
${common_wifi.build_src_filter}
build_flags =
${common_esp32s3.build_flags}
${common_wifi.build_flags}
[env:windows_x86]
lib_ldf_mode = chain
;platform = https://github.com/platformio/platform-windows_x86.git
platform = windows_x86
test_build_src = true
build_src_filter =
+<**/*.h> +<**/*.s> +<**/*.S> +<**/*.cpp> +<**/*.c>
+<../capture>
+<../win32>
-<I2SOut.cpp>
-<Machine/I2CBus.cpp>
-<BTConfig.cpp>
-<Motors/Trinamic*.cpp>
-<Motors/TMC*.cpp>
-<Motors/*Servo.cpp>
-<Motors/Dynamixel2.cpp>
-<Motors/Solenoid.cpp>
-<Pins/DebugPinDetail.cpp>
-<WebUI>
-<OLED*.cpp>
-<SSD1306_I2C.cpp>
build_flags =
-std=gnu++17
-mconsole
-lcomdlg32
-limagehlp
-lpsapi
-IFluidNC/capture
-IFluidNC/win32
lib_compat_mode = off
[env:posix]
lib_ldf_mode = chain
platform = native
test_build_src = true
build_src_filter =
+<**/*.h> +<**/*.s> +<**/*.S> +<**/*.cpp> +<**/*.c>
+<../capture>
+<../posix>
-<I2SOut.cpp>
-<Machine/I2CBus.cpp>
-<BTConfig.cpp>
-<Motors/Trinamic*.cpp>
-<Motors/TMC*.cpp>
-<Motors/*Servo.cpp>
-<Motors/Dynamixel2.cpp>
-<Motors/Solenoid.cpp>
-<Pins/DebugPinDetail.cpp>
-<WebUI>
-<OLED*.cpp>
-<SSD1306_I2C.cpp>
-<Spindles/VFD/*>
+<Spindles/VFD/VFDProtocol.cpp>
+<Spindles/VFD/GenericProtocol.cpp>
# -<Spindles/VFDSpindle.cpp>
build_flags =
-g
-std=c++20
-IFluidNC/capture
-IFluidNC/posix
-lpthread
lib_compat_mode = off
# The following are for "pio test"
# Note: The [env:native] environment was renamed to [env:windows_x86]
# Use 'pio test -e tests' or 'pio test -e tests_coverage' instead
[tests_common]
platform = native
test_framework = googletest
test_build_src = true
build_src_filter =
+<Configuration/Completer.cpp>
+<Pins/PinOptionsParser.cpp>
+<string_util.cpp>
+<UTF8.cpp>
+<Regexpr.cpp>
+<Error.cpp>
+<FluidError.cpp>
+<test_main.cpp>
+<tests/StringUtilTest.cpp>
+<tests/UTF8Test.cpp>
+<tests/UtilityTest.cpp>
+<tests/RegexprTest.cpp>
+<tests/ErrorBehaviorTest.cpp>
+<tests/StateTest.cpp>
+<tests/CommandCompletionTest.cpp>
+<tests/FluidErrorTest.cpp>
build_flags = -std=c++17 -g -IFluidNC/capture
lib_compat_mode = off
lib_deps =
google/googletest @ ^1.15.2
# Standard test environment - no sanitizers, no coverage
[env:tests]
extends = tests_common
# Coverage environment - generates .gcda/.gcno files for gcovr/lcov
# Usage:
# pio test -e tests_coverage
# python coverage.py
[env:tests_coverage]
extends = tests_common
build_flags = ${tests_common.build_flags} -O0 --coverage
extra_scripts = coverage_build.py