summaryrefslogtreecommitdiffstats
path: root/app/steth.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/steth.c')
-rw-r--r--app/steth.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/app/steth.c b/app/steth.c
index 9d56529..2502770 100644
--- a/app/steth.c
+++ b/app/steth.c
@@ -250,7 +250,6 @@ steth_rx (void)
pbuf_realloc (p, len);
-
return if0.input (p, &if0);
}
@@ -269,12 +268,6 @@ eth_isr (void)
steth_nis();
}
-void
-steth_isr (void)
-{
- if (eth_irq_ack_pending (ETH_DMASR_NIS))
- steth_nis();
-}
err_t
@@ -487,6 +480,8 @@ void steth_slow_tick (void)
//eth_reset();
ETH_MACCR |= ETH_MACCR_RD;
running = 0;
+
+ netif_set_link_down (&if0);
}
if (!phy_link_isup_wtimeo (PHY) && an_happy) {
@@ -529,8 +524,11 @@ void steth_slow_tick (void)
eth_start();
+
+
printf ("starting nic\r\n");
running++;
+ netif_set_link_up (&if0);
}
// printf("end slow tick\r\n");