-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplatformio.ini
75 lines (70 loc) · 2.05 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
; 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]
build_cache_dir = .pio/cache
lib_extra_dirs = .pio/lib_deps
extra_configs =
libraries.ini
[env]
platform = https://github.com/platformio/platform-espressif32.git @ 6.10.0
framework = espidf
test_framework = unity
debug_test = *
platform_packages = tasmota/tool-mklittlefs@^4.0.0
[common]
lib_deps =
squaredpotato/Result@^1.0.1
etlcpp/Embedded Template Library@^20.39.4
johboh/nlohmann-json@^3.11.3
build_unflags =
-std=gnu++11
-std=c++11
build_flags =
${libraries.etl}
${libraries.result}
${libraries.nlohmann}
-std=c++23
debug_speed = 40000
upload_protocol = esp-builtin
extra_scripts =
pre:scripts/pioFilesystem.py
[env:smartknob]
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
board = smartknob-ha-v1
board_build.partitions = partitions.csv
board_build.f_flash = 80000000L
board_build.flash_mode = qio
upload_protocol = ${common.upload_protocol}
build_unflags = ${common.build_unflags}
build_type = release
lib_deps = ${common.lib_deps}
build_flags =
${common.build_flags}
board_build.cmake_extra_args =
-DSDKCONFIG_DEFAULTS="sdkconfig.smartknob.defaults"
extra_scripts = ${common.extra_scripts}
[env:smartknob-debug]
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
board = smartknob-ha-v1
board_build.partitions = partitions.csv
board_build.f_flash = 80000000L
board_build.flash_mode = qio
upload_protocol = ${common.upload_protocol}
build_unflags = ${common.build_unflags}
build_type = debug
lib_deps =
${common.lib_deps}
build_flags =
${common.build_flags}
board_build.cmake_extra_args =
-DSDKCONFIG_DEFAULTS="sdkconfig.smartknob.defaults;sdkconfig.smartknob-debug.defaults"
extra_scripts = ${common.extra_scripts}