-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathplatformio.ini
144 lines (131 loc) · 2.83 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
; platformio.ini
;
; Pathfinder for Autonomous Navigation
; Space Systems Design Studio
; FlightSoftware
;
; This file defines all base environments that every build target in the
; repository should be based on in one way or another. Commented environments
; are intended to extended to create build target. Uncommented ones are intended
; to be internal to this file.
;
; Add additional targets to one of these files: `configs/*.ini`.
;
[platformio]
lib_dir = lib/common/
extra_configs = configs/*.ini
[all]
build_flags =
-Werror
-D GNC_NO_CASSERT
-Ilib/common/ArduinoJson/src
lib_extra_dirs =
lib/common/psim/lib
lib_ldf_mode = chain+
lib_archive = false
; ^^ This option doesn't seem to propegate across files but helps with finding
; library headers if you're having difficulties
[native]
extends = all
build_flags =
${all.build_flags}
-DUNITY_INCLUDE_DOUBLE
-DDESKTOP
-std=c++14
-Wall
-lpthread
platform = native
; native_debug
;
; Base environment for all debug builds on the native platform. See `native_ci`
; if the `CI` macro should be defined
[native_debug]
extends = native
build_flags =
${native.build_flags}
-g
-O0
--coverage
; native_ci
;
; Base environment for all continuous integration, debug builds.
[native_ci]
extends = native_debug
build_flags =
${native_debug.build_flags}
-DCI
; native_release
;
; Base environment for all release builds on the native platform - note that
; assertions are disabled.
[native_release]
extends = native
build_flags =
${native.build_flags}
-O3
; leader
;
; Inteded to be used an a 'mix-in' with build environments to specify the build
; is intended for the leader spacecraft.
[leader]
build_flags =
-DPAN_LEADER
; follower
;
; Inteded to be used an a 'mix-in' with build environments to specify the build
; is intended for the follower spacecraft.
[follower]
build_flags =
-DPAN_FOLLOWER
[teensy]
extends = all
build_flags =
${all.build_flags}
-fno-math-errno
-DLIN_RANDOM_SEED=6828031
-DUNITY_INCLUDE_DOUBLE
-DNDEBUG
-D SERIAL3_RX_BUFFER_SIZE=512
-D SERIAL4_RX_BUFFER_SIZE=1024
build_unflags =
-fsingle-precision-constant
-fmath-errno
framework = arduino
platform = teensy
upload_protocol = teensy-cli
; teensy31
;
; Base environment for all builds on the Teensy 3.1.
[teensy31]
extends = teensy
board = teensy31
build_flags =
${teensy.build_flags}
-DPAN_TEENSY=31
; teensy32
;
; Base environment for all builds on the Teensy 3.2.
[teensy32]
extends = teensy
board = teensy31
build_flags =
${teensy.build_flags}
-DPAN_TEENSY=32
; teensy35
;
; Base environment for all builds on the Teensy 3.5.
[teensy35]
extends = teensy
board = teensy35
build_flags =
${teensy.build_flags}
-DPAN_TEENSY=35
; teensy36
;
; Base environment for all builds on the Teensy 3.6.
[teensy36]
extends = teensy
board = teensy36
build_flags =
${teensy.build_flags}
-DPAN_TEENSY=36