Skip to content
Snippets Groups Projects
Commit 2bf96612 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

zephyr/mphalport.h: Update for new "unified" kernal API (sleep functions).

parent e3626b48
No related branches found
No related tags found
No related merge requests found
......@@ -19,9 +19,9 @@ static inline mp_uint_t mp_hal_ticks_cpu(void) {
}
static inline void mp_hal_delay_us(mp_uint_t delay) {
task_sleep(USEC(delay));
k_busy_wait(delay);
}
static inline void mp_hal_delay_ms(mp_uint_t delay) {
task_sleep(MSEC(delay));
k_sleep(delay);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment