mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
esp_eth: add support for multiple Ethernets modules at a time
Ethernet driver events properly bounded with ESP NETIF actions to support multiple Ethernet modules used at a time. Components using Ethernet updated to conform with new API. Closes https://github.com/espressif/esp-idf/issues/7318
This commit is contained in:
@@ -109,7 +109,7 @@ void tcpip_adapter_init(void)
|
||||
|
||||
esp_err_t tcpip_adapter_clear_default_eth_handlers(void)
|
||||
{
|
||||
return esp_eth_clear_default_handlers(netif_from_if(TCPIP_ADAPTER_IF_ETH));
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t tcpip_adapter_set_default_eth_handlers(void)
|
||||
@@ -119,8 +119,6 @@ esp_err_t tcpip_adapter_set_default_eth_handlers(void)
|
||||
esp_netif_t *eth_netif = esp_netif_new(&cfg);
|
||||
|
||||
s_esp_netifs[TCPIP_ADAPTER_IF_ETH] = eth_netif;
|
||||
|
||||
return esp_eth_set_default_handlers(eth_netif);
|
||||
}
|
||||
return ESP_OK;
|
||||
|
||||
|
Reference in New Issue
Block a user