Functions | |
uint64_t | get_ms_count (void) |
Generic thread functions. More... | |
void | thread_sleep_for (uint32_t millisec) |
Sleep for a specified time period in millisec: More... | |
void | thread_sleep_until (uint64_t millisec) |
Sleep until a specified time in millisec The specified time is according to Kernel::get_ms_count(). More... | |
uint64_t get_ms_count | ( | void | ) |
Generic thread functions.
These are C versions of functions provided in C++ via rtos::Thread and rtos::ThisThreadRead the current RTOS kernel millisecond tick count. The tick count corresponds to the tick count the RTOS uses for timing purposes. It increments monotonically from 0 at boot, so it effectively never wraps. If the underlying RTOS only provides a 32-bit tick count, this method expands it to 64 bits.
void thread_sleep_for | ( | uint32_t | millisec | ) |
Sleep for a specified time period in millisec:
millisec | time delay value |
void thread_sleep_until | ( | uint64_t | millisec | ) |
Sleep until a specified time in millisec The specified time is according to Kernel::get_ms_count().
millisec | absolute time in millisec |