Add support for EST-PoE-32 (#1186)

* Add support for EST-PoE-32

* Change comment to make more clear
This commit is contained in:
Everything Smart Home 2024-01-11 02:22:37 +00:00 committed by GitHub
parent fe6a597894
commit d1cb9b3f69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

View File

@ -22,7 +22,7 @@ public:
bool connect(int ethernetType, int wait_seconds, const char *hostName);
};
#define CONFIG_NUM_ETH_TYPES 10
#define CONFIG_NUM_ETH_TYPES 11
#define CONFIG_ETH_NONE 0
#define CONFIG_ETH_WT32_ETH01 1
@ -34,6 +34,7 @@ public:
#define CONFIG_ETH_ETHERNET_KIT_VE 7
#define CONFIG_ETH_LILYGO 8
#define CONFIG_ETH_GLINET_S10_V21 9
#define CONFIG_ETH_EST_POE_32 10
// For ESP32, the remaining five pins are at least somewhat configurable.
// eth_address is in range [0..31], indicates which PHY (MAC?) address should be allocated to the interface
@ -149,6 +150,16 @@ const ethernet_settings ethernetBoards[] = {
18, // eth_mdio,
ETH_PHY_IP101, // eth_type,
ETH_CLOCK_GPIO0_IN // eth_clk_mode
},
// EST-PoE-32
{
0, // eth_address,
12, // eth_power,
23, // eth_mdc,
18, // eth_mdio,
ETH_PHY_LAN8720, // eth_type,
ETH_CLOCK_GPIO17_OUT // eth_clk_mode
}
};

View File

@ -138,7 +138,7 @@ void setupNetwork() {
room = AsyncWiFiSettings.string("room", ESPMAC, "Room");
auto wifiTimeout = AsyncWiFiSettings.integer("wifi_timeout", DEFAULT_WIFI_TIMEOUT, "Seconds to wait for WiFi before captive portal (-1 = forever)");
auto portalTimeout = 1000UL * AsyncWiFiSettings.integer("portal_timeout", DEFAULT_PORTAL_TIMEOUT, "Seconds to wait in captive portal before rebooting");
std::vector<String> ethernetTypes = {"None", "WT32-ETH01", "ESP32-POE", "WESP32", "QuinLED-ESP32", "TwilightLord-ESP32", "ESP32Deux", "KIT-VE", "LilyGO-T-ETH-POE", "GL-inet GL-S10 v2.1 Ethernet"};
std::vector<String> ethernetTypes = {"None", "WT32-ETH01", "ESP32-POE", "WESP32", "QuinLED-ESP32", "TwilightLord-ESP32", "ESP32Deux", "KIT-VE", "LilyGO-T-ETH-POE", "GL-inet GL-S10 v2.1 Ethernet", "EST-PoE-32"};
ethernetType = AsyncWiFiSettings.dropdown("eth", ethernetTypes, 0, "Ethernet Type");
AsyncWiFiSettings.heading("<a href='https://espresense.com/configuration/settings#mqtt' target='_blank'>MQTT</a>", false);