lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Version 1.4.0 timers


From: Simon Goldschmidt
Subject: Re: [lwip-users] Version 1.4.0 timers
Date: Tue, 1 Mar 2011 06:54:37 +0100

 Bernard Mentink <address@hidden> wrote:
> I am trying to upgrade from version 1.3.2 to version 1.4.0. I notice quite a 
> difference around the timers, is there any documentation on how to implement 
> the timers for the new version?
> 
> In the older version (I am using NO_SYS=1) I periodically called tcp_tmr() 
> etharp_tmr() etc from my own hardware timers, looking through timers.c I see 
> that it is done differently, but I don't
> see any documentation on how to implement the new timers.

Have a look at the windows or linux example ports in the contrib module.
Basically, timers are now the same for both NO_SYS settings. Only the =1 
setting needs information about the system time to know when to call the timer 
functions.

However, you can go back to the old implementation (calling the timer functions 
yourself) by setting LWIP_TIMERS to 1.

Simon


reply via email to

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