mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-06-02 10:41:29 +00:00
Undo of previous commit. Timers should be fixed in seq API instead.
This commit is contained in:
parent
f01fa48eec
commit
ca3b54ecb7
|
@ -61,7 +61,6 @@
|
|||
#endif
|
||||
|
||||
#include "lwip/ip_addr.h"
|
||||
#include "lwip/ip_frag.h"
|
||||
#include "arch/perf.h"
|
||||
|
||||
#include "httpd.h"
|
||||
|
@ -93,25 +92,6 @@ tcpip_init_done(void *arg)
|
|||
sys_sem_signal(*sem);
|
||||
}
|
||||
|
||||
static void
|
||||
tcpip_timers(void *data)
|
||||
{
|
||||
static u8_t cnt = 0;
|
||||
|
||||
#if LWIP_TCP
|
||||
/* calls tcp_fasttmr() and tcp_slowtmr() */
|
||||
tcp_tmr();
|
||||
#endif
|
||||
#if IP_REASSEMBLY
|
||||
if (cnt & 1) {
|
||||
/* call ip_reass_tmr() at half interval */
|
||||
ip_reass_tmr();
|
||||
}
|
||||
cnt++;
|
||||
#endif
|
||||
sys_timeout(500, tcpip_timers, NULL);
|
||||
}
|
||||
|
||||
#if PPP_SUPPORT
|
||||
void
|
||||
pppLinkStatusCallback(void *ctx, int errCode, void *arg)
|
||||
|
@ -385,7 +365,6 @@ main_thread(void *arg)
|
|||
printf("Applications started.\n");
|
||||
|
||||
/* sys_timeout(5000, tcp_debug_timeout, NULL);*/
|
||||
sys_timeout(500, tcpip_timers, NULL);
|
||||
|
||||
#ifdef MEM_PERF
|
||||
mem_perf_init("/tmp/memstats.client");
|
||||
|
|
Loading…
Reference in New Issue
Block a user