-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
82 lines (72 loc) · 2.34 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
; 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]
default_envs = teensy41
[env]
lib_ldf_mode = deep+
build_flags = -Werror=return-type
lib_deps =
bblanchon/ArduinoJson@^6.21.2
ssilverman/QNEthernet@^0.26.0
etlcpp/Embedded Template Library@^20.38.2
bblanchon/StreamUtils@^1.7.3
[env:native]
platform = native
# Select the test to debug
# Comment out to instead debug src/main.cpp (which does not work yet)
debug_test = native/examples/test_debugging
build_src_filter = +<*> -<hybrid_controller.cpp>
lib_deps =
${env.lib_deps}
https://github.com/anabrid/ArduinoTeensyFake.git # TODO put this to https://registry.platformio.org/search?q=anabrid
build_flags = -std=c++17
[env:teensy41]
platform = teensy
framework = arduino
upload_protocol = teensy-cli
#upload_protocol = custom
#upload_command = ./teensy_loader_cli-v2.3 -mmcu=teensy41 -w -s -v .pio/build/teensy41/firmware.hex
board = teensy41
lib_ldf_mode = deep+
build_src_filter = +<*> -<native_simulator.cpp>
; When you invent new build flags/feature flags, please document them
; shortly at docs/feature-flags.md. Thank you!
build_flags =
${env.build_flags}
#-DANABRID_DEBUG_INIT
#-DANABRID_UNSAFE_INTERNET
-DANABRID_ENABLE_OTA_FLASHING
-DANABRID_ENABLE_GLOBAL_PLUGIN_LOADER
#-DANABRID_WRITE_EEPROM
#extra_scripts =
# pre:lib/controller/build_distributor.py
lib_deps =
${env.lib_deps}
# anabrid/aWOT@^3.5.1
[env:testing]
platform = ${env:teensy41.platform}
framework = ${env:teensy41.framework}
upload_protocol = ${env:teensy41.upload_protocol}
board = ${env:teensy41.board}
build_flags = ${env:teensy41.build_flags} -DANABRID_PEDANTIC
[env:teensy41_tycmd]
platform = ${env:teensy41.platform}
framework = ${env:teensy41.framework}
board = ${env:teensy41.board}
build_flags = ${env:teensy41.build_flags}
upload_protocol = custom
upload_command = tycmd upload $SOURCE
[env:testing_tycmd]
platform = ${env:testing.platform}
framework = ${env:testing.framework}
board = ${env:testing.board}
build_flags = ${env:testing.build_flags}
upload_protocol = custom
upload_command = tycmd upload $SOURCE