|
void | ztimer_handler (ztimer_clock_t *clock) |
| main ztimer callback handler
|
|
bool | ztimer_acquire (ztimer_clock_t *clock) |
| Acquire a clock.
|
|
bool | ztimer_release (ztimer_clock_t *clock) |
| Release a clock.
|
|
uint32_t | ztimer_set (ztimer_clock_t *clock, ztimer_t *timer, uint32_t val) |
| Set a timer on a clock.
|
|
unsigned | ztimer_is_set (const ztimer_clock_t *clock, const ztimer_t *timer) |
| Check if a timer is currently active.
|
|
bool | ztimer_remove (ztimer_clock_t *clock, ztimer_t *timer) |
| Remove a timer from a clock.
|
|
void | ztimer_set_msg (ztimer_clock_t *clock, ztimer_t *timer, uint32_t offset, msg_t *msg, kernel_pid_t target_pid) |
| Post a message after a delay.
|
|
int | ztimer_msg_receive_timeout (ztimer_clock_t *clock, msg_t *msg, uint32_t timeout) |
| receive a message (blocking, with timeout)
|
|
ztimer_now_t | _ztimer_now_extend (ztimer_clock_t *clock) |
| ztimer_now() for extending timers
|
|
void | _ztimer_assert_clock_active (ztimer_clock_t *clock) |
| asserts the given clock to be active
|
|
static ztimer_now_t | ztimer_now (ztimer_clock_t *clock) |
| Get the current time from a clock.
|
|
void | ztimer_periodic_wakeup (ztimer_clock_t *clock, uint32_t *last_wakeup, uint32_t period) |
| Suspend the calling thread until the time (last_wakeup + period )
|
|
void | ztimer_sleep (ztimer_clock_t *clock, uint32_t duration) |
| Put the calling thread to sleep for the specified number of ticks.
|
|
static void | ztimer_spin (ztimer_clock_t *clock, uint32_t duration) |
| Busy-wait specified duration.
|
|
void | ztimer_set_wakeup (ztimer_clock_t *clock, ztimer_t *timer, uint32_t offset, kernel_pid_t pid) |
| Set a timer that wakes up a thread.
|
|
void | ztimer_set_timeout_flag (ztimer_clock_t *clock, ztimer_t *timer, uint32_t timeout) |
| Set timeout thread flag after timeout .
|
|
void | ztimer_mutex_unlock (ztimer_clock_t *clock, ztimer_t *timer, uint32_t timeout, mutex_t *mutex) |
| Unlock mutex after timeout .
|
|
int | ztimer_mutex_lock_timeout (ztimer_clock_t *clock, mutex_t *mutex, uint32_t timeout) |
| Try to lock the given mutex, but give up after timeout .
|
|
int | ztimer_rmutex_lock_timeout (ztimer_clock_t *clock, rmutex_t *rmutex, uint32_t timeout) |
| Try to lock the given rmutex, but give up after timeout .
|
|
void | ztimer_init (void) |
| Initialize the board-specific default ztimer configuration.
|
|
static void | ztimer_init_extend (ztimer_clock_t *clock) |
| Initialize possible ztimer extension intermediate timer.
|
|