Howto create a custom Ethernet PHY driver, that integrates into CubeMX?
My board has ethernet PHY Micrel KSZ8721.
I use STM32F407, RMII, LWIP, noRTOS.
CubeMX 6.7, STM32Lib 1.27.1
Although this is no exotic PHY, it is not listed in the supported BSP PHY as LAN8742 and DP83848.
How can I write a mock driver so that custom calls to support the PHY are integrated into the auto-generated LWIP.c functions.
I see some potential problems in the current CubeMX setup:
1) PHY must be setup in Ethernet AND LwIP tab.
As the single responsibility theory says: one should setup only in 1(one) place.
2) If USER_PHY is selected , then USER_PHX calls should be generated, and not omitted as now.
3) USER_PHY creates warning, but it should be an accepted solution ...
Thanks, Adib.
