123

Files at this revision

API Documentation at this revision

Comitter:
advxolltm
Date:
Mon Jun 06 16:36:52 2022 +0000
Parent:
18:8d5738a6646e
Commit message:
123

Changed in this revision

DhcpClient.cpp Show annotated file Show diff for this revision Revisions of this file
DnsClient.cpp Show annotated file Show diff for this revision Revisions of this file
utility/Enc28j60Eth.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 8d5738a6646e -r 543c2d21e510 DhcpClient.cpp
--- a/DhcpClient.cpp	Thu Jul 23 15:30:54 2020 +0000
+++ b/DhcpClient.cpp	Mon Jun 06 16:36:52 2022 +0000
@@ -322,7 +322,7 @@
 #if MBED_MAJOR_VERSION == 2
         wait_ms(50);
 #else
-        thread_sleep_for(50);
+        wait_us(50000);
 #endif
     }
 
diff -r 8d5738a6646e -r 543c2d21e510 DnsClient.cpp
--- a/DnsClient.cpp	Thu Jul 23 15:30:54 2020 +0000
+++ b/DnsClient.cpp	Mon Jun 06 16:36:52 2022 +0000
@@ -288,7 +288,7 @@
 #if MBED_MAJOR_VERSION == 2
         wait_ms(50);
 #else
-        thread_sleep_for(50);
+        wait_us(50000);
 #endif
     }
 
diff -r 8d5738a6646e -r 543c2d21e510 utility/Enc28j60Eth.cpp
--- 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
 }