[Top][All Lists]

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

[lwip-devel] [task #7235] Create timeout framework for NO_SYS=1

From: Frédéric Bernon
Subject: [lwip-devel] [task #7235] Create timeout framework for NO_SYS=1
Date: Fri, 02 Nov 2007 18:31:58 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; fr; rv: Gecko/20071008 Firefox/

Follow-up Comment #5, task #7235 (project lwip):

The only problem to use "contrib/ports/msvc6/test.c" like a timeout framework
is the use of "sys_get_ms()". A simple change could be to replace...

static void
{ ...  
  int cur_time, time_diff, idxtimer;

  cur_time = sys_get_ms();


static void
timers_update( int cur_time)
{ ...  
  int time_diff, idxtimer;

Like this, the code can be in the lwIP core (in a nosys.c file? or in
tcpip.c?), and the "cur_time" is provided by the port in its "main loop".


Reply to this item at:


  Message posté via/par Savannah

reply via email to

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