forked from shining-man/bsc_fw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
223 lines (187 loc) · 5 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
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
; 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 = googletest
lib_deps =
https://github.com/shining-man/ESP32-TWAI
https://github.com/meikjaeckle/type_safe#platformio
https://github.com/thingsboard/pubsubclient
build_flags =
;-L lib_precompiled
-std=gnu++2a
-std=gnu11
-fexceptions
build_unflags =
-std=gnu++11
-std=gnu99
-fno-exceptions
[env:native_test]
platform = native
test_framework = ${env.test_framework}
build_flags =
${env.build_flags}
; In case you want to run the unit tests in release mode
[env:native_test_release]
platform = native
test_framework = ${env.test_framework}
build_flags =
${env.build_flags}
-DNDEBUG
build_unflags =
${env.build_unflags}
-g
[env_bsc]
extends = env
platform = https://github.com/shining-man/platform-espressif32-t/releases/download/bsc_v1/platform-espressif32.zip ;2022.12.0
;platform = espressif32@~6.4.0
board = esp32dev
framework = arduino
test_framework = ${env.test_framework}
test_speed = 115200
;platform_packages = framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.14
lib_deps =
${env.lib_deps}
monitor_speed = 115200
monitor_filters =
esp32_exception_decoder
colorize
board_build.flash_size = 16MB
board_build.partitions = default_bsc.csv
; Debug
;debug_tool = esp-prog
;debug_init_break = tbreak setup
; Set optimization level and amount of debug information generated by the compiler
;debug_build_flags = -O0 -ggdb3 -g3
;upload_protocol = esp-prog
;upload_speed = 921600
;upload_port = COM6
extra_scripts =
pre:scripts/prebuild_parameter.py
;post:scripts/postbuild_bin.py
;post:scripts/log_build_output.py
build_flags =
${env.build_flags}
;-llibwebapp2
-DBSC_SW_SPEZIAL="\"Insider\""
-DDEBUG_ON_FS
-DLOG_LOCAL_LEVEL=ESP_LOG_DEBUG
-DLOG_LOCAL_LEVEL_BSC=ESP_LOG_DEBUG
-DCORE_DEBUG_LEVEL=1 ;1=Errors
build_unflags =
${env.build_unflags}
-DDEBUG_ON_HW_SERIAL
[env:bsc]
extends = env_bsc
[env:bsc_en_US]
extends = env_bsc
extra_scripts =
${env_bsc.extra_scripts}
pre:scripts/params_lang.py
pre:scripts/webpage_lang.py
build_flags =
${env_bsc.build_flags}
-DBUILD_LANG="en_US"
[env:bsc_nl_NL]
extends = env_bsc
extra_scripts =
${env_bsc.extra_scripts}
pre:scripts/params_lang.py
pre:scripts/webpage_lang.py
build_flags =
${env_bsc.build_flags}
-DBUILD_LANG="nl_NL"
[env:bsc_hw_log]
platform = https://github.com/shining-man/platform-espressif32-t/releases/download/bsc_v1/platform-espressif32.zip ;2022.12.0
board = esp32dev
framework = arduino
test_framework = ${env.test_framework}
lib_deps =
${env.lib_deps}
monitor_speed = 115200
monitor_filters =
esp32_exception_decoder
colorize
;log2file
board_build.flash_size = 16MB
board_build.partitions = default_bsc.csv
extra_scripts =
pre:scripts/prebuild_parameter.py
;post:scripts/postbuild_bin.py
build_flags =
${env.build_flags}
;-llibwebapp2_serial_log
-DBSC_SW_SPEZIAL="\"SERIAL_LOG\""
-DDEBUG_ON_HW_SERIAL
-DLOG_LOCAL_LEVEL=ESP_LOG_DEBUG
-DLOG_LOCAL_LEVEL_BSC=ESP_LOG_DEBUG
-DCORE_DEBUG_LEVEL=1 ;1=Errors
;-DCOMPILE_UNIX_TIME=$UNIX_TIME
build_unflags =
${env.build_unflags}
-DDEBUG_ON_FS
[env:bsc_LILYGO_TCAN485]
platform = https://github.com/shining-man/platform-espressif32-t/releases/download/bsc_v1/platform-espressif32.zip ;2022.12.0
board = esp32dev
framework = arduino
lib_deps =
${env.lib_deps}
https://github.com/adafruit/Adafruit_NeoPixel
monitor_speed = 115200
monitor_filters =
esp32_exception_decoder
colorize
board_build.flash_size = 16MB
board_build.partitions = default_bsc.csv
extra_scripts =
pre:scripts/prebuild_parameter.py
;post:scripts/postbuild_bin.py
build_flags =
${env.build_flags}
;-llibwebapp2
-DBSC_SW_SPEZIAL="\"\""
-DLILYGO_TCAN485
-DDEBUG_ON_FS
;-DDEBUG_ON_HW_SERIAL
-DLOG_LOCAL_LEVEL=ESP_LOG_DEBUG
-DLOG_LOCAL_LEVEL_BSC=ESP_LOG_DEBUG
-DCORE_DEBUG_LEVEL=1
build_unflags =
${env.build_unflags}
-DDEBUG_ON_HW_SERIAL
;-DDEBUG_ON_FS
[env:bsc_LILYGO_TCAN485_UTEST]
platform = https://github.com/shining-man/platform-espressif32-t/releases/download/bsc_v1/platform-espressif32.zip ;2022.12.0
board = esp32dev
framework = arduino
lib_deps =
${env.lib_deps}
https://github.com/adafruit/Adafruit_NeoPixel
monitor_speed = 115200
monitor_filters =
esp32_exception_decoder
colorize
board_build.flash_size = 16MB
board_build.partitions = default_bsc.csv
extra_scripts =
pre:scripts/prebuild_parameter.py
;post:scripts/postbuild_bin.py
build_flags =
${env.build_flags}
;-llibwebapp2_serial_log
-DBSC_SW_SPEZIAL="\"\""
-DLILYGO_TCAN485
-DDEBUG_ON_HW_SERIAL
-DUTEST_RESTAPI
-DLOG_LOCAL_LEVEL=ESP_LOG_DEBUG
-DLOG_LOCAL_LEVEL_BSC=ESP_LOG_DEBUG
-DCORE_DEBUG_LEVEL=1
build_unflags =
${env.build_unflags}
-DDEBUG_ON_FS