From f8e862f3b5e69de90d6bf20c2642271d324b4fc3 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 19 Mar 2021 11:40:34 +0000 Subject: switch to lwip-2.1.2 --- app/steth.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'app/steth.c') 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"); -- cgit v1.2.3