From 0548136a4c886830414fb575d9d0daa7f1a7d170 Mon Sep 17 00:00:00 2001 From: fishsoupisgood Date: Wed, 8 May 2019 23:17:01 +0100 Subject: sysclk back to 168MHz, 10Mhz -> TIM2 --- app/steth.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'app/steth.c') diff --git a/app/steth.c b/app/steth.c index 7b23b3c..26429aa 100644 --- a/app/steth.c +++ b/app/steth.c @@ -215,6 +215,7 @@ static void my_eth_init (uint8_t phy, enum eth_clk clock) +#if 0 static void phy_set_ignore_address (void) { unsigned i; @@ -241,7 +242,7 @@ static void phy_set_ignore_address (void) eth_smi_write (PHY1, 0x11, 0x8); } - +#endif static void eth_reset (void) { @@ -423,7 +424,8 @@ void steth_slow_tick (void) if ((!phy_link_isup (PHY) || !an_happy) && running) { printf ("stopping nic\r\n"); - eth_reset(); + //eth_reset(); + ETH_MACCR |= ETH_MACCR_RD; running = 0; @@ -453,6 +455,7 @@ void steth_slow_tick (void) switch (phy_link_status (PHY)) { case LINK_HD_10M: TRACE; + break; case LINK_HD_100M: TRACE; -- cgit v1.2.3