-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
platformio.ini
122 lines (106 loc) · 3.97 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
; 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 = SIM800L_IP5306_VERSION_20190610
; default_envs = SIM800L_AXP192_VERSION_20200327
; default_envs = SIM800C_AXP192_VERSION_20200609
; default_envs = SIM800L_IP5306_VERSION_20200811
; https://www.lilygo.cc/products/t-sim-a7670e
; default_envs = T-A7670X
; https://www.lilygo.cc/products/t-call-v1-4
; default_envs = T-Call-A7670X-V1-0
; default_envs = T-Call-A7670X-V1-1
; https://www.lilygo.cc/products/t-a7608e-h
; default_envs = T-A7608X
[env]
platform = espressif32
framework = arduino
extra_scripts = pre:build_ui.py
build_flags =
!echo '-D BUILD_GIT_BRANCH=\\"'${RELEASE_VERSION:-$(git symbolic-ref -q --short HEAD || git describe --tags --exact-match)}'\\"'
!echo '-D BUILD_GIT_COMMIT_HASH=\\"'$(git log -1 --pretty=%%h)'\\"'
lib_deps =
https://github.com/lewisxhe/TinyGSM
powerbroker2/ELMDuino @ ^3.3.0
PubSubClient @ ^2.8
ArduinoHttpClient @ ^0.6.1
ArduinoJson @ ^7.1.0
; TinyGSM @ ^0.12.0
vshymanskyy/StreamDebugger @ ^1.0.1
AXP202X_Library
[esp32dev_base]
board = esp32dev
monitor_speed = 115200
board_build.filesystem = littlefs
board_build.partitions = partition-custom-ota.csv
lib_deps = ${env.lib_deps}
mathieucarbou/AsyncTCP@^3.2.3
mathieucarbou/ESPAsyncWebServer@^3.1.1
lib_compat_mode = strict
build_flags = ${env.build_flags}
-fno-exceptions
-DOTA_ENABLED=1
-DBOARD_HAS_PSRAM
-DCONFIG_ESP_COREDUMP_ENABLE_TO_NONE=1
-mfix-esp32-psram-cache-issue
-DCONFIG_BT_ALLOCATION_FROM_SPIRAM_FIRST=1
-DCONFIG_SPIRAM_CACHE_WORKAROUND=1
-DCONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=1
-DCONFIG_RINGBUF_PLACE_FUNCTIONS_INTO_FLASH=1
-DCONFIG_ESP_WIFI_RX_IRAM_OPT=1
; -DCONFIG_HAL_DEFAULT_ASSERTION_LEVEL=0
; should allow iram as dram (testing only)
-DCONFIG_ESP32_IRAM_AS_8BIT_ACCESSIBLE_MEMORY=1
; -DCONFIG_BLE_MESH=0
; -DCONFIG_ETH_ENABLED=0
-DCONFIG_COMPILER_OPTIMIZATION_SIZE=1
-DCONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=1
-DCONFIG_COMPILER_FLOAT_LIB_FROM_RVFPLIB=1
[env:SIM800L_IP5306_VERSION_20190610]
extends = esp32dev_base
build_flags = ${esp32dev_base.build_flags}
-DSIM800L_IP5306_VERSION_20190610
-DTINY_GSM_MODEM_SIM800
[env:SIM800L_AXP192_VERSION_20200327]
extends = esp32dev_base
build_flags = ${esp32dev_base.build_flags}
-DSIM800L_AXP192_VERSION_20200327
-DTINY_GSM_MODEM_SIM800
[env:SIM800C_AXP192_VERSION_20200609]
extends = esp32dev_base
build_flags = ${esp32dev_base.build_flags}
-DSIM800C_AXP192_VERSION_20200609
-DTINY_GSM_MODEM_SIM800
[env:SIM800L_IP5306_VERSION_20200811]
extends = esp32dev_base
build_flags = ${esp32dev_base.build_flags}
-DSIM800L_IP5306_VERSION_20200811
-DTINY_GSM_MODEM_SIM800
[env:T-A7670X]
extends = esp32dev_base
build_flags = ${esp32dev_base.build_flags}
-DLILYGO_T_A7670
-DTINY_GSM_MODEM_A7670
[env:T-Call-A7670X-V1-0]
extends = esp32dev_base
build_flags = ${esp32dev_base.build_flags}
-DLILYGO_T_CALL_A7670_V1_0
-DTINY_GSM_MODEM_A7670
[env:T-Call-A7670X-V1-1]
extends = esp32dev_base
build_flags = ${esp32dev_base.build_flags}
-DLILYGO_T_CALL_A7670_V1_1
-DTINY_GSM_MODEM_A7670
; FLASH:16MB PSRAM:8M QSPI
[env:T-A7608X]
extends = esp32dev_base
build_flags = ${esp32dev_base.build_flags}
-DLILYGO_T_A7608X
-DTINY_GSM_MODEM_A7608