Page 1 of 1

Where is the component (folder) ethernet ?

Posted: Wed Jul 03, 2019 7:19 am
by GISED_Link
Hi,

We are working with LAN8710. We have our driver that work currently with those files :

${IDF_PATH}/component/ethernet/* //all the files from this component / folder
${IDF_PATH}/component/ethernet/eth_phy/phy_reg.h // in fact we include only this file

But the recent changes over the master branch have remove the /component/ethernet folder. Is there some documentation about how we need to port the driver with the new ethernet interface ? By new I mean the /component/esp_eth ?

Thank you

Re: Where is the component (folder) ethernet ?

Posted: Wed Jul 03, 2019 8:14 am
by ESP_morris
Sorry for any inconvenience, yes, we've refactored the ethernet driver in 4.0, which also breaks original APIs.

The main reason is that, IDF will support more kind of Ethenret (e.g. SPI Ethernet module), the original one is not flexible enough to support this work.

We don't have much documentation about port from 3.x API to 4.0, but do have a lot of examples under examples/ethernet/, illustrating how to use the new API.

If you compare the difference between the process of installing ethernet driver, you will find the new API has been simplified a lot.