Skip to content

Commit 8cf61b5

Browse files
improved phy reset
1 parent 68f0175 commit 8cf61b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

boards/XCORE/board_ex.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,22 @@
2020
if (tries == 100) { \
2121
mii_write(&ETHD1, 0x1F, 0xFA00); \
2222
mii_write(&ETHD1, 0x01, 0xFFFF); \
23-
i = STM32_SYS_CK / 100; \
23+
i = STM32_SYS_CK / 10; \
2424
while (i-- > 0) { \
2525
asm("nop"); \
2626
}; \
2727
} \
2828
if (tries > 200) { \
2929
palClearLine(LINE_RESET_PHY); \
30-
i = STM32_SYS_CK / 100; \
30+
i = STM32_SYS_CK / 10; \
3131
while (i-- > 0) { \
3232
asm("nop"); \
3333
}; \
3434
palSetLine(LINE_RESET_PHY); \
3535
tries = 0; \
3636
} \
3737
} \
38-
i = STM32_SYS_CK / 100; \
38+
i = STM32_SYS_CK / 10; \
3939
while (i-- > 0) { \
4040
asm("nop"); \
4141
}; \

0 commit comments

Comments
 (0)