Add KSZ8041 support (#6087)

This commit is contained in:
Darek7D
2022-01-17 15:14:09 +01:00
committed by GitHub
parent e84e9c153e
commit 1ac3aefa61
2 changed files with 8 additions and 1 deletions

View File

@ -281,6 +281,13 @@ bool ETHClass::begin(uint8_t phy_addr, int power, int mdc, int mdio, eth_phy_typ
eth_phy = esp_eth_phy_new_dm9051(&phy_config);
break;
#endif
case ETH_PHY_KSZ8041:
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4,4,0)
eth_phy = esp_eth_phy_new_ksz8041(&phy_config);
#else
log_e("unsupported ethernet type 'ETH_PHY_KSZ8041'");
#endif
break;
case ETH_PHY_KSZ8081:
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4,4,0)
eth_phy = esp_eth_phy_new_ksz8081(&phy_config);