Embedded Ethernet Programming with HAL
Notify response time
Login To Post Your Comment
4 comments
TeachingAssistant
1 year agoAll you need is to do :
1-) Enable LWIP_NETIF_LINK_CALLBACK definition inside lwipopts.h file. By default, the value can be 0. Check it.
2-) Initialize " netif_set_link_callback(netif, ethernetif_update_config); " in void ethernetif_input(struct netif *netif) function.
3-) Read PHY register and do whatever want.
EDGARDO FITA
1 year agoThanks for yopur response.
But, how could I notify the change of cable connection during the execution of the program, not only when it initiates?