-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
131 lines (126 loc) · 4.4 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
; 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 = esp32doit-devkit-v1-usb
; ********************************************************************************
; Common for esp32 environments
; ********************************************************************************
[esp32_env_data]
build_flags =
-I./src/Common
-I./src/Gfx
-I./src/Hal
-I./src/Performance
-I./src/Plugin
-I./src/Plugin/Plugins
-I./src/StateMachine
-I./src/Update
-I./src/Web
-I./src/Web/WsCommand
-DCONFIG_ASYNC_TCP_RUNNING_CORE=0
-DCONFIG_ASYNC_TCP_USE_WDT=1
-Wl,-Map,firmware.map
lib_deps_external =
bblanchon/ArduinoJson @ 6.17.3
bblanchon/StreamUtils @ 1.6.0
makuna/NeoPixelBus @ 2.6.1
https://github.com/BlueAndi/AsyncTCP.git
https://github.com/BlueAndi/ESPAsyncWebServer.git#tilde
lib_deps_builtin =
Wire
lib_ignore =
ArduinoNative
check_tool = cppcheck, clangtidy
check_severity = high, medium
check_patterns =
include
src
lib/Gfx
lib/LinkedList
lib/StateMachine
lib/Utilities
check_flags =
cppcheck: --std=c++11 --inline-suppr --suppress=noExplicitConstructor --suppress=unreadVariable --suppress=unusedFunction --suppress=*:*/libdeps/*
clangtidy: --checks=-*,clang-analyzer-*,performance-*
check_skip_packages = yes
; Check for the compatibility with frameworks and dev/platforms
lib_compat_mode = strict
; Parses ALL C/C++ source files of the project and follows only by nested includes (#include ..., chain…) from the libraries.
; And evaluates C/C++ Preprocessor conditional syntax.
lib_ldf_mode = chain+
; ********************************************************************************
; ESP32 DevKit v1 - Programming via USB
; ********************************************************************************
[env:esp32doit-devkit-v1-usb]
platform = [email protected]
board = esp32doit-devkit-v1
framework = arduino
check_tool = ${esp32_env_data.check_tool}
check_severity = ${esp32_env_data.check_severity}
check_patterns = ${esp32_env_data.check_patterns}
check_flags = ${esp32_env_data.check_flags}
check_skip_packages = ${esp32_env_data.check_skip_packages}
lib_compat_mode = ${esp32_env_data.lib_compat_mode}
lib_ldf_mode = ${esp32_env_data.lib_ldf_mode}
build_flags = ${esp32_env_data.build_flags}
lib_deps =
${esp32_env_data.lib_deps_builtin}
${esp32_env_data.lib_deps_external}
lib_ignore =
${esp32_env_data.lib_ignore}
extra_scripts =
pre:getGitRev.py
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
upload_protocol = esptool
; ********************************************************************************
; ESP32 DevKit v1 - Programming via OTA
; ********************************************************************************
[env:esp32doit-devkit-v1-ota]
platform = [email protected]
board = esp32doit-devkit-v1
framework = arduino
check_tool = ${esp32_env_data.check_tool}
check_severity = ${esp32_env_data.check_severity}
check_patterns = ${esp32_env_data.check_patterns}
check_flags = ${esp32_env_data.check_flags}
check_skip_packages = ${esp32_env_data.check_skip_packages}
lib_compat_mode = ${esp32_env_data.lib_compat_mode}
lib_ldf_mode = ${esp32_env_data.lib_ldf_mode}
build_flags = ${esp32_env_data.build_flags}
lib_deps =
${esp32_env_data.lib_deps_builtin}
${esp32_env_data.lib_deps_external}
lib_ignore =
${esp32_env_data.lib_ignore}
extra_scripts =
pre:getGitRev.py
post:uploadDialog.py
upload_protocol = espota
upload_port = 192.168.x.x
upload_flags =
--port=3232
--auth=maytheforcebewithyou
; ********************************************************************************
; Native desktop platform - Only for testing purposes
; ********************************************************************************
[env:test]
platform = native
build_flags =
-std=c++11
-DARDUINO=100
-DPROGMEM=
-DNATIVE
lib_ignore =
check_tool = ${esp32_env_data.check_tool}
check_severity = ${esp32_env_data.check_severity}
check_patterns = ${esp32_env_data.check_patterns}
check_flags = ${esp32_env_data.check_flags}
check_skip_packages = ${esp32_env_data.check_skip_packages}