123
Diff: utility/Enc28j60Eth.cpp
- Revision:
- 19:543c2d21e510
- Parent:
- 16:269f652b4d0b
--- a/utility/Enc28j60Eth.cpp Thu Jul 23 15:30:54 2020 +0000 +++ b/utility/Enc28j60Eth.cpp Mon Jun 06 16:36:52 2022 +0000 @@ -67,7 +67,7 @@ #if MBED_MAJOR_VERSION == 2 wait_ms(100); #else - thread_sleep_for(100); + wait_us(100000); #endif // perform system reset @@ -80,7 +80,7 @@ #if MBED_MAJOR_VERSION == 2 wait_ms(50); #else - thread_sleep_for(50); + wait_us(50000); #endif // do bank 0 stuff @@ -719,13 +719,13 @@ #if MBED_MAJOR_VERSION == 2 wait_ms(50); #else - thread_sleep_for(50); + wait_us(50000); #endif writeOp(ENC28J60_BIT_FIELD_SET, ECON2, ECON2_VRPS); #if MBED_MAJOR_VERSION == 2 wait_ms(50); #else - thread_sleep_for(50); + wait_us(50000); #endif writeOp(ENC28J60_BIT_FIELD_SET, ECON2, ECON2_PWRSV); } @@ -742,13 +742,13 @@ #if MBED_MAJOR_VERSION == 2 wait_ms(50); #else - thread_sleep_for(50); + wait_us(50000); #endif writeOp(ENC28J60_BIT_FIELD_SET, ECON1, ECON1_RXEN); #if MBED_MAJOR_VERSION == 2 wait_ms(50); #else - thread_sleep_for(50); + wait_us(50000); #endif }