mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 20:41:14 +00:00
Added support for Ethernet PHY KSZ8081
Merges https://github.com/espressif/esp-idf/pull/6578
This commit is contained in:
@@ -70,6 +70,12 @@ menu "Example Configuration"
|
||||
help
|
||||
The KSZ8041 is a single supply 10Base-T/100Base-TX Physical Layer Transceiver.
|
||||
Goto https://www.microchip.com/wwwproducts/en/KSZ8041 for more information about it.
|
||||
|
||||
config EXAMPLE_ETH_PHY_KSZ8081
|
||||
bool "KSZ8081"
|
||||
help
|
||||
The KSZ8081 is a single supply 10Base-T/100Base-TX Physical Layer Transceiver.
|
||||
Goto https://www.microchip.com/wwwproducts/en/KSZ8081 for more information about it.
|
||||
endchoice # EXAMPLE_ETH_PHY_MODEL
|
||||
|
||||
config EXAMPLE_ETH_MDC_GPIO
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user