-
Notifications
You must be signed in to change notification settings - Fork 1
/
platformio.bak.ini
277 lines (247 loc) · 6.46 KB
/
platformio.bak.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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
;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 = build_SAMD
libdeps_dir = /tmp/libdeps
[env]
framework = arduino
build_flags =
; optimize knx stack
-D SMALL_GROUPOBJECT
-D USE_BINSEARCH
-D SENSORMODULE
-D LOGICMODULE
-D OVERRUN_COUNT=31
-D EOPR_TIMEOUT=32
-D MASK_VERSION=0x07B0
; use flash directly
;flash start at 1.5MiB
-D KNX_FLASH_SIZE=0x8000
; use EEPROM emulation
;-D DEBUG_TIMING
;-D LOGIC_TRACE
-Wno-unknown-pragmas
-Wno-switch
-Wno-write-strings
-Wno-format-overflow
-L../OGM-SensorDevices/src/bsec/cortex-m0plus
-lalgobsec
; debug timing in knx stack
monitor_speed = 115200
monitor_filters =
time
lib_ldf_mode = deep+
lib_deps =
SPI
Wire
; adafruit/Adafruit SleepyDog Library @ 1.4.0
adafruit/Adafruit BME280 Library @ 2.1.2
adafruit/Adafruit VEML7700 Library @ 2.1.0
; adafruit/Adafruit SCD30 @ ^1.0.6
sparkfun/SparkFun SCD30 Arduino Library @ 1.0.20
sensirion/Sensirion I2C SCD4x @ 0.3.1
pololu/VL53L1X @ 1.2.1
debug_tool = jlink
debug_build_flags = -O0 -ggdb3
debug_extra_cmds =
set output-radix 16
extra_scripts =
lib/OAM-LogicModule/show_flash_partitioning.py
[RP2040]
; platform = raspberrypi
platform = https://github.com/maxgerhardt/platform-raspberrypi.git#ac45b10
platform_packages = framework-arduinopico @ https://github.com/earlephilhower/arduino-pico/releases/download/3.3.2/rp2040-3.3.2.zip
board = rpipico ; is overwriteable in e.g. release or develop envs
board_build.core = earlephilhower
; platform_packages =
; framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git#2.3.2
; framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git
; configure filesystem size. Default 0 Mbyte.
; board_build.filesystem_size = 1M
; inject core package.. not yet registered with PlatformIO
; registry, so pull working version directly from git / download page.
; note that download link for toolchain is specific for OS. see https://github.com/earlephilhower/pico-quick-toolchain/releases.
; platform_packages =
; mumpf/framework-arduinopico@https://github.com/mumpf/arduino-pico.git
; maxgerhardt/toolchain-pico@https://github.com/earlephilhower/pico-quick-toolchain/releases/download/1.3.2-a/x86_64-w64-mingw32.arm-none-eabi-9d55fd1.220202.zip
; ; maxgerhardt/framework-arduinopico@file://c:\users\d019748\platformio\arduino-pico
build_flags =
${env.build_flags}
-D SERIAL_DEBUG=Serial
;flash start at 1.5MiB
-D KNX_FLASH_OFFSET=0x180000
; -D USE_RP2040_EEPROM_EMULATION
; -D USE_RP2040_LARGE_EEPROM_EMULATION
-D PIO_FRAMEWORK_ARDUINO_ENABLE_RTTI
-D LWIP_DONT_PROVIDE_BYTEORDER_FUNCTIONS
-O0
[SAMD]
platform = atmelsam
board = zeroUSB
build_flags =
${env.build_flags}
-D SERIAL_DEBUG=SerialUSB
; use EEPROM emulation
; -D USE_SAMD_EEPROM_EMULATION
; -D CRYSTALLESS
; -D WATCHDOG
-Wno-unknown-pragmas
-Wno-switch
lib_deps =
${env.lib_deps}
adafruit/Adafruit SleepyDog Library @ 1.4.0
debug_build_flags = -Os -ggdb3
[RP2040_develop]
build_flags =
-D DEBUG_DELAY=10000
-D BOARD_SMARTMF_1TE_RP2040
; -D BOARD_MASIFI_SENSOR_BREAKOUT
-D PRESENCEMODULE
-D WIREMODULE
[SAMD_develop]
build_flags =
-D DEBUG_DELAY=10000
-D BOARD_MASIFI_V3
-D PRESENCEMODULE
; -D WIREMODULE
[env:build_RP2040]
extends = RP2040
build_flags =
${RP2040.build_flags}
${RP2040_develop.build_flags}
[env:build_SAMD]
extends = SAMD
build_flags =
${SAMD.build_flags}
${SAMD_develop.build_flags}
[env:upload_USB_RP2040]
extends = RP2040
build_flags =
${RP2040.build_flags}
${RP2040_develop.build_flags}
upload_protocol = picotool
[env:upload_USB_SAMD]
extends = SAMD
build_flags =
${SAMD.build_flags}
${SAMD_develop.build_flags}
upload_protocol = sam-ba
[env:upload_JLINK_RP2040]
extends = RP2040
build_flags =
${RP2040.build_flags}
${RP2040_develop.build_flags}
upload_protocol = jlink
[env:upload_JLINK_SAMD]
extends = SAMD
build_flags =
${SAMD.build_flags}
${SAMD_develop.build_flags}
upload_protocol = jlink
[env:upload_Release_JLINK_SAMD]
extends = SAMD
build_flags =
${SAMD.build_flags}
-D DEBUG_DELAY=100
-D BOARD_MASIFI_V3
-D PRESENCEMODULE
upload_protocol = jlink
#### Release Environments
[env:release_Sensormodul_Breakout_RP2040]
extends = RP2040
build_flags =
${RP2040.build_flags}
-D DEBUG_DELAY=100
-D BOARD_MASIFI_SENSOR_BREAKOUT
-D PRESENCEMODULE
-D WIREMODULE
[env:release_Sensormodul_v31_SAMD_Wire]
extends = SAMD
build_flags =
${SAMD.build_flags}
-D DEBUG_DELAY=100
-D BOARD_MASIFI_V31
-D WIREMODULE
[env:release_Sensormodul_v31_SAMD_Vpm]
extends = SAMD
build_flags =
${SAMD.build_flags}
-D DEBUG_DELAY=100
-D BOARD_MASIFI_V31
-D PRESENCEMODULE
[env:release_Sensormodul_v30_SAMD_Wire]
extends = SAMD
build_flags =
${SAMD.build_flags}
-D DEBUG_DELAY=100
-D BOARD_MASIFI_V3
-D WIREMODULE
[env:release_Sensormodul_v30_SAMD_Vpm]
extends = SAMD
build_flags =
${SAMD.build_flags}
-D DEBUG_DELAY=100
-D BOARD_MASIFI_V3
-D PRESENCEMODULE
[env:release_Sensormodul_v40_RP2040]
extends = RP2040
build_flags =
${RP2040.build_flags}
-D DEBUG_DELAY=100
-D BOARD_MASIFI_V40
-D WIREMODULE
-D PRESENCEMODULE
[env:release_Sensormodul_v40_RP2040_Vpm]
extends = RP2040
build_flags =
${RP2040.build_flags}
-D DEBUG_DELAY=100
-D BOARD_MASIFI_V40
-D PRESENCEMODULE
[env:release_Sensormodul_v40_RP2040_Wire]
extends = RP2040
build_flags =
${RP2040.build_flags}
-D DEBUG_DELAY=100
-D BOARD_MASIFI_V40
-D WIREMODULE
[env:release_SmartMF_1TE_RP2040]
extends = RP2040
build_flags =
${RP2040.build_flags}
-D DEBUG_DELAY=100
-D BOARD_SMARTMF_1TE_RP2040
-D WIREMODULE
-D PRESENCEMODULE
[env:release_SmartMF_1TE_RP2040_Vpm]
extends = RP2040
build_flags =
${RP2040.build_flags}
-D DEBUG_DELAY=100
-D BOARD_SMARTMF_1TE_RP2040
-D PRESENCEMODULE
[env:release_SmartMF_1TE_RP2040_Wire]
extends = RP2040
build_flags =
${RP2040.build_flags}
-D DEBUG_DELAY=100
-D BOARD_SMARTMF_1TE_RP2040
-D WIREMODULE
### This is an example for enduser compiled environment
[env:enduser]
extends = SAMD
;extends = RP2040
upload_protocol = sam-ba
;upload_protocol = picotool
build_flags =
${SAMD.build_flags}
-D DEBUG_DELAY=100
-D BOARD_MASIFI_V2
; -D BOARD_MASIFI_HFPM_DEVEL