esp_eth: make esp_eth_driver_start public API so application could start ethernet when used without esp-netif

This commit is contained in:
David Cermak
2019-09-13 15:08:33 +02:00
parent 549ee87912
commit 3f60837de2
3 changed files with 30 additions and 9 deletions

View File

@@ -185,6 +185,7 @@ static void initialize_ethernet(void)
config.stack_input = pkt_eth2wifi;
ESP_ERROR_CHECK(esp_eth_driver_install(&config, &s_eth_handle));
esp_eth_ioctl(s_eth_handle, ETH_CMD_S_PROMISCUOUS, (void *)true);
esp_eth_driver_start(s_eth_handle);
}
static void initialize_wifi(void)