X-Git-Url: https://git.karo-electronics.de/?p=karo-tx-redboot.git;a=blobdiff_plain;f=packages%2Fdevs%2Feth%2Fphy%2Fv2_0%2Fsrc%2FAM79C874.c;h=73375f9ab519bfb9fe6dc0fa2cbd11e0e70c53e1;hp=975999941b262fa5ad0ee167792f7cf49216be00;hb=7a4ea0a4d67744fd3f6b5f207d857005fc707b46;hpb=f0c1bd5d9f8457be4a43912a28ca2df207a7f5a4 diff --git a/packages/devs/eth/phy/v2_0/src/AM79C874.c b/packages/devs/eth/phy/v2_0/src/AM79C874.c index 97599994..73375f9a 100644 --- a/packages/devs/eth/phy/v2_0/src/AM79C874.c +++ b/packages/devs/eth/phy/v2_0/src/AM79C874.c @@ -55,7 +55,6 @@ #include #include -#include #include #include @@ -73,7 +72,7 @@ static bool am79c874_stat(eth_phy_access_t *f, int *state) // Read negotiated state if (_eth_phy_read(f, 0x1, f->phy_addr, &phy_state)) { if ((phy_state & 0x20) == 0) { - diag_printf("... waiting for auto-negotiation"); + eth_phy_printf("... waiting for auto-negotiation"); for (tries = 0; tries < CYGINT_DEVS_ETH_PHY_AUTO_NEGOTIATION_TIME; tries++) { if (_eth_phy_read(f, 0x1, f->phy_addr, &phy_state)) { if ((phy_state & 0x20) != 0) { @@ -81,9 +80,9 @@ static bool am79c874_stat(eth_phy_access_t *f, int *state) } } CYGACC_CALL_IF_DELAY_US(1000000); // 1 second - diag_printf("."); + eth_phy_printf("."); } - diag_printf("\n"); + eth_phy_printf("\n"); } if ((phy_state & 0x20) != 0) { *state = 0;