ethernet: add ksz8041 in basic ethernet example

This commit is contained in:
morris
2020-07-09 21:49:07 +08:00
parent 62237cf28c
commit 648bcc7a87
4 changed files with 22 additions and 12 deletions

View File

@@ -93,6 +93,8 @@ void app_main(void)
esp_eth_phy_t *phy = esp_eth_phy_new_lan8720(&phy_config);
#elif CONFIG_EXAMPLE_ETH_PHY_DP83848
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);
#endif
#elif CONFIG_EXAMPLE_USE_DM9051
gpio_install_isr_service(0);