-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathplatformio.ini
More file actions
84 lines (79 loc) · 3.05 KB
/
platformio.ini
File metadata and controls
84 lines (79 loc) · 3.05 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
; 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 = seeed_xiao_esp32c3_debug
description = SOTACAT: Elecraft KX CAT control with SOTAMAT, by AB6D
; Define common items for all environments
[env]
platform = espressif32 @ 6.12.0
framework = espidf
monitor_speed = 115200
monitor_raw = yes
lib_deps =
https://github.com/jeffkowalski/esp32-smbus.git#dc95fb3 ; Pinned to specific commit for reproducibility
build_flags =
-DAPP_VERSION=1.0.0
-DAPP_NAME="SOTACAT"
-DAPP_DESCRIPTION="CAT control with SOTAMAT"
; Rather than use a SPIFFS file system, we embed the web files into the binary directly.
; In the future we may update the app to use a file system such as LittleFS or SPIFFS.
; Note: Binary files (PNG, ICO) use embed_files; text files use embed_txtfiles
board_build.embed_files =
src/web/sclogo.jpg
src/web/favicon.ico
src/web/index.htmlgz
src/web/style.cssgz
src/web/main.jsgz
src/web/bandprivileges.jsgz
src/web/chase.htmlgz
src/web/chase.jsgz
src/web/chase_api.jsgz
src/web/settings.htmlgz
src/web/settings.jsgz
src/web/run.htmlgz
src/web/run.jsgz
src/web/about.htmlgz
src/web/about.jsgz
src/web/qrx.htmlgz
src/web/qrx.jsgz
; ------------------------------------------------------------------------------------------
; ------------------------------------------------------------------------------------------
; Now define specific environments
; ------------------------------------------------------------------------------------------
; ------------------------------------------------------------------------------------------
; ------------------------------------------------------------------------------------------
; Seeed Xiao ESP32-C3 - Single Core, RISC-V, 160MHz, 4MB Flash, 320KB SRAM
; ------------------------------------------------------------------------------------------
[env:seeed_xiao_esp32c3_debug]
board = seeed_xiao_esp32c3
build_type = debug
board_build.partitions = partition_definitions/partitions_seeed_xiao_esp32c3_ota.csv
extra_scripts = pre:pio-pre-build-script.py
build_flags =
${env.build_flags}
-DSEEED_XIAO
-DDEBUG
-DESP_LOG_DEFAULT_LEVEL=ESP_LOG_VERBOSE
-DSC_BUILD_TYPE=\"D\"
-Og ; -Og is optimized for debugging
-g ; Generate debug info and include debug symbols in the binary
build_unflags = -Os
[env:seeed_xiao_esp32c3_release]
board = seeed_xiao_esp32c3
build_type = release
board_build.partitions = partition_definitions/partitions_seeed_xiao_esp32c3_ota.csv
extra_scripts = pre:pio-pre-build-script.py
build_flags =
${env.build_flags}
-DSEEED_XIAO
-DRELEASE
-DESP_LOG_DEFAULT_LEVEL=ESP_LOG_INFO
-DSC_BUILD_TYPE=\"R\"
-O3 ; Optimize: -Os optimizes for size, while -O3 optimizes for speed