-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
328 lines (283 loc) · 10.6 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
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
; 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]
; ============================================================
; chose environment:
; ============================================================
; default_envs = spaiot32 ; Release version
; default_envs = spaiot32_debug ; Debug version
; default_envs = spaiotctrl32 ; Release version
; default_envs = spaiotctrl32_debug ; Debug version
; default_envs = spaiot32s3 ; Release version
; default_envs = spaiot32s3_debug ; Debug version
; default_envs = spaiot8266 ; Release version
; default_envs = spaiot8266_debug ; Debug version
; default_envs = test_esp32 ; Unit test
; default_envs = test_esp8266 ; Unit test
default_envs = test_esp32s3 ; Unit test
[env]
framework = arduino
test_build_src = yes
lib_deps =
throwtheswitch/Unity@^2.5.2
epsilonrt/pImpl@^1.1.3
; ============================================================
; Serial configuration
; choose upload speed, serial-monitor speed
; ============================================================
; 115200, 230400, 460800, 921600
; upload_speed = 460800
; upload_port = COM5 ; change to your port, if not set, the test stop while pressing the reset button
monitor_speed = 115200
; monitor_port = COM11
test_speed = 115200
; test_port = COM5 ; change to your port, if not set, the test stop while pressing the reset button
; JTAG Debugging
debug_tool = esp-prog
debug_init_break = tbreak setup
[debug]
build_type = debug
flags =
; comment the folowing line to enable other lib debugging
-D NDEBUG
-D UNITY_INCLUDE_PRINT_FORMATTED
[release]
flags =
-D RELEASE
-D NDEBUG
-D NODEBUG_SPAIOT
-D UNITY_INCLUDE_PRINT_FORMATTED
;--------------------------------------------------------------------------
; ENVIRONMENTS
;--------------------------------------------------------------------------
; ------------- List of Spa Hardware settings -------------
; "SPAIOT8266SSP" : SpaIot board with ESP8266 and 74HC4051 for SSP Spa model
; "SPAIOT8266SJB" : SpaIot board with ESP8266 and 74HC4051 for SJB Spa model
; "SPAIOT32SSP" : SpaIot board with ESP32 and 74HC4051 for SSP Spa model
; "SPAIOT32SJB" : SpaIot board with ESP32 and 74HC4051 for SJB Spa model
; "SPAIOTS3SSP" : SpaIot board with ESP32-S3 and 74HC4051 for SSP Spa model
; "SPAIOTS3SJB" : SpaIot board with ESP32-S3 and 74HC4051 for SJB Spa model
; "SPAIOT328574SSP" : SpaIot board with ESP32 and PCF8574 for SSP Spa model
; "SPAIOT328574SJB" : SpaIot board with ESP32 and PCF8574 for SJB Spa model
; "SPAIOTS38574SSP" : SpaIot board with ESP32-S3 and PCF8574 for SSP Spa model
; "SPAIOTS38574SJB" : SpaIot board with ESP32-S3 and PCF8574 for SJB Spa model
[env:spaiot32]
; https://docs.platformio.org/en/latest/platforms/espressif32.html
platform = espressif32
board = esp32dev
board_build.f_cpu = 240000000L
board_build.partitions = min_spiffs.csv
build_flags =
${release.flags}
-D LED_BUILTIN=2
-D SPAIOT_MODEL="SPAIOT32SSP"
[env:spaiot32_debug]
; https://docs.platformio.org/en/latest/platforms/espressif32.html
platform = espressif32
board = esp32dev
board_build.f_cpu = 240000000L
board_build.partitions = min_spiffs.csv
build_flags =
${debug.flags}
-D LED_BUILTIN=2
; set your debug output (default=Serial)
; comment the folowing line to disable serial debugging
-D DEBUG_ESP_PORT=Serial
; set your debug led debug (default=LED_BUILTIN)
; comment the folowing line to disable led debugging
-D DEBUG_LED=LED_BUILTIN
; set your debug led on state (default=LOW)
-D DEBUG_LED_ONSTATE=HIGH
; set your spa model, see comment at the top of the file
-D SPAIOT_MODEL="SPAIOT32SSP"
[env:spaiotctrl32]
; https://docs.platformio.org/en/latest/platforms/espressif32.html
platform = espressif32
board = esp32dev
board_upload.flash_size = 16MB
board_build.partitions = default_16MB.csv
board_build.f_cpu = 240000000L
board_build.flash_mode = dio
board_build.f_flash = 80000000L
build_flags =
${release.flags}
-D LED_BUILTIN=2
-D SPAIOT_MODEL="SPAIOT32SSP"
[env:spaiotctrl32_debug]
; https://docs.platformio.org/en/latest/platforms/espressif32.html
platform = espressif32
board = esp32dev
board_upload.flash_size = 16MB
board_build.partitions = default_16MB.csv
board_build.f_cpu = 240000000L
board_build.flash_mode = dio
board_build.f_flash = 80000000L
build_flags =
${debug.flags}
-D LED_BUILTIN=2
; set your debug output (default=Serial)
; comment the folowing line to disable serial debugging
-D DEBUG_ESP_PORT=Serial
; set your debug led debug (default=LED_BUILTIN)
; comment the folowing line to disable led debugging
-D DEBUG_LED=LED_BUILTIN
; set your debug led on state (default=LOW)
-D DEBUG_LED_ONSTATE=HIGH
; set your spa model, see comment at the top of the file
-D SPAIOT_MODEL="SPAIOT32SSP"
[env:spaiot32s3]
; https://docs.platformio.org/en/latest/platforms/espressif32.html
platform = espressif32
board = lolin_s3
board_build.f_cpu = 240000000L
board_build.partitions = min_spiffs.csv
build_flags =
${release.flags}
; set your spa model, see comment at the top of the file
-D SPAIOT_MODEL="SPAIOTS3SSP"
[env:spaiot32s3_debug]
; https://docs.platformio.org/en/latest/platforms/espressif32.html
platform = espressif32
board = lolin_s3
board_build.f_cpu = 240000000L
board_build.partitions = min_spiffs.csv
build_flags =
${debug.flags}
; set your debug output (default=Serial)
; comment the folowing line to disable serial debugging
-D DEBUG_ESP_PORT=Serial0
; set your debug led debug (default=LED_BUILTIN)
; comment the folowing line to disable led debugging
-D DEBUG_LED=13
; set your debug led on state (default=LOW)
-D DEBUG_LED_ONSTATE=HIGH
; set your spa model, see comment at the top of the file
-D SPAIOT_MODEL="SPAIOTS3SSP"
[env:spaiot8266]
; https://docs.platformio.org/en/stable/platforms/espressif8266.html
platform = espressif8266
board = esp12e
board_build.f_cpu = 160000000L
board_build.ldscript = eagle.flash.4m1m.ld
build_flags =
${release.flags}
-D LED_BUILTIN=2
; set your spa model, see comment at the top of the file
-D SPAIOT_MODEL="SPAIOT8266SSP"
[env:spaiot8266_debug]
; https://docs.platformio.org/en/stable/platforms/espressif8266.html
platform = espressif8266
board = esp12e
board_build.f_cpu = 160000000L
board_build.ldscript = eagle.flash.4m1m.ld
build_flags =
-D LED_BUILTIN=2
${debug.flags}
; set your debug output (default=Serial)
; comment the folowing line to disable serial debugging
-D DEBUG_ESP_PORT=Serial
; set your debug led debug (default=LED_BUILTIN)
; comment the folowing line to disable led debugging
-D DEBUG_LED=LED_BUILTIN
; set your debug led on state (default=LOW)
-D DEBUG_LED_ONSTATE=LOW
; set your spa model, see comment at the top of the file
-D SPAIOT_MODEL="SPAIOT8266SSP"
[env:test_esp32]
; https://docs.platformio.org/en/latest/platforms/espressif32.html
platform = espressif32
board = esp32dev
board_build.f_cpu = 240000000L
board_build.partitions = min_spiffs.csv
build_flags =
${debug.flags}
-D LED_BUILTIN=2
; set your debug output (default=Serial)
; comment the folowing line to disable serial debugging
-D DEBUG_ESP_PORT=Serial
; set your debug led debug (default=LED_BUILTIN)
; comment the folowing line to disable led debugging
-D DEBUG_LED=LED_BUILTIN
; set your debug led on state (default=LOW)
-D DEBUG_LED_ONSTATE=HIGH
; set your spa model, see comment at the top of the file
-D SPAIOT_MODEL="SPAIOT32SSP"
[env:test_esp32s3]
; https://docs.platformio.org/en/latest/platforms/espressif32.html
platform = espressif32
board = lolin_s3
board_build.f_cpu = 240000000L
board_build.partitions = min_spiffs.csv
; ---------------------------------------------------------------------
; LOLIN S3 Serial ports
; Config in https://github.com/platformio/platform-espressif32/blob/develop/boards/lolin_s3.json
; ARDUINO_USB_CDC_ON_BOOT -> enable USB CDC on boot (OTG USB), if disabled, Serial = UART USB (CH340)
; ARDUINO_USB_MODE -> if ARDUINO_USB_CDC_ON_BOOT=1, 0 -> Serial = OTG USB, 1 -> Serial0 = OTG USB
; Default values :
; -> ARDUINO_USB_CDC_ON_BOOT=1
; -> ARDUINO_USB_MODE=1
; Serial = OTG USB
; Serial0 = UART0 -> Default Pin GPIO18 (RX0) and GPIO17 (TX0), connected to USB-UART (CH340)
; Serial1 = UART1 -> Default Pin GPIO18 (RX1) and GPIO17 (TX1)
build_flags =
${debug.flags}
; set your debug output (default=Serial)
; comment the folowing line to disable serial debugging
-D DEBUG_ESP_PORT=Serial0
; set your debug led debug (default=LED_BUILTIN)
; comment the folowing line to disable led debugging
-D DEBUG_LED=13
; set your debug led on state (default=LOW)
-D DEBUG_LED_ONSTATE=HIGH
; set your spa model, see comment at the top of the file
-D SPAIOT_MODEL="SPAIOTS3SSP"
[env:test_ctrl32]
; https://docs.platformio.org/en/latest/platforms/espressif32.html
platform = espressif32
board = esp32dev
board_upload.flash_size = 16MB
board_build.partitions = default_16MB.csv
board_build.f_cpu = 240000000L
board_build.flash_mode = dio
board_build.f_flash = 80000000L
build_flags =
${debug.flags}
-D LED_BUILTIN=2
; set your debug output (default=Serial)
; comment the folowing line to disable serial debugging
-D DEBUG_ESP_PORT=Serial
; set your debug led debug (default=LED_BUILTIN)
; comment the folowing line to disable led debugging
-D DEBUG_LED=LED_BUILTIN
; set your debug led on state (default=LOW)
-D DEBUG_LED_ONSTATE=HIGH
; set your spa model, see comment at the top of the file
-D SPAIOT_MODEL="SPAIOT32SSP"
[env:test_esp8266]
; https://docs.platformio.org/en/stable/platforms/espressif8266.html
platform = espressif8266
board = esp12e
board_build.f_cpu = 160000000L
board_build.ldscript = eagle.flash.4m1m.ld
build_flags =
-D LED_BUILTIN=2
-Wno-unused-variable
${debug.flags}
; set your debug output (default=Serial)
; comment the folowing line to disable serial debugging
-D DEBUG_ESP_PORT=Serial
; set your debug led debug (default=LED_BUILTIN)
; comment the folowing line to disable led debugging
-D DEBUG_LED=LED_BUILTIN
; set your debug led on state (default=LOW)
-D DEBUG_LED_ONSTATE=LOW
; set your spa model, see comment at the top of the file
-D SPAIOT_MODEL="SPAIOT8266SSP"
; ---------------------------------------------------------------------