zephyr: Update to new zephyr timeout API.

Updates the zephyr port to use the new timeout api introduced in zephyr
2.3.
v1.13-wasp-os
Maureen Helm 2020-05-14 08:32:32 -05:00 committed by Damien George
parent db02cb061d
commit 6aff27ac3c
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ static inline void mp_hal_delay_us(mp_uint_t delay) {
}
static inline void mp_hal_delay_ms(mp_uint_t delay) {
k_sleep(delay);
k_msleep(delay);
}
#define mp_hal_delay_us_fast(us) (mp_hal_delay_us(us))

View File

@ -49,7 +49,7 @@ void mp_hal_stdout_tx_strn(const char *str, mp_uint_t len) {
while (len--) {
char c = *str++;
while (console_putchar(c) == -1) {
k_sleep(1);
k_msleep(1);
}
}
#else