-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
84 lines (78 loc) · 2.45 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
; 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]
test_framework = custom
custom_nanopb_protos =
+<proto/*>
custom_nanopb_options = --output-dir ../../../../../lib/nanopb_messages
build_flags =
-D BUILD_ENV_$PIOENV
-D BUILD_TIME=$UNIX_TIME
extra_scripts = scripts/delay_after_upload.py
[env:rocket]
platform = [email protected]
board = teensy41
framework = arduino
upload_protocol = teensy-gui
build_src_filter = -<main-*.cpp> +<main-rocket.cpp>
lib_deps =
https://github.com/TeamSunride/Vector#v1.0
nanopb/Nanopb@^0.4.7
https://github.com/TeamSunride/Arduino-LSM6DSO32
https://github.com/TeamSunride/Arduino-LIS3MDL
SPI
jgromes/RadioLib@^5.1.2
sparkfun/SparkFun u-blox GNSS Arduino Library@^2.2.21
https://github.com/bolderflight/eigen
https://github.com/TeamSunride/Fifo#v1.1
[env:ground]
platform = atmelsam
board = adafruit_feather_m0
framework = arduino
build_src_filter = -<main-*.cpp> +<main-ground.cpp>
lib_deps =
https://github.com/TeamSunride/Vector#v1.0
nanopb/Nanopb@^0.4.7
adafruit/Adafruit Zero DMA Library@^1.1.1
SPI
jgromes/RadioLib@^5.1.2
https://github.com/bolderflight/eigen
https://github.com/TeamSunride/Fifo#v1.1
SD
[env:native]
platform = native
test_ignore = test_embedded
build_src_filter = -<main-*.cpp> +<main-native.cpp>
build_flags= -std=c++17
-D BUILD_ENV_$PIOENV
-D BUILD_TIME=$UNIX_TIME
lib_deps = https://github.com/TeamSunride/Vector#v1.0
nanopb/Nanopb@^0.4.7
https://github.com/bolderflight/eigen
[env:rocketHIL]
platform = [email protected]
board = teensy41
framework = arduino
upload_protocol = teensy-gui
build_src_filter = -<main-*.cpp> +<main-rocketHIL.cpp>
; override build flags
build_flags =
-D BUILD_ENV_rocket
-D BUILD_TIME=$UNIX_TIME
lib_deps =
https://github.com/TeamSunride/Vector#v1.0
nanopb/Nanopb@^0.4.7
https://github.com/TeamSunride/Arduino-LSM6DSO32
https://github.com/TeamSunride/Arduino-LIS3MDL
SPI
jgromes/RadioLib@^5.1.2
sparkfun/SparkFun u-blox GNSS Arduino Library@^2.2.21
https://github.com/bolderflight/eigen
https://github.com/TeamSunride/Fifo#v1.1