Skip to content

Commit 03d0fa2

Browse files
committedOct 17, 2022
add E32 env
1 parent 1fee760 commit 03d0fa2

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed
 

‎.github/workflows/pre_release.yml

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
- name: Build firmware
4343
run: |
4444
platformio run -e ci
45+
platformio run -e cie32
4546
platformio run -e cic3
4647
platformio run -e cis2
4748
platformio run -e cic3_v1

‎platformio.ini

+8
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ board_build.partitions = esp32_partition_4M.csv
6060
build_flags = ${common.build_flags}
6161
build_unflags = ${common.unbuild_flags}
6262

63+
[env:cie32]
64+
extra_scripts = scripts/rename_fw.py
65+
board = esp32dev
66+
platform = espressif32
67+
board_build.partitions = esp32_partition_4M.csv
68+
build_flags = ${common.build_flags} -DBOARD_E32
69+
build_unflags = ${common.unbuild_flags}
70+
6371
[env:cic3]
6472
extra_scripts = scripts/rename_fw.py
6573
board = lolin_c3_mini

‎src/system.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -1301,6 +1301,9 @@ bool System::load_board_profile(std::vector<int8_t> & data, const std::string &
13011301
(int8_t)EMSESP::system_.eth_clock_mode_};
13021302
} else {
13031303
// unknown, use defaults and return false
1304+
#ifdef BOARD_E32
1305+
data = {2, 4, 5, 17, 33, PHY_type::PHY_TYPE_LAN8720, 16, 1, 0}; // BBQKees Gateway E32
1306+
#else
13041307
data = {
13051308
EMSESP_DEFAULT_LED_GPIO,
13061309
EMSESP_DEFAULT_DALLAS_GPIO,
@@ -1312,6 +1315,7 @@ bool System::load_board_profile(std::vector<int8_t> & data, const std::string &
13121315
0, // phy_addr,
13131316
0 // clock_mode
13141317
};
1318+
#endif
13151319
return false;
13161320
}
13171321

‎src/web/WebSettingsService.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,11 @@ StateUpdateResult WebSettings::update(JsonObject & root, WebSettings & settings)
8787
#elif CONFIG_IDF_TARGET_ESP32S2
8888
settings.board_profile = root["board_profile"] | "S2MINI";
8989
#elif CONFIG_IDF_TARGET_ESP32
90+
#ifdef BOARD_E32
91+
settings.board_profile = root["board_profile"] | "E32";
92+
#else
9093
settings.board_profile = root["board_profile"] | EMSESP_DEFAULT_BOARD_PROFILE;
94+
#endif
9195
#endif
9296
if (!System::load_board_profile(data, settings.board_profile.c_str())) {
9397
settings.board_profile = "CUSTOM";

0 commit comments

Comments
 (0)