examples: Update Ethernet examples to use new PHY LAN87xx init function

Ethernet examples device usage and Kconfig options synchronized


* Original commit: espressif/esp-idf@4e77430107
This commit is contained in:
Ondrej Kosta authored and suren-gabrielyan-espressif committed 2022-05-27 17:44:24 +04:00
1 parent 6a92d3253f
commit c2abeff476
2 files changed
+12 -5

No files matched your search

@@ -393,8 +393,8 @@ static esp_netif_t *eth_start(void)
s_phy = esp_eth_phy_new_ip101(&phy_config);
#elif CONFIG_EXAMPLE_ETH_PHY_RTL8201
s_phy = esp_eth_phy_new_rtl8201(&phy_config);
#elif CONFIG_EXAMPLE_ETH_PHY_LAN8720
s_phy = esp_eth_phy_new_lan8720(&phy_config);
#elif CONFIG_EXAMPLE_ETH_PHY_LAN87XX
s_phy = esp_eth_phy_new_lan87xx(&phy_config);
#elif CONFIG_EXAMPLE_ETH_PHY_DP83848
s_phy = esp_eth_phy_new_dp83848(&phy_config);
#endif