Question
How to find out the status of the eth line?
Hello,
I need to find out the status of the eth line, whether the eth cable is connected or disconnected.
I created a simple project using STM32Cube MX v.1.4.2 with LwIP v. 2.1.2.
Procesor STM32F407ZET, PHY DP83848 (RMII)
#define WITH_RTOS 0
#define LWIP_NETIF_STATUS_CALLBACK 1
#define LWIP_NETIF_LINK_CALLBACK 1
DHCP disable
I added to main.c function: void ethernetif_notify_conn_changed(struct netif *netif)
I expected this function to be called when the line status changed. But it is not so.
What is wrong ?
Peter
