PebbleOS
Loading...
Searching...
No Matches
delay.h File Reference
#include <errno.h>
#include <stdint.h>
#include <pbl/kernel/time.h>

Macros

#define PBL_POLL_BUSY_US(cond, delay_us, timeout_us)
 Spin until a condition holds or a timeout expires.
 
#define PBL_POLL_SLEEP_MS(cond, sleep_ms, timeout_ms)
 Sleep until a condition holds or a timeout expires.
 

Functions

void pbl_busy_wait_us (uint32_t us)
 Spin for at least a number of microseconds.
 
void pbl_sleep_ms (uint32_t ms)
 Sleep for at least a number of milliseconds.
 
void pbl_sleep_us (uint32_t us)
 Sleep for at least a number of microseconds.