forked from espressif/arduino-esp32
Add KSZ8041 support (#6087)
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user