-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
160 lines (144 loc) · 3.08 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
; 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
[env:teensy41]
platform = teensy
board = teensy41
framework = arduino
; platform_packages =
; platformio/toolchain-gccarmnoneeabi-teensy@^1.110301.0
lib_deps =
; adafruit/Adafruit BNO08x@^1.2.5
adafruit/Adafruit BNO055 @ ^1.6.3
Adafruit Unified Sensor
; Adafruit BMP280 Library
SPI
nanopb/Nanopb @ ^0.4.8
lin
build_flags =
; -D NATIVE
; -g
-D VITL
-D TEENSY
-D USE_RADIO
-O2
; -I external/spdlog/include
; -fpermissive
-D DEBUGSER # define this if we want log() to do something
-std=c++17
-std=gnu++17
build_unflags =
-std=gnu++11
; -std=c++2a
build_src_filter =
+<targets/main.cpp>
+<tasks>
+<common>
+<air_nano_proto>
[env:teensy40]
platform = teensy
board = teensy40
framework = arduino
; platform_packages =
; platformio/toolchain-gccarmnoneeabi-teensy@^1.110301.0
lib_deps =
; adafruit/Adafruit BNO08x@^1.2.5
adafruit/Adafruit BNO055 @ ^1.6.3
Adafruit Unified Sensor
; Adafruit BMP280 Library
nanopb/Nanopb @ ^0.4.8
SPI
nanopb
lin
build_flags =
; -D NATIVE
; -g
-D VITL
-D TEENSY
-D T40
-D USE_RADIO
-O2
; -I external/spdlog/include
; -fpermissive
-D DEBUGSER # define this if we want log() to do something
-std=c++17
-std=gnu++17
build_unflags =
-std=gnu++11
; -std=c++2a
build_src_filter =
+<targets/main.cpp>
+<tasks>
+<common>
+<air_nano_proto>
[env:dev]
platform = native
build_type = debug
build_flags =
-D NATIVE
-g
-O0
-D DEBUGSER # define this if we want log() to do something
; -I external/spdlog/include
-std=c++17
-std=gnu++17
-I src/native_only
build_unflags =
-std=gnu++11
lib_deps =
; adafruit/Adafruit BNO08x@^1.2.5
nanopb
nanopb/Nanopb@^0.4.8
lin
build_src_filter =
+<targets/main.cpp>
+<tasks>
+<common>
+<air_nano_proto>
+<native_only>
[env:imu_harness]
platform = teensy
board = teensy41
framework = arduino
build_src_filter = +<targets/imu_harness.cpp> +<common>
lib_deps = adafruit/Adafruit BNO08x@^1.2.5
[env:struct_serialize]
platform = native
build_src_filter = +<targets/struct_serialize.cpp> +<common>
build_flags =
-lprotobuf
-g
-O0
[env:bno055_harness]
platform = teensy
board = teensy41
framework = arduino
build_src_filter = +<targets/bno055_harness.cpp> +<common>
lib_deps =
; adafruit/Adafruit BNO08x@^1.2.5
adafruit/Adafruit BNO055 @ ^1.6.3
Adafruit Unified Sensor
; Adafruit BMP280 Library
SPI
[env:teensy_blink]
platform = teensy
board = teensy40
framework = arduino
build_src_filter = +<targets/teensy_blink.cpp> +<common>
lib_deps =
; adafruit/Adafruit BNO08x@^1.2.5
; adafruit/Adafruit BNO055 @ ^1.6.3
; Adafruit Unified Sensor
; ; Adafruit BMP280 Library
; SPI
[env:teensy_esc_motor]
platform = teensy
board = teensy40
framework = arduino
build_src_filter = +<targets/teensy_esc_motor.cpp> +<common>