[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:1.8.1.8) Gecko/20071008 Firefox/2.0.0.8 |
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
timers_update()
{ ...
int cur_time, time_diff, idxtimer;
cur_time = sys_get_ms();
...
}
...by...
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:
<http://savannah.nongnu.org/task/?7235>
_______________________________________________
Message posté via/par Savannah
http://savannah.nongnu.org/
- [lwip-devel] [task #7235] Create timeout framework for NO_SYS=1, Frédéric Bernon, 2007/11/02
- [lwip-devel] [task #7235] Create timeout framework for NO_SYS=1,
Frédéric Bernon <=
- [lwip-devel] [task #7235] Create timeout framework for NO_SYS=1, Simon Goldschmidt, 2007/11/03
- [lwip-devel] [task #7235] Create timeout framework for NO_SYS=1, Frédéric Bernon, 2007/11/03
- [lwip-devel] [task #7235] Create timeout framework for NO_SYS=1, Frédéric Bernon, 2007/11/25
- [lwip-devel] [task #7235] Create timeout framework for NO_SYS=1, Simon Goldschmidt, 2007/11/26
- [lwip-devel] [task #7235] Create timeout framework for NO_SYS=1, Frédéric Bernon, 2007/11/26
- [lwip-devel] [task #7235] Create timeout framework for NO_SYS=1, Simon Goldschmidt, 2007/11/26
- [lwip-devel] [task #7235] Create timeout framework for NO_SYS=1, Frédéric Bernon, 2007/11/26
- [lwip-devel] [task #7235] Create timeout framework for NO_SYS=1, Simon Goldschmidt, 2007/11/26
- [lwip-devel] [task #7235] Create timeout framework for NO_SYS=1, Simon Goldschmidt, 2007/11/26
- [lwip-devel] [task #7235] Create timeout framework for NO_SYS=1, Frédéric Bernon, 2007/11/26