Commit 2bf96612 authored by Paul Sokolovsky's avatar Paul Sokolovsky

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

parent e3626b48
......@@ -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);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment