forked from uxjulia/CrossInk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatformio.ini
More file actions
221 lines (205 loc) · 6.68 KB
/
Copy pathplatformio.ini
File metadata and controls
221 lines (205 loc) · 6.68 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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
[platformio]
default_envs = teensy, tiny, xlarge, no_emoji
extra_configs = platformio.local.ini
[crosspoint]
version = 1.3.0
crossink_version = 1.3.2
[base]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.37/platform-espressif32.zip
board = esp32-c3-devkitm-1
framework = arduino
monitor_speed = 115200
upload_speed = 921600
check_tool = cppcheck
check_flags = --enable=all --suppress=missingInclude --suppress=missingIncludeSystem --suppress=unusedFunction --suppress=unmatchedSuppression --suppress=*:*/.pio/* --inline-suppr
check_skip_packages = yes
board_upload.flash_size = 16MB
board_upload.maximum_size = 16777216
board_upload.offset_address = 0x10000
build_flags =
-DARDUINO_USB_MODE=1
-DARDUINO_USB_CDC_ON_BOOT=1
-DEINK_DISPLAY_SINGLE_BUFFER_MODE=1
-DDISABLE_FS_H_WARNING=1
-DDESTRUCTOR_CLOSES_FILE=1
# https://libexpat.github.io/doc/api/latest/#XML_GE
-DXML_GE=0
-DXML_CONTEXT_BYTES=1024
-std=gnu++2a
# Enable UTF-8 long file names in SdFat
-DUSE_UTF8_LONG_NAMES=1
# Increase PNG scanline buffer to support up to 2048px wide images
# Default is (320*4+1)*2=2562, we need more for larger images
-DPNG_MAX_BUFFERED_PIXELS=16416
-Wno-bidi-chars
-Wl,--wrap=panic_print_backtrace,--wrap=panic_abort,--wrap=bootloader_common_check_efuse_blk_validity
-fno-exceptions
build_unflags =
-std=gnu++11
-fexceptions
; Board configuration
board_build.flash_mode = dio
board_build.flash_size = 16MB
board_build.partitions = partitions.csv
extra_scripts =
pre:scripts/build_web.py
pre:scripts/gen_i18n.py
pre:scripts/git_branch.py
pre:scripts/patch_jpegdec.py
pre:scripts/patch_websockets.py
post:scripts/rename_firmware.py
; Libraries
lib_deps =
BatteryMonitor=symlink://open-x4-sdk/libs/hardware/BatteryMonitor
InputManager=symlink://open-x4-sdk/libs/hardware/InputManager
EInkDisplay=symlink://open-x4-sdk/libs/display/EInkDisplay
SDCardManager=symlink://open-x4-sdk/libs/hardware/SDCardManager
bblanchon/ArduinoJson @ 7.4.2
ricmoo/QRCode @ 0.0.1
bitbank2/PNGdec @ 1.1.6
https://github.com/bitbank2/JPEGDEC.git#86282979224c8a32fd51e091ed5a35b0c699a52b
links2004/WebSockets @ 2.7.3
lib_ignore =
HalClockSim
[env:default]
extends = base
build_flags =
${base.build_flags}
; CROSSPOINT_VERSION is set by scripts/git_branch.py (includes current branch)
-DCROSSINK_VERSION=\"${crosspoint.crossink_version}\"
-DCROSSPOINT_FIRMWARE_VARIANT=\"tiny\"
-DENABLE_SERIAL_LOG
-DLOG_LEVEL=1 ; Set log level to debug for development builds
-DOMIT_TEENSY_FONT
-DOMIT_ITTY_BITTY_FONT
-DOMIT_XLARGE_FONT
-DOMIT_HUGE_FONT
[env:debug]
extends = base
build_flags =
${base.build_flags}
; CROSSPOINT_VERSION and CROSSINK_VERSION injected by scripts/git_branch.py
; (uses $CROSSPOINT_RC_HASH env var in CI, or git short hash locally)
-DCROSSPOINT_FIRMWARE_VARIANT=\"tiny\"
-DCROSSINK_BUILD_ENV=\"debug\"
-DCROSSINK_ENABLE_READING_STATS_TOGGLE
-DCROSSINK_SHOW_SLEEP_BUILD_INFO
-DENABLE_SERIAL_LOG
-DLOG_LEVEL=2 ; Set log level to debug for development builds
-DOMIT_TEENSY_FONT
-DOMIT_ITTY_BITTY_FONT
-DOMIT_XLARGE_FONT
-DOMIT_HUGE_FONT
; Omits all larger fonts and only includes the four smallest font sizes
[env:teensy]
extends = base
build_flags =
${base.build_flags}
-DCROSSPOINT_VERSION=\"${crosspoint.version}\"
-DCROSSINK_VERSION=\"${crosspoint.crossink_version}-teensy\"
-DCROSSPOINT_FIRMWARE_VARIANT=\"teensy\"
-DENABLE_SERIAL_LOG
-DLOG_LEVEL=1
-DOMIT_MEDIUM_FONT
-DOMIT_LARGE_FONT
-DOMIT_XLARGE_FONT
-DOMIT_HUGE_FONT
; Omits two smallest and largest font sizes
[env:tiny]
extends = base
build_flags =
${base.build_flags}
-DCROSSPOINT_VERSION=\"${crosspoint.version}\"
-DCROSSINK_VERSION=\"${crosspoint.crossink_version}-tiny\"
-DCROSSPOINT_FIRMWARE_VARIANT=\"tiny\"
-DENABLE_SERIAL_LOG
-DLOG_LEVEL=1
-DOMIT_TEENSY_FONT
-DOMIT_ITTY_BITTY_FONT
-DOMIT_XLARGE_FONT
-DOMIT_HUGE_FONT
; Omits smaller font sizes and only includes the three largest font sizes
[env:xlarge]
extends = base
build_flags =
${base.build_flags}
-DCROSSPOINT_VERSION=\"${crosspoint.version}\"
-DCROSSINK_VERSION=\"${crosspoint.crossink_version}-xlarge\"
-DCROSSPOINT_FIRMWARE_VARIANT=\"xlarge\"
-DENABLE_SERIAL_LOG
-DLOG_LEVEL=1
-DOMIT_TEENSY_FONT
-DOMIT_ITTY_BITTY_FONT
-DOMIT_TINY_FONT
-DOMIT_SMALL_FONT
-DOMIT_MEDIUM_FONT
; Includes Tiny through Extra Large without emoji support.
[env:no_emoji]
extends = base
build_flags =
${base.build_flags}
-DCROSSPOINT_VERSION=\"${crosspoint.version}\"
-DCROSSINK_VERSION=\"${crosspoint.crossink_version}-no_emoji\"
-DCROSSPOINT_FIRMWARE_VARIANT=\"no_emoji\"
-DENABLE_SERIAL_LOG
-DLOG_LEVEL=1
-DOMIT_TEENSY_FONT
-DOMIT_ITTY_BITTY_FONT
-DOMIT_HUGE_FONT
-DOMIT_EMOJI_FONTS
[env:simulator]
platform = native
custom_run_simulator_target_owner = project
lib_compat_mode = off
build_src_filter =
+<*>
-<network/CrossPointWebServer.cpp>
-<network/FirmwareFlasher.cpp>
-<network/OtaBootSwitch.cpp>
-<network/OtaUpdater.cpp>
-<network/WebDAVHandler.cpp>
-<platform/skip_efuse_blk_check.c>
build_flags =
-std=gnu++2a
!sdl2-config --cflags --libs
-DSIMULATOR
-Wno-c++11-narrowing
-DCROSSPOINT_VERSION=\"sim\"
-DCROSSINK_VERSION=\"${crosspoint.crossink_version}\"
-DCROSSPOINT_FIRMWARE_VARIANT=\"simulator\"
-DENABLE_SERIAL_LOG
-DLOG_LEVEL=2
-DEINK_DISPLAY_SINGLE_BUFFER_MODE=1
-DMINIZ_NO_ZLIB_COMPATIBLE_NAMES=1
-DXML_GE=0
-DXML_CONTEXT_BYTES=1024
-DUSE_UTF8_LONG_NAMES=1
-DPNG_MAX_BUFFERED_PIXELS=16416
-DDISABLE_FS_H_WARNING=1
-DDESTRUCTOR_CLOSES_FILE=1
;-DSIMULATOR_DEVICE_X3 ; uncomment to simulate X3 screen size
-Isrc
;-DOMIT_EMOJI_FONTS ; uncomment to omit emoji/symbols glyphs from reading fonts
;-DOMIT_TEENSY_FONT ; uncomment to omit teensy (8px) font size
;-DOMIT_ITTY_BITTY_FONT ; uncomment to omit itty bitty (9px) font size
;-DOMIT_TINY_FONT ; uncomment to omit tiny (10px) font size
;-DOMIT_SMALL_FONT ; uncomment to omit small (12px) font size
;-DOMIT_MEDIUM_FONT ; uncomment to omit medium (14px) font size
;-DOMIT_LARGE_FONT ; uncomment to omit large (16px) font size
;-DOMIT_XLARGE_FONT ; uncomment to omit extra large (18px) font size
;-DOMIT_HUGE_FONT ; uncomment to omit huge (20px) font size
-DCROSSPOINT_SIM_USE_NATIVE_DECODERS
-Dmemcpy_P=memcpy ; For native JPEGDEC
lib_ignore = hal, WebSockets
extra_scripts =
pre:scripts/gen_i18n.py
pre:scripts/git_branch.py
pre:scripts/build_web.py
post:.pio/libdeps/$PIOENV/simulator/run_simulator_project.py
lib_deps =
simulator=https://github.com/uxjulia/crosspoint-simulator
bblanchon/ArduinoJson @ 7.4.2
ricmoo/QRCode @ ^0.0.1
bitbank2/PNGdec @ 1.1.6
https://github.com/bitbank2/JPEGDEC.git#86282979224c8a32fd51e091ed5a35b0c699a52b
links2004/WebSockets @ 2.7.3