We define two macro:
#define netifapi_netif_set_link_up(netif)      netifapi_netif_common(netif,
netif_set_link_up, NULL)
#define netifapi_netif_set_link_down(netif)    netifapi_netif_common(netif,
netif_set_link_down, NULL)

And then call it in any thread but not in ISR.



Regards,
Bernard Xiong
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RT-Thread - An open source RTOS from China.
https://github.com/RT-Thread/rt-thread
http://www.rt-thread.org
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


2013/6/12 ella <[email protected]>

> And what about netif_set_link_up/down ?
> Should I use them instead?
>
>
>
>
> --
> View this message in context:
> http://lwip.100.n7.nabble.com/Link-Up-Down-Treatment-tp21551p21552.html
> Sent from the lwip-users mailing list archive at Nabble.com.
>
> _______________________________________________
> lwip-users mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/lwip-users
>
_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to