From 2bf96612d2c7e3139bf404bb246a0ce08ab26813 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky <pfalcon@users.sourceforge.net> Date: Wed, 9 Nov 2016 00:11:30 +0300 Subject: [PATCH] zephyr/mphalport.h: Update for new "unified" kernal API (sleep functions). --- zephyr/mphalport.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zephyr/mphalport.h b/zephyr/mphalport.h index a634455a8..fafbb9ebe 100644 --- a/zephyr/mphalport.h +++ b/zephyr/mphalport.h @@ -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); } -- GitLab