mirror of https://github.com/ARMmbed/mbed-os.git
nuc472_eth: fix alignment
parent
bc497a1742
commit
36dada2e5f
|
@ -79,7 +79,7 @@ static int reset_phy(void)
|
|||
|
||||
delayCnt = 2000;
|
||||
while(delayCnt > 0) {
|
||||
delayCnt--;
|
||||
delayCnt--;
|
||||
if((mdio_read(CONFIG_PHY_ADDR, MII_BMCR) & BMCR_RESET) == 0)
|
||||
break;
|
||||
|
||||
|
@ -101,7 +101,7 @@ static int reset_phy(void)
|
|||
|
||||
delayCnt = 200000;
|
||||
while(delayCnt > 0) {
|
||||
delayCnt--;
|
||||
delayCnt--;
|
||||
if((mdio_read(CONFIG_PHY_ADDR, MII_BMSR) & (BMSR_ANEGCOMPLETE | BMSR_LSTATUS))
|
||||
== (BMSR_ANEGCOMPLETE | BMSR_LSTATUS))
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue