-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplatformio.ini
More file actions
201 lines (180 loc) · 4.86 KB
/
Copy pathplatformio.ini
File metadata and controls
201 lines (180 loc) · 4.86 KB
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
; 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
;Memo: extends cannot ineherit from lib_extra_dirs from generic section (not starting with [env:...] )
[platformio]
default_envs = motion
[env]
upload_speed = 921600
monitor_speed = 115200
[env:release]
board = esp32-s3-devkitc-1
board_build.variants_dir = variants
framework = arduino
platform = espressif32 @ 6.9.0
board_build.filesystem = littlefs
board_build.partitions = partitions_custom.csv
extra_scripts =
pre:scripts/copy_default_config.py
pre:scripts/define-version.py
pre:scripts/set-batt-type.py
lib_archive = no ;temporary disabled to save time
lib_ldf_mode = deep+ ;temporary disabled to save time
build_unflags = -DARDUINO_USB_MODE=1
build_flags =
-DUSE_TINYUSB=1
-DARDUINO_USB_MODE=0
-DARDUINO_USB_CDC_ON_BOOT=1
; '-DUSB_MANUFACTURER="Pipo-Interfaces"'
-DASYNCWEBSERVER_REGEX
-fpermissive
'-DCFG_TUSB_CONFIG_FILE="${platformio.home_dir}/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/arduino_tinyusb/include/tusb_config.h"'
-DCORE_DEBUG_LEVEL=3 ; should be 3 Info level for production (log_e, log_w, log_i)
-DASYNC_TCP_RUNNING_CORE=0
; -DDEBUG_WATCHDOG
[env:dev]
; best for dev => autoupload (no need to reset board) + minimal build time + serial debug info (But no USB Midi/HID)
; Note first time using this you have to reset the board, to have the usb mode toggled, then ok
; extends = base
board = esp32-s3-devkitc-1
board_build.variants_dir = variants
framework = arduino
platform = espressif32 @ 6.9.0
board_build.filesystem = littlefs
board_build.partitions = partitions_custom.csv
extra_scripts =
pre:scripts/copy_default_config.py
pre:scripts/define-version.py
pre:scripts/set-batt-type.py
build_type = debug
lib_archive = yes
lib_ldf_mode = chain
debug_tool = esp-builtin
debug_init_break = tbreak setup
debug_speed = 921600
build_unflags= ;needed empty to override env base
build_flags=
-DARDUINO_USB_CDC_ON_BOOT=1
-DDISABLE_USB_COMM
-DASYNCWEBSERVER_REGEX
-fpermissive
-DCORE_DEBUG_LEVEL=5 ; should be 4 Debug level for development (log_e, log_w, log_i, log_d)
-DCONFIG_BT_NIMBLE_LOG_LEVEL=3
-DASYNC_TCP_RUNNING_CORE=0
-DPIO_FRAMEWORK_ARDUINO_ENABLE_EXCEPTIONS ;not tested if improve anything
monitor_filters = esp32_exception_decoder ;not tested if improve anything
;MOTION
;REV1.0
[env:motion]
board_build.variant = pipo_motion
extends = env:release
build_flags=
${env:release.build_flags}
-DPIPO_MOTION=1
-DHW_REV=10
'-DUSB_PRODUCT="Pipo-Motion"'
lib_extra_dirs = lib-variants/motion
;REV1.1
[env:motion_rev1_1]
board_build.variant = pipo_motion
extends = env:release
build_flags=
${env:release.build_flags}
-DPIPO_MOTION=1
-DHW_REV=12
'-DUSB_PRODUCT="Pipo-Motion"'
lib_extra_dirs = lib-variants/motion
[env:dev_motion_rev1_1]
board_build.variant = pipo_motion
extends = env:dev
build_flags=
${env:dev.build_flags}
-DPIPO_MOTION=1
-DHW_REV=12
lib_extra_dirs = lib-variants/motion
;RANGE
;REV1.0
[env:range]
board_build.variant = pipo_range
extends = env:release
build_flags=
${env:release.build_flags}
-DPIPO_RANGE=1
-DHW_REV=10
'-DUSB_PRODUCT="Pipo-Range"'
lib_extra_dirs = lib-variants/range
;REV1.1
[env:range_rev1_1]
board_build.variant = pipo_range
extends = env:release
build_flags=
${env:release.build_flags}
-DPIPO_RANGE=1
-DHW_REV=12
'-DUSB_PRODUCT="Pipo-Range"'
lib_extra_dirs = lib-variants/range
[env:dev_range_rev1_1]
board_build.variant = pipo_range
extends = env:dev
build_flags=
${env:dev.build_flags}
-DPIPO_RANGE=1
-DHW_REV=12
lib_extra_dirs = lib-variants/range
;ANALOG
;REV1.0
[env:analog]
board_build.variant = pipo_analog
extends = env:release
build_flags=
${env:release.build_flags}
-DPIPO_ANALOG=1
-DHW_REV=10
'-DUSB_PRODUCT="Pipo-Analog"'
lib_extra_dirs = lib-variants/analog
[env:dev_analog]
board_build.variant = pipo_analog
extends = env:dev
build_flags=
${env:dev.build_flags}
-DPIPO_ANALOG=1
-DHW_REV=10
lib_extra_dirs = lib-variants/analog
;REV2.0
[env:analog_rev2]
board_build.variant = pipo_analog
extends = env:release
build_flags=
${env:release.build_flags}
-DPIPO_ANALOG=1
-DHW_REV=21
'-DUSB_PRODUCT="Pipo-Analog"'
lib_extra_dirs = lib-variants/analog
[env:dev_analog_rev2]
board_build.variant = pipo_analog
extends = env:dev
build_flags=
${env:dev.build_flags}
-DPIPO_ANALOG=1
-DHW_REV=21
lib_extra_dirs = lib-variants/analog
[env:native]
platform = native
build_flags = -std=gnu++11
-DUNIT_TEST=1
-Itest/stubs/prefs
-Itest/stubs
-Isrc
-fpermissive
-Wno-missing-template-arg-list-after-template-kw
build_type = test
test_framework = doctest
lib_deps =
ArduinoFake
ArduinoJson