Added support for Ethernet PHY KSZ8081

Merges https://github.com/espressif/esp-idf/pull/6578
This commit is contained in:
Patrick Wieder
2021-02-19 16:12:06 +01:00
committed by bot
parent 9d7ba4c49a
commit 98a4c70af9
5 changed files with 381 additions and 0 deletions

View File

@@ -98,6 +98,8 @@ void app_main(void)
esp_eth_phy_t *phy = esp_eth_phy_new_dp83848(&phy_config);
#elif CONFIG_EXAMPLE_ETH_PHY_KSZ8041
esp_eth_phy_t *phy = esp_eth_phy_new_ksz8041(&phy_config);
#elif CONFIG_EXAMPLE_ETH_PHY_KSZ8081
esp_eth_phy_t *phy = esp_eth_phy_new_ksz8081(&phy_config);
#endif
#elif CONFIG_ETH_USE_SPI_ETHERNET
gpio_install_isr_service(0);