forked from RFD-FHEM/SIGNALDuino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
439 lines (396 loc) · 13.5 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
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
;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]
; https://docs.platformio.org/en/latest/projectconf/section_env.html
; default_envs = esp32_CC1101@debug, esp32_CC1101, esp32@debug, esp32
; default_envs = esp8266_CC1101@debug, esp8266_CC1101, esp8266@debug, esp8266
; default_envs = maple_mini_bootl_v1_CC1101@debug_wr, maple_mini_bootl_v1_CC1101@debug, maple_mini_bootl_v1_CC1101, maple_mini_bootl_v1
; default_envs = maple_mini_bootl_v2_CC1101@debug_wr, maple_mini_bootl_v2_CC1101@debug, maple_mini_bootl_v2_CC1101, maple_mini_bootl_v2
; default_envs = minicul_16MHz_CC1101, minicul_16MHz_CC1101@debug, minicul_8MHz_CC1101, minicul_8MHz_CC1101@debug
; default_envs = nano328_bootl_new, nano328_bootl_new@debug, nano328_bootl_old, nano328_bootl_old@debug
; default_envs = promini, promini@debug
; default_envs = radino_CC1101
test_dir = tests/
[env]
; https://docs.platformio.org/en/feature-platformio-30/projectconf.html
src_filter = +<*> -<.git/> -<.svn/> -<example/> -<examples/> -<arduino-ide/SIGNALDuino/> -<_micro-api/libraries/ArduinoJson/test/> -<_micro-api/libraries/ArduinoJson/third-party/> -<_micro-api/libraries/fastdelegate/examples/>-<test/> -<tests/> -<_micro-api/libraries/ArduinoJson/fuzzing/>
lib_extra_dirs =
src/_micro-api/libraries/
; general - for all devices, using ${env.***}
; Unix, example
debug_port = /dev/ttyUSB0
monitor_port = /dev/ttyUSB0
upload_port = /dev/ttyUSB0
; Windows, example
; debug_port = COM4
; monitor_port = COM4
; upload_port = COM4
[env_maple_mini]
; all options for MAPLE_Mini
; extra_scripts = pre:custom_hwids.py ; to write USB PID for device | needed to right reconnected
; platform = ststm32 ; Stable version
platform = https://github.com/platformio/platform-ststm32.git ; Development version
board = maple_mini_origin
board_build.mcu = stm32f103cbt6 ; https://docs.platformio.org/en/latest/projectconf/section_env_platform.html#board-build-mcu
board_build.core = STM32Duino ; https://docs.platformio.org/en/latest/platforms/ststm32.html#configuration
framework = arduino
build_flags=
-D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC ; CDC (generic Serial supersede U(S)ART)
-D USBCON ; !! work only with maple_mini bootloader v1.0 !!
;-D USBD_VID=0x1eaf ; Maple Serial (COMxx)
;-D USBD_PID=0x0003 ; Bootloader
-D USBD_PID=0x0004 ; Device
-D USBD_VID=0x0483 ; Serielles USB-Geraet (COMxx)
-D USB_MANUFACTURER="STMicroelectronics"
-D USB_PRODUCT="\"Maple\""
; * * * * * * * * * * * * * * * * * * * * *
; behind this lines, all hardware projects
; * * * * * * * * * * * * * * * * * * * * *
[env:maple_mini_bootl_v2_CC1101@debug_wr]
; STM32duino bootloader v2.0
; no hardware to test
platform = ${env_maple_mini.platform}
board = maple_mini_b20
board_build.mcu = ${env_maple_mini.board_build.mcu}
board_build.core = ${env_maple_mini.board_build.core}
framework = ${env_maple_mini.framework}
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags= -D ARDUINO_MAPLEMINI_F103CB=1
-D OTHER_BOARD_WITH_CC1101=1
-D WATCHDOG_STM32=1
-D DEBUG
[env:maple_mini_bootl_v1_CC1101@debug_wr]
; STM32duino bootloader v1.0
platform = ${env_maple_mini.platform}
board = ${env_maple_mini.board}
board_build.mcu = ${env_maple_mini.board_build.mcu}
board_build.core = ${env_maple_mini.board_build.core}
framework = ${env_maple_mini.framework}
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags = ${env_maple_mini.build_flags}
-D OTHER_BOARD_WITH_CC1101=1
-D WATCHDOG_STM32=1
-D DEBUG
[env:maple_mini_bootl_v2_CC1101@debug]
; STM32duino bootloader v2.0
; no hardware to test
platform = ${env_maple_mini.platform}
board = maple_mini_b20
board_build.mcu = ${env_maple_mini.board_build.mcu}
board_build.core = ${env_maple_mini.board_build.core}
framework = ${env_maple_mini.framework}
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags= -D ARDUINO_MAPLEMINI_F103CB=1
-D OTHER_BOARD_WITH_CC1101=1
-D DEBUG
[env:maple_mini_bootl_v1_CC1101@debug]
; STM32duino bootloader v1.0
platform = ${env_maple_mini.platform}
board = ${env_maple_mini.board}
board_build.mcu = ${env_maple_mini.board_build.mcu}
board_build.core = ${env_maple_mini.board_build.core}
framework = ${env_maple_mini.framework}
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags = ${env_maple_mini.build_flags}
-D OTHER_BOARD_WITH_CC1101=1
-D DEBUG
[env:maple_mini_bootl_v2_CC1101]
; STM32duino bootloader v2.0
; no hardware to test
platform = ${env_maple_mini.platform}
board = maple_mini_b20
board_build.mcu = ${env_maple_mini.board_build.mcu}
board_build.core = ${env_maple_mini.board_build.core}
framework = ${env_maple_mini.framework}
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags= -D ARDUINO_MAPLEMINI_F103CB=1
-D OTHER_BOARD_WITH_CC1101=1
[env:maple_mini_bootl_v1_CC1101]
; STM32duino bootloader v1.0
platform = ${env_maple_mini.platform}
board = ${env_maple_mini.board}
board_build.mcu = ${env_maple_mini.board_build.mcu}
board_build.core = ${env_maple_mini.board_build.core}
framework = ${env_maple_mini.framework}
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags = ${env_maple_mini.build_flags}
-D OTHER_BOARD_WITH_CC1101=1
[env:maple_mini_bootl_v2]
; STM32duino bootloader v2.0
; no hardware to test
platform = ${env_maple_mini.platform}
board = maple_mini_b20
board_build.mcu = ${env_maple_mini.board_build.mcu}
board_build.core = ${env_maple_mini.board_build.core}
framework = ${env_maple_mini.framework}
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags=
-D ARDUINO_MAPLEMINI_F103CB=1
[env:maple_mini_bootl_v1]
; STM32duino bootloader v1.0
platform = ${env_maple_mini.platform}
board = ${env_maple_mini.board}
board_build.mcu = ${env_maple_mini.board_build.mcu}
board_build.core = ${env_maple_mini.board_build.core}
framework = ${env_maple_mini.framework}
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags = ${env_maple_mini.build_flags}
[env:nano_bootl_old_CC1101@debug]
; bootloader ATmegaBOOT
platform = atmelavr
board = nanoatmega328
monitor_speed = 57600
framework = arduino
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags=-D OTHER_BOARD_WITH_CC1101=1 -D DEBUG
[env:nano_bootl_old_CC1101]
; bootloader ATmegaBOOT
platform = atmelavr
board = nanoatmega328
monitor_speed = 57600
framework = arduino
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags=-D OTHER_BOARD_WITH_CC1101=1
[env:nano_bootl_new_CC1101@debug]
; bootloader Optiboot
platform = atmelavr
board = nanoatmega328new
monitor_speed = 57600
framework = arduino
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags=-D OTHER_BOARD_WITH_CC1101=1 -D DEBUG
[env:nano_bootl_new_CC1101]
; bootloader Optiboot
platform = atmelavr
board = nanoatmega328new
monitor_speed = 57600
framework = arduino
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags=-D OTHER_BOARD_WITH_CC1101=1
[env:nano328_bootl_old@debug]
; bootloader ATmegaBOOT
platform = atmelavr
board = nanoatmega328
monitor_speed = 57600
framework = arduino
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags=-D DEBUG
src_filter =-cc1101.h -cc1101.cpp +<*> -<.git/> -<.svn/> -<example/> -<examples/> -<arduino-ide/SIGNALDuino/> -<_micro-api/libraries/ArduinoJson/test/> -<_micro-api/libraries/ArduinoJson/third-party/> -<_micro-api/libraries/fastdelegate/examples/>-<test/> -<tests/> -<_micro-api/libraries/ArduinoJson/fuzzing/>
[env:nano328_bootl_old]
; bootloader ATmegaBOOT
platform = atmelavr
board = nanoatmega328
monitor_speed = 57600
framework = arduino
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags=
[env:nano328_bootl_new@debug]
; bootloader Optiboot
platform = atmelavr
board = nanoatmega328new
monitor_speed = 57600
framework = arduino
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags=-D DEBUG
src_filter =-cc1101.h -cc1101.cpp +<*> -<.git/> -<.svn/> -<example/> -<examples/> -<arduino-ide/SIGNALDuino/> -<_micro-api/libraries/ArduinoJson/test/> -<_micro-api/libraries/ArduinoJson/third-party/> -<_micro-api/libraries/fastdelegate/examples/>-<test/> -<tests/> -<_micro-api/libraries/ArduinoJson/fuzzing/>
[env:nano328_bootl_new]
; bootloader Optiboot
platform = atmelavr
board = nanoatmega328new
monitor_speed = 57600
framework = arduino
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags=
[env:minicul_8MHz_CC1101@debug]
platform = atmelavr
board = pro8MHzatmega328
monitor_speed = 57600
framework = arduino
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags=-D OTHER_BOARD_WITH_CC1101=1 -D DEBUG
[env:minicul_8MHz_CC1101]
platform = atmelavr
board = pro8MHzatmega328
monitor_speed = 57600
framework = arduino
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags=-D OTHER_BOARD_WITH_CC1101=1
[env:minicul_16MHz_CC1101@debug]
platform = atmelavr
board = pro16MHzatmega328
monitor_speed = 57600
framework = arduino
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags=-D OTHER_BOARD_WITH_CC1101=1 -D DEBUG
[env:minicul_16MHz_CC1101]
platform = atmelavr
board = pro16MHzatmega328
monitor_speed = 57600
framework = arduino
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags=-D OTHER_BOARD_WITH_CC1101=1
[env:promini@debug]
platform = atmelavr
board = pro8MHzatmega328
monitor_speed = 57600
framework = arduino
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags=-D DEBUG
[env:promini]
platform = atmelavr
board = pro8MHzatmega328
monitor_speed = 57600
framework = arduino
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags=
; [env:radino_CC1101@debug]
; Error: The program size (32498 bytes) is greater than maximum allowed (28672 bytes)
;
; Radino board from in-circuit is not in POI
; these are compatible with all PIN´s
; working correctly; send & receive function works
; platform = atmelavr
; board = micro
; framework = arduino
; board_build.mcu = atmega32u4 ; change microcontroller
; board_build.f_cpu = 8000000L ; change MCU frequency
; monitor_port = ${env.monitor_port}
; upload_port = ${env.upload_port}
; build_flags=-D ARDUINO_AVR_ICT_BOARDS_ICT_BOARDS_AVR_RADINOCC1101=1 -D DEBUG
[env:radino_CC1101]
; Radino board from in-circuit is not in POI
; these are compatible with all PIN´s
; working correctly; send & receive function works
platform = atmelavr
board = micro
framework = arduino
board_build.mcu = atmega32u4 ; change microcontroller
board_build.f_cpu = 8000000L ; change MCU frequency
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags=-D ARDUINO_AVR_ICT_BOARDS_ICT_BOARDS_AVR_RADINOCC1101=1
[env:esp32_CC1101@debug]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags=-D DEBUG -D OTHER_BOARD_WITH_CC1101=1
[env:esp32_CC1101]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags=-D OTHER_BOARD_WITH_CC1101=1
[env:esp32@debug]
platform = espressif32
board = esp32dev
framework = arduino
debug_tool = olimex-arm-usb-ocd-h
monitor_speed = 115200
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags=-D DEBUG
[env:esp32]
platform = espressif32
board = esp32dev
framework = arduino
debug_tool = olimex-arm-usb-ocd-h
monitor_speed = 115200
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
build_flags=
;[env:[email protected]]
;platform = [email protected]
;board = nodemcuv2
;framework = arduino
;lib_deps =
;upload_speed = 115200
;monitor_port = ${env.monitor_port}
;upload_port = ${env.upload_port}
;monitor_speed = 115200
;platform_packages =
; framework-arduinoespressif8266 @ https://github.com/esp8266/Arduino.git
;build_flags=-D DEBUG -D OTHER_BOARD_WITH_CC1101
[env:esp8266_CC1101@debug]
platform = espressif8266
board = nodemcuv2
framework = arduino
;upload_speed = 115200
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
monitor_speed = 115200
lib_deps =
build_flags=-D DEBUG -D OTHER_BOARD_WITH_CC1101=1
[env:esp8266_CC1101]
platform = espressif8266
board = nodemcuv2
framework = arduino
;upload_speed = 115200
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
monitor_speed = 115200
lib_deps =
build_flags=-D OTHER_BOARD_WITH_CC1101=1
[env:esp8266@debug]
platform = espressif8266
board = nodemcuv2
framework = arduino
;upload_speed = 115200
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
monitor_speed = 115200
lib_deps =
build_flags=-D DEBUG
[env:esp8266]
platform = espressif8266
board = nodemcuv2
framework = arduino
;upload_speed = 115200
monitor_port = ${env.monitor_port}
upload_port = ${env.upload_port}
monitor_speed = 115200
lib_deps =
build_flags=
[env:native]
platform = native
lib_deps =
build_flags =
-std=c++11
lib_archive = false
test_ignore = embedded*
;src_dir = tests/testSignalDecoder
lib_compat_mode = off