Go to the documentation of this file.
20 #ifndef DPL_DPL_TIME_H
21 #define DPL_DPL_TIME_H
32 #define DPL_TICKS_PER_SEC (XTIMER_HZ)
static dpl_time_t dpl_time_get(void)
Returns the low 32 bits of cputime.
uint32_t ticks32
Tick count.
static xtimer_ticks32_t xtimer_now(void)
get the current system time as 32bit time stamp value
static dpl_time_t dpl_time_ms_to_ticks32(uint32_t ms)
Converts the given number of milliseconds into cputime ticks.
static void xtimer_tsleep32(xtimer_ticks32_t ticks)
Stop execution of a thread for some time, 32bit version.
static dpl_error_t dpl_time_ms_to_ticks(uint32_t ms, dpl_time_t *out_ticks)
Converts the given number of milliseconds into cputime ticks.
static xtimer_ticks32_t xtimer_ticks_from_usec(uint32_t usec)
Convert microseconds to xtimer ticks.
uint32_t dpl_time_t
dpl time type
static dpl_time_t dpl_time_ticks_to_ms32(dpl_time_t ticks)
Convert the given number of ticks into milliseconds.
static void dpl_time_delay(dpl_time_t ticks)
Wait until the number of ticks has elapsed, BLOICKING.
xtimer timestamp (32 bit)
static uint32_t xtimer_usec_from_ticks(xtimer_ticks32_t ticks)
Convert xtimer ticks to microseconds.
enum dpl_error dpl_error_t
dep error type
#define US_PER_MS
The number of microseconds per millisecond.
xtimer interface definitions
static dpl_error_t dpl_time_ticks_to_ms(dpl_time_t ticks, uint32_t *out_ms)
Convert the given number of ticks into milliseconds.