summaryrefslogtreecommitdiffstats
path: root/app/lwip_glue.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/lwip_glue.c')
-rw-r--r--app/lwip_glue.c42
1 files changed, 2 insertions, 40 deletions
diff --git a/app/lwip_glue.c b/app/lwip_glue.c
index 9fed1e6..065c297 100644
--- a/app/lwip_glue.c
+++ b/app/lwip_glue.c
@@ -10,45 +10,7 @@ uint32_t sys_now (void)
void dispatch_lwip (void)
{
-#if 0
- static uint32_t fine_timer,coarse_timer;
- uint32_t now=ticks;
-#endif
-
-#if 0
-
- if (link_lost())
- netif_set_down (&if0);
-
- if (link_gained())
- netif_set_up (&if0);
-
-#endif
-
sys_check_timeouts();
-
-#if 0
- /* Fine DHCP periodic process every 500ms */
- if (now - fine_timer >= DHCP_FINE_TIMER_MSECS) {
- fine_timer = now;
- dhcp_fine_tmr();
-
- if ((DHCP_state != DHCP_ADDRESS_ASSIGNED) && (DHCP_state != DHCP_TIMEOUT)) {
- /* toggle LED1 to indicate DHCP on-going process */
- //STM_EVAL_LEDToggle (LED1);
-
- /* process DHCP state machine */
- LwIP_DHCP_Process_Handle();
- }
- }
-
- /* DHCP Coarse periodic process every 60s */
- if (now - coarse_timer >= DHCP_COARSE_TIMER_MSECS) {
- coarse_timer = now;
- dhcp_coarse_tmr();
- }
-#endif
-
}
@@ -59,14 +21,14 @@ void start_lwip (void)
lwip_init();
- netif_add (&if0, NULL,NULL,NULL, NULL, steth_lwip_init, ethernet_input);
+ 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);
+ dhcp_start (&if0);
}