diff options
author | fishsoupisgood <github@madingley.org> | 2019-02-20 02:39:38 +0000 |
---|---|---|
committer | fishsoupisgood <github@madingley.org> | 2019-02-20 02:39:38 +0000 |
commit | c93861c733ced9c6659241cea69c7feed56afcce (patch) | |
tree | edcef2f980ae99f8ff8746c585eaf611c940e9ef /app/steth.c | |
parent | 971cc458aea21832a20b1b087185659d8e9ec2b3 (diff) | |
download | clock-c93861c733ced9c6659241cea69c7feed56afcce.tar.gz clock-c93861c733ced9c6659241cea69c7feed56afcce.tar.bz2 clock-c93861c733ced9c6659241cea69c7feed56afcce.zip |
use OCXO, and auto fail-over between different clock sources
Diffstat (limited to 'app/steth.c')
-rw-r--r-- | app/steth.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/steth.c b/app/steth.c index 5ed11c7..2603725 100644 --- a/app/steth.c +++ b/app/steth.c @@ -101,7 +101,7 @@ static void phy_stat (void) phy_stat_reg (i); } -bool +static bool phy_link_an_done (uint8_t phy) { return eth_smi_read (PHY, PHY_REG_BSR) & PHY_REG_BSR_ANDONE; @@ -230,7 +230,7 @@ static void fucked_eth_init (uint8_t phy, enum eth_clk clock) #endif -void eth_reset (void) +static void eth_reset (void) { unsigned i; @@ -295,7 +295,7 @@ void eth_reset (void) } -void eth_start_an (void) +static void eth_start_an (void) { printf ("starting autonegociation\r\n"); eth_smi_write (PHY, PHY_REG_ANTX, 0x1e1); |