This is a fork, just adds support of new NICs. If you don't need to use these NICs, please refer to espressif/ethernet_init !!!
This component makes it easier to set up and control Ethernet connections in Espressif IoT projects. It hides the lower-level complexities of Ethernet driver initialization and configuration, so developers can focus on building their applications without delving deep into hardware details. It also allows users to select from various supported Ethernet chips, making development faster.
Supported devices are:
idf.py add-dependency
command.ethernet_init.h
C
// Initialize Ethernet driver
ESP_ERROR_CHECK(ethernet_init_all(ð_handles, ð_port_cnt));
// Get the device information of the ethernet handle
eth_dev_info_t eth_info = ethernet_init_get_dev_info(eth_handle);
// Stop and Deinitialize ethernet
ethernet_deinit_all(eth_handles);
idf.py add-dependency "sergeykharenko/ethernet_init^0.3.2"