Skip to content

Commit 0d952bf

Browse files
Merge pull request #469 from OpenEVSE/esp32-gateway-build-config-tidy-up
Small tidy-up of the ESP32 gateway configs
2 parents c1c9a8e + 01074d1 commit 0d952bf

File tree

2 files changed

+28
-31
lines changed

2 files changed

+28
-31
lines changed

.github/workflows/build.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
- openevse_esp32-gateway-old
2828
- openevse_esp32-gateway-e
2929
- openevse_esp32-gateway-f
30+
- openevse_esp32-gateway-e_dev
31+
- openevse_esp32-gateway-f_dev
32+
- openevse_esp32-poe-iso
3033
- openevse_esp32-heltec-wifi-lora-v2
3134

3235
steps:

platformio.ini

Lines changed: 25 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -249,28 +249,6 @@ build_flags =
249249
-D RANDOM_SEED_CHANNEL=1
250250
# https://github.com/espressif/arduino-esp32/blob/master/libraries/WiFi/examples/ETH_LAN8720/ETH_LAN8720.ino
251251

252-
[env:openevse_esp32-gateway-e]
253-
# For hardware RevE
254-
# https://github.com/OpenEVSE/ESP32_WiFi_V3.x/blob/master/docs/wired-ethernet.md
255-
board = esp32-gateway
256-
build_flags =
257-
${common.build_flags}
258-
${common.version}
259-
${common.src_build_flags}
260-
-D WIFI_LED=33
261-
-D WIFI_LED_ON_STATE=HIGH
262-
-D WIFI_BUTTON=34
263-
-D WIFI_BUTTON_PRESSED_STATE=LOW
264-
-D DEBUG_PORT=Serial
265-
-D RAPI_PORT=Serial2
266-
-D ENABLE_WIRED_ETHERNET
267-
-D RANDOM_SEED_CHANNEL=1
268-
-D RX2=16
269-
-D TX2=32
270-
-D RESET_ETH_PHY_ON_BOOT=1
271-
board_build.extra_flags = "-DARDUINO_ESP32_GATEWAY=\'E\'"
272-
upload_speed = 921600
273-
274252
[env:openevse_esp32-gateway-f]
275253
# For hardware RevF and RevG
276254
# https://github.com/OpenEVSE/ESP32_WiFi_V3.x/blob/master/docs/wired-ethernet.md
@@ -292,9 +270,33 @@ build_flags =
292270
board_build.extra_flags = "-DARDUINO_ESP32_GATEWAY=\'F\'"
293271
upload_speed = 921600
294272

273+
[env:openevse_esp32-gateway-e]
274+
# For hardware RevE
275+
# https://github.com/OpenEVSE/ESP32_WiFi_V3.x/blob/master/docs/wired-ethernet.md
276+
extends = env:openevse_esp32-gateway-f
277+
build_flags =
278+
${env:openevse_esp32-gateway-f.build_flags}
279+
-D RESET_ETH_PHY_ON_BOOT=1
280+
board_build.extra_flags = "-DARDUINO_ESP32_GATEWAY=\'E\'"
281+
282+
[env:openevse_esp32-gateway-e_dev]
283+
extends = env:openevse_esp32-gateway-e
284+
build_flags =
285+
${env:openevse_esp32-gateway-e.build_flags}
286+
${common.debug_flags}
287+
build_type = debug
288+
board_build.partitions = ${common.build_partitions_debug}
289+
290+
[env:openevse_esp32-gateway-f_dev]
291+
extends = env:openevse_esp32-gateway-f
292+
build_flags =
293+
${env:openevse_esp32-gateway-f.build_flags}
294+
${common.debug_flags}
295+
build_type = debug
296+
board_build.partitions = ${common.build_partitions_debug}
297+
295298
[env:openevse_esp32-poe-iso]
296299
# Tested against Rev C board
297-
extends = env:openevse_esp32-gateway
298300
board = esp32-poe-iso
299301
build_flags =
300302
${common.build_flags}
@@ -309,14 +311,6 @@ build_flags =
309311
-D RESET_ETH_PHY_ON_BOOT=1
310312
upload_speed = 921600
311313

312-
[env:openevse_esp32-gateway-e_dev]
313-
extends = env:openevse_esp32-gateway-e
314-
build_flags =
315-
${env:openevse_esp32-gateway-e.build_flags}
316-
${common.debug_flags}
317-
build_type = debug
318-
board_build.partitions = ${common.build_partitions_debug}
319-
320314
[env:openevse_esp32-heltec-wifi-lora-v2]
321315
board = heltec_wifi_lora_32_V2
322316
build_flags =

0 commit comments

Comments
 (0)