Skip to content

Commit c1344ae

Browse files
Stanimir-Petevme-no-dev
authored andcommitted
New version of the ESP32-EVB/Gateway/PoE boards (#2397)
In Board.txt file added board revision submenu to distinguish the different revisions of the same board. By selecting different revision in the Arduino menu different value of the predefined macro will be applied which is used inside the pins_arduino.h file to make different defines and values for the specific revision. In addition to this esp32-poe pin definitions is added ethernet power enable pin and also defined macro: BOARD_HAS_1BIT_SDMMC
1 parent f6b9e9c commit c1344ae

File tree

3 files changed

+48
-1
lines changed

3 files changed

+48
-1
lines changed

Diff for: boards.txt

+35-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ menu.FlashSize=Flash Size
66
menu.PartitionScheme=Partition Scheme
77
menu.DebugLevel=Core Debug Level
88
menu.PSRAM=PSRAM
9+
menu.Revision=Board Revision
910

1011
##############################################################
1112

@@ -1697,6 +1698,15 @@ esp32-evb.menu.FlashFreq.40.build.flash_freq=40m
16971698
esp32-evb.menu.UploadSpeed.115200=115200
16981699
esp32-evb.menu.UploadSpeed.115200.upload.speed=115200
16991700

1701+
esp32-evb.menu.PartitionScheme.default=Default
1702+
esp32-evb.menu.PartitionScheme.default.build.partitions=default
1703+
esp32-evb.menu.PartitionScheme.no_ota=No OTA (Large APP)
1704+
esp32-evb.menu.PartitionScheme.no_ota.build.partitions=no_ota
1705+
esp32-evb.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
1706+
esp32-evb.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (Large APPS with OTA)
1707+
esp32-evb.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
1708+
esp32-evb.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
1709+
17001710
##############################################################
17011711

17021712
esp32-gateway.name=OLIMEX ESP32-GATEWAY
@@ -1712,7 +1722,13 @@ esp32-gateway.serial.disableRTS=true
17121722
esp32-gateway.build.mcu=esp32
17131723
esp32-gateway.build.core=esp32
17141724
esp32-gateway.build.variant=esp32-gateway
1715-
esp32-gateway.build.board=ESP32_GATEWAY
1725+
#esp32-gateway.build.board=ESP32_GATEWAY
1726+
esp32-gateway.menu.Revision.RevC=Revision C or older
1727+
esp32-gateway.menu.Revision.RevC.build.board=ESP32_GATEWAY='C'
1728+
esp32-gateway.menu.Revision.RevE=Revision E
1729+
esp32-gateway.menu.Revision.RevE.build.board=ESP32_GATEWAY='E'
1730+
esp32-gateway.menu.Revision.RevF=Revision F
1731+
esp32-gateway.menu.Revision.RevF.build.board=ESP32_GATEWAY='F'
17161732

17171733
esp32-gateway.build.f_cpu=240000000L
17181734
esp32-gateway.build.flash_mode=dio
@@ -1730,6 +1746,15 @@ esp32-gateway.menu.FlashFreq.40.build.flash_freq=40m
17301746
esp32-gateway.menu.UploadSpeed.115200=115200
17311747
esp32-gateway.menu.UploadSpeed.115200.upload.speed=115200
17321748

1749+
esp32-gateway.menu.PartitionScheme.default=Default
1750+
esp32-gateway.menu.PartitionScheme.default.build.partitions=default
1751+
esp32-gateway.menu.PartitionScheme.no_ota=No OTA (Large APP)
1752+
esp32-gateway.menu.PartitionScheme.no_ota.build.partitions=no_ota
1753+
esp32-gateway.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
1754+
esp32-gateway.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (Large APPS with OTA)
1755+
esp32-gateway.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
1756+
esp32-gateway.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
1757+
17331758
##############################################################
17341759

17351760
esp32-poe.name=OLIMEX ESP32-PoE
@@ -1763,6 +1788,15 @@ esp32-poe.menu.FlashFreq.40.build.flash_freq=40m
17631788
esp32-poe.menu.UploadSpeed.115200=115200
17641789
esp32-poe.menu.UploadSpeed.115200.upload.speed=115200
17651790

1791+
esp32-poe.menu.PartitionScheme.default=Default
1792+
esp32-poe.menu.PartitionScheme.default.build.partitions=default
1793+
esp32-poe.menu.PartitionScheme.no_ota=No OTA (Large APP)
1794+
esp32-poe.menu.PartitionScheme.no_ota.build.partitions=no_ota
1795+
esp32-poe.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
1796+
esp32-poe.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (Large APPS with OTA)
1797+
esp32-poe.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
1798+
esp32-poe.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
1799+
17661800
##############################################################
17671801

17681802
espino32.name=ThaiEasyElec's ESPino32

Diff for: variants/esp32-gateway/pins_arduino.h

+9
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
1212
#define digitalPinHasPWM(p) (p < 34)
1313

14+
#if ARDUINO_ESP32_GATEWAY >= 'D'
15+
#define ETH_CLK_MODE ETH_CLOCK_GPIO17_OUT
16+
#define ETH_PHY_POWER 5
17+
#endif
18+
1419
static const uint8_t LED_BUILTIN = 33;
1520
#define BUILTIN_LED LED_BUILTIN // backward compatibility
1621

@@ -35,4 +40,8 @@ static const uint8_t A7 = 35;
3540

3641
static const uint8_t T9 = 32;
3742

43+
#if ARDUINO_ESP32_GATEWAY >= 'F'
44+
#define BOARD_HAS_1BIT_SDMMC
45+
#endif
46+
3847
#endif /* Pins_Arduino_h */

Diff for: variants/esp32-poe/pins_arduino.h

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
1212
#define digitalPinHasPWM(p) (p < 34)
1313

14+
#define ETH_CLK_MODE ETH_CLOCK_GPIO17_OUT
15+
#define ETH_PHY_POWER 12
1416

1517
static const uint8_t KEY_BUILTIN = 34;
1618

@@ -25,4 +27,6 @@ static const uint8_t MOSI = 2;
2527
static const uint8_t MISO = 15;
2628
static const uint8_t SCK = 14;
2729

30+
#define BOARD_HAS_1BIT_SDMMC
31+
2832
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)