lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] LwIP deinitialization problem


From: anmk
Subject: Re: [lwip-users] LwIP deinitialization problem
Date: Mon, 25 Jul 2016 08:12:50 -0700 (MST)

Hi Sergio,
Thank you for your reply. The problem was solved. I set netif down and untimeout timers. Now everything work good.
Good lock

On Jul 25, 2016 17:40, "Sergio R. Caprile [via lwIP]" <[hidden email]> wrote:
Well, you probably have noticed that somewhere in your code you call
netif_set_up()... if you browse src/core/netif.c you'll see that there
is a netif_set_down()... but if you are just starting out of DHCP on
someone else's code you overlooked that.
http://lwip.wikia.com/wiki/Network_interfaces_management

What is the API you are using ? NO_SYS=?
If you use the raw API you control your hardware and your timing, so you
can just not call the stack and leave your hardware alone.
If you use NO_SYS=1, "the timers" is that fancy call in your main loop
that looks like this:
        sys_check_timeouts();
If you use an RTOS, ask the one who set the framework, the RTOS provides
a timer and you call lwIP time function on that.
http://lwip.wikia.com/wiki/LwIP_with_or_without_an_operating_system


_______________________________________________
lwip-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-users



If you reply to this email, your message will be added to the discussion below:
http://lwip.100.n7.nabble.com/LwIP-deinitialization-problem-tp26844p26869.html
To unsubscribe from LwIP deinitialization problem, click here.
NAML


View this message in context: Re: LwIP deinitialization problem
Sent from the lwip-users mailing list archive at Nabble.com.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]