Skip to content

Commit 2bf9661

Browse files
committed
zephyr/mphalport.h: Update for new "unified" kernal API (sleep functions).
1 parent e3626b4 commit 2bf9661

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zephyr/mphalport.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ static inline mp_uint_t mp_hal_ticks_cpu(void) {
1919
}
2020

2121
static inline void mp_hal_delay_us(mp_uint_t delay) {
22-
task_sleep(USEC(delay));
22+
k_busy_wait(delay);
2323
}
2424

2525
static inline void mp_hal_delay_ms(mp_uint_t delay) {
26-
task_sleep(MSEC(delay));
26+
k_sleep(delay);
2727
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy