summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-11-09 00:11:30 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-11-09 00:11:30 +0300
commit2bf96612d2c7e3139bf404bb246a0ce08ab26813 (patch)
tree38d18157fa1dcc358d625303dc9922740de21557
parente3626b484c8494df5b5fabcfe923712662ddba24 (diff)
downloadmicropython-2bf96612d2c7e3139bf404bb246a0ce08ab26813.tar.gz
micropython-2bf96612d2c7e3139bf404bb246a0ce08ab26813.zip
zephyr/mphalport.h: Update for new "unified" kernal API (sleep functions).
-rw-r--r--zephyr/mphalport.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/zephyr/mphalport.h b/zephyr/mphalport.h
index a634455a83..fafbb9ebe5 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);
}