diff options
author | root <root@ka-ata-killa.ourano.james.local> | 2021-03-19 11:40:34 +0000 |
---|---|---|
committer | root <root@ka-ata-killa.ourano.james.local> | 2021-03-19 11:43:23 +0000 |
commit | f8e862f3b5e69de90d6bf20c2642271d324b4fc3 (patch) | |
tree | 86b1ed884110e6a85d64608ceaa2f95434957d1f /app/steth.c | |
parent | c6dc3064e7ebf1f13826487105f748745434da4d (diff) | |
download | clock-f8e862f3b5e69de90d6bf20c2642271d324b4fc3.tar.gz clock-f8e862f3b5e69de90d6bf20c2642271d324b4fc3.tar.bz2 clock-f8e862f3b5e69de90d6bf20c2642271d324b4fc3.zip |
switch to lwip-2.1.2
Diffstat (limited to 'app/steth.c')
-rw-r--r-- | app/steth.c | 12 |
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"); |