We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
delayMicroseconds
1 parent 15315c1 commit 785734eCopy full SHA for 785734e
cores/arduino/zephyrCommon.cpp
@@ -280,7 +280,9 @@ void noTone(pin_size_t pinNumber) {
280
281
void delay(unsigned long ms) { k_sleep(K_MSEC(ms)); }
282
283
-void delayMicroseconds(unsigned int us) { k_sleep(K_USEC(us)); }
+void delayMicroseconds(unsigned int us) {
284
+ k_busy_wait(us);
285
+}
286
287
unsigned long micros(void) {
288
return k_cyc_to_us_floor32(k_cycle_get_32());
0 commit comments