-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplatformio.ini
142 lines (126 loc) · 3.66 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
; PlatformIO Project Configuration File for EMS-ESP
; override any settings with your own local ones in pio_local.ini
[platformio]
default_envs = esp32, esp32c3, esp32s2, lolin_c3_mini_v1
; default_envs = esp32_16M
; default_envs = c3_mini_v1
; default_envs = ci
extra_configs =
factory_settings.ini
pio_local.ini
[common]
core_build_flags =
-Wall
-D CORE_DEBUG_LEVEL=0
-D NDEBUG
-D ARDUINO_ARCH_ESP32=1
-D ESP32=1
core_unbuild_flags =
; my_build_flags is set in pio_local.ini
my_build_flags =
build_flags =
${common.core_build_flags}
${factory_settings.build_flags}
${common.my_build_flags}
;-D ONEWIRE_CRC16=0
-D NO_GLOBAL_ARDUINOOTA
-D ARDUINOJSON_ENABLE_STD_STRING=1
-D ARDUINOJSON_USE_DOUBLE=0
; -D CONFIG_UART_ISR_IN_IRAM
-Os
unbuild_flags =
${common.core_unbuild_flags}
[env]
framework = arduino
monitor_speed = 115200
monitor_raw = yes
upload_speed = 921600
build_type = release
lib_ldf_mode = chain+
; debug_build_flags = -Os # optimize for size
check_tool = cppcheck, clangtidy
check_severity = high, medium
check_flags =
cppcheck: --std=c++11 -v
clangtidy: --checks=-*,clang-analyzer-*,performance-*
; build for GitHub Actions CI
; the Web interface is built seperately
[env:ci]
extra_scripts = scripts/rename_fw.py
board = esp32dev
platform = [email protected]
board_build.partitions = esp32_partition_4M.csv
build_flags = ${common.build_flags}
build_unflags = ${common.unbuild_flags}
[env:esp32]
extra_scripts =
pre:scripts/build_interface.py
scripts/rename_fw.py
board = esp32dev
; platform = [email protected]
platform = espressif32
board_upload.flash_size = 4MB
; board_build.partitions = esp32_factory_4M.csv
board_build.partitions = esp32_partition_4M.csv
build_flags = ${common.build_flags}
build_unflags = ${common.unbuild_flags}
[env:esp32_16M]
extra_scripts =
pre:scripts/build_interface.py
scripts/rename_fw.py
board = esp32dev
platform = espressif32
board_upload.flash_size = 16MB
board_build.partitions = esp32_partition_16M.csv
build_flags = ${common.build_flags}
build_unflags = ${common.unbuild_flags}
[env:esp32c3]
extra_scripts =
; pre:scripts/build_interface.py
scripts/rename_fw.py
board = lolin_c3_mini
; platform = [email protected]
platform = espressif32
board_upload.flash_size = 4MB
; board_build.partitions = esp32_factory_4M.csv
board_build.partitions = esp32_partition_4M.csv
build_flags = ${common.build_flags} -DBOARD_C3_MINI_V2
build_unflags = ${common.unbuild_flags}
; lolin C3 mini v1 needs special wifi init.
; https://www.wemos.cc/en/latest/c3/c3_mini_1_0_0.html#about-wifi
[env:lolin_c3_mini_v1]
extra_scripts =
;pre:scripts/build_interface.py
scripts/rename_fw.py
board = lolin_c3_mini
; platform = [email protected]
platform = espressif32
board_upload.flash_size = 4MB
; board_build.partitions = esp32_factory_4M.csv
board_build.partitions = esp32_partition_4M.csv
build_flags = ${common.build_flags} -DBOARD_C3_MINI_V1
build_unflags = ${common.unbuild_flags}
[env:esp32s2]
extra_scripts =
; pre:scripts/build_interface.py
scripts/rename_fw.py
board = lolin_s2_mini
; platform = [email protected]
platform = espressif32
board_upload.flash_size = 4MB
; board_build.partitions = esp32_factory_4M.csv
board_build.partitions = esp32_partition_4M.csv
build_flags = ${common.build_flags}
build_unflags = ${common.unbuild_flags}
[env:esp32s3]
extra_scripts =
; pre:scripts/build_interface.py
scripts/rename_fw.py
board = lolin_s3
platform = espressif32
; platform = https://github.com/platformio/platform-espressif32.git ; develop
board_upload.flash_size = 16MB
board_build.partitions = esp32_partition_16M.csv
build_flags = ${common.build_flags}
build_unflags = ${common.unbuild_flags}
; upload_protocol = esptool