blob: 065c29744d814fd9083bc14247cd88c7915efc0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#include <project.h>
struct netif if0;
uint32_t sys_now (void)
{
return ticks;
}
void dispatch_lwip (void)
{
sys_check_timeouts();
}
void start_lwip (void)
{
lwip_init();
netif_add (&if0, NULL, NULL, NULL, NULL, steth_lwip_init, ethernet_input);
/* Registers the default network interface.*/
netif_set_default (&if0);
netif_set_up (&if0);
dhcp_start (&if0);
}
|