-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
191 lines (164 loc) · 4.53 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
; 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
[common]
compile_flags =
; Compile optimizations:
; -Os = Standard Arduino optimization.
; -O2 = Fast code, but large size.
; -O3 = Faster code, but larger size.
; -Ofast = Fastest code, but larger size.
; -Ofast -funroll-loops = Fastest code, largest size, & with loop unrolling. AKA "Here be dragons".
-Os
; Exceptions:
; -fno-exceptions = Disable exceptions. (Default)
; -fexceptions = Enable exceptions. BEWARE: This may crash your code when exceptions are thrown!
-fno-exceptions
; TinyUSB:
; -DUSE_TINYUSB = Enable TinyUSB. (Default) (Requires TinyUSB to be installed)
; -DUSE_TINYUSB
; CPU frequency, in Hz:
; 120000000L = 120 MHz (Default)
; 150000000L = 150 MHz (Overclock)
; 180000000L = 180 MHz (Overclock)
; 200000000L = 200 MHz (Maximum Overclock)
cpu_speed = 120000000L
debugger = jlink
lib_deps =
adafruit/Adafruit Zero DMA Library@^1.1.1
; Upload protocol:
; sam-ba = Native USB (Default)
; jlink = J-Link Debugger
sketch_upload_protocol = sam-ba
[env]
framework = arduino
build_src_filter =
;+<main_gps-telemetry.cpp>
+<main_rc.cpp>
; AVR boards:
[env:megaatmega2560]
board = megaatmega2560
platform = atmelavr
[env:micro]
board = micro
platform = atmelavr
[env:uno]
board = uno
platform = atmelavr
; Cortex M0+ boards:
[env:adafruit_feather_m0]
board = adafruit_feather_m0
lib_deps = ${common.lib_deps}
platform = atmelsam
[env:adafruit_feather_m0_express]
board = adafruit_feather_m0_express
lib_deps = ${common.lib_deps}
platform = atmelsam
[env:adafruit_itsybitsy_m0]
board = adafruit_itsybitsy_m0
lib_deps = ${common.lib_deps}
platform = atmelsam
[env:adafruit_metro_m0]
board = adafruit_metro_m0
lib_deps = ${common.lib_deps}
platform = atmelsam
[env:mkrfox1200]
board = mkrfox1200
lib_deps = ${common.lib_deps}
platform = atmelsam
[env:mkrgsm1400]
board = mkrgsm1400
lib_deps = ${common.lib_deps}
platform = atmelsam
[env:mkrnb1500]
board = mkrnb1500
lib_deps = ${common.lib_deps}
platform = atmelsam
[env:mkrvidor4000]
board = mkrvidor4000
lib_deps = ${common.lib_deps}
platform = atmelsam
[env:mkrwan1300]
board = mkrwan1300
lib_deps = ${common.lib_deps}
platform = atmelsam
[env:mkrwan1310]
board = mkrwan1310
lib_deps = ${common.lib_deps}
platform = atmelsam
[env:mkrwifi1010]
board = mkrwifi1010
lib_deps = ${common.lib_deps}
platform = atmelsam
[env:mkrzero]
board = mkrzero
lib_deps = ${common.lib_deps}
platform = atmelsam
[env:seeed_xiao]
board = seeed_xiao
lib_deps = ${common.lib_deps}
platform = atmelsam
[env:zero]
board = zero
lib_deps = ${common.lib_deps}
platform = atmelsam
[env:zeroUSB]
board = zeroUSB
lib_deps = ${common.lib_deps}
platform = atmelsam
; Cortex M4F boards:
[env:adafruit_feather_m4]
board = adafruit_feather_m4
board_build.f_cpu = ${common.cpu_speed}
build_flags = ${common.compile_flags}
lib_deps = ${common.lib_deps}
upload_protocol = ${common.sketch_upload_protocol}
platform = atmelsam
[env:adafruit_feather_m4_can]
board = adafruit_feather_m4_can
board_build.f_cpu = ${common.cpu_speed}
build_flags = ${common.compile_flags}
lib_deps = ${common.lib_deps}
platform = atmelsam
[env:adafruit_grandcentral_m4]
board = adafruit_grandcentral_m4
board_build.f_cpu = ${common.cpu_speed}
build_flags = ${common.compile_flags}
debug_tool = ${common.debugger}
lib_deps = ${common.lib_deps}
platform = atmelsam
upload_protocol = ${common.sketch_upload_protocol}
[env:adafruit_itsybitsy_m4]
board = adafruit_itsybitsy_m4
board_build.f_cpu = ${common.cpu_speed}
build_flags = ${common.compile_flags}
lib_deps = ${common.lib_deps}
platform = atmelsam
[env:adafruit_metro_m4]
board = adafruit_metro_m4
board_build.f_cpu = ${common.cpu_speed}
build_flags = ${common.compile_flags}
debug_tool = ${common.debugger}
lib_deps = ${common.lib_deps}
platform = atmelsam
upload_protocol = ${common.sketch_upload_protocol}
[env:adafruit_metro_m4_airliftlite]
board = adafruit_metro_m4_airliftlite
board_build.f_cpu = ${common.cpu_speed}
build_flags = ${common.compile_flags}
debug_tool = ${common.debugger}
lib_deps = ${common.lib_deps}
platform = atmelsam
upload_protocol = ${common.sketch_upload_protocol}
[platformio]
default_envs = adafruit_metro_m4
include_dir = src/include
lib_dir = src/lib
src_dir = src/src
test_dir = src/test