diff --git a/lib/system/zephyr/sleep.h b/lib/system/zephyr/sleep.h index a55b1cc..4333990 100644 --- a/lib/system/zephyr/sleep.h +++ b/lib/system/zephyr/sleep.h @@ -16,7 +16,7 @@ #ifndef __METAL_ZEPHYR_SLEEP__H__ #define __METAL_ZEPHYR_SLEEP__H__ -#include +#include #ifdef __cplusplus extern "C" { @@ -24,8 +24,7 @@ extern "C" { static inline int __metal_sleep_usec(unsigned int usec) { - metal_unused(usec); - /* Fix me */ + k_sleep(K_USEC(usec)); return 0; }