pub unsafe extern "C" fn k_busy_wait(usec_to_wait: u32)
Expand description
@brief Cause the current thread to busy wait.
This routine causes the current thread to execute a “do nothing” loop for @a usec_to_wait microseconds.
@note The clock used for the microsecond-resolution delay here may be skewed relative to the clock used for system timeouts like k_sleep(). For example k_busy_wait(1000) may take slightly more or less time than k_sleep(K_MSEC(1)), with the offset dependent on clock tolerances.
@note In case when @kconfig{CONFIG_SYSTEM_CLOCK_SLOPPY_IDLE} and @kconfig{CONFIG_PM} options are enabled, this function may not work. The timer/clock used for delay processing may be disabled/inactive.