Hi,
I am working on an LPC54016 and I need to turnoff the ethernet connection on low battery and I need to restart it when the power is restored.
I have inherited the source code in my organisation and it seems to set up an ethernet connection on power on but if I used the same api's to turn it back on it does not work. I guess this is due to reinitialising the module over again. Could you help me with the process of reinitialising the ethernet connection?
We are using the LPC core libraries of the LPC54016 controller to control PHY chip.
We use the netifapi_netif_add() function to initialise the ethernet which in turn call the ENET_Init() function. And in order to disable I use the ENET_Deinit() function to disable the clock when I need to turn it off. After doing this even if I call the same procedure or the ethernetif0_init() function it does not help.
Could you let me know how I can go about restarting the ethernet connection?
Thanks
-Darpan
Hi @Alice_Yang ,
Thank you for your help. I am currently not working with this task as it is handled by someone else.
Thank you again.