46 |
static void (* tcpip_init_done)(void *arg) = NULL; |
static void (* tcpip_init_done)(void *arg) = NULL; |
47 |
static void *tcpip_init_done_arg; |
static void *tcpip_init_done_arg; |
48 |
static sys_mbox_t mbox; |
static sys_mbox_t mbox; |
49 |
|
#if LWIP_TCP |
50 |
static int tcpip_tcp_timer_active = 0; |
static int tcpip_tcp_timer_active = 0; |
51 |
|
|
52 |
|
|
72 |
sys_timeout(TCP_TMR_INTERVAL, tcpip_tcp_timer, NULL); |
sys_timeout(TCP_TMR_INTERVAL, tcpip_tcp_timer, NULL); |
73 |
} |
} |
74 |
} |
} |
75 |
|
#endif /* LWIP_TCP */ |
76 |
/*-----------------------------------------------------------------------------------*/ |
/*-----------------------------------------------------------------------------------*/ |
77 |
static void |
static void |
78 |
tcpip_thread(void *arg) |
tcpip_thread(void *arg) |
82 |
(void)arg; |
(void)arg; |
83 |
|
|
84 |
ip_init(); |
ip_init(); |
85 |
|
#if LWIP_UDP |
86 |
udp_init(); |
udp_init(); |
87 |
|
#endif |
88 |
|
#if LWIP_TCP |
89 |
tcp_init(); |
tcp_init(); |
90 |
|
#endif |
91 |
if(tcpip_init_done != NULL) { |
if(tcpip_init_done != NULL) { |
92 |
tcpip_init_done(tcpip_init_done_arg); |
tcpip_init_done(tcpip_init_done_arg); |
93 |
} |
} |