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

This commit is contained in:
Paul Sokolovsky 2016-11-09 00:11:30 +03:00
parent e3626b484c
commit 2bf96612d2

View File

@ -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);
}