Go to the documentation of this file.
20 #ifndef DPL_DPL_CPUTIME_H
21 #define DPL_DPL_CPUTIME_H
xtimer_callback_t hal_timer_cb
HAL timer callback.
void * arg
argument to pass to callback function
static int dpl_cputime_timer_start(struct hal_timer *timer, uint32_t cputime)
Start a cputimer that will expire at 'cputime'.
static uint32_t dpl_cputime_usecs_to_ticks(uint32_t usecs)
Converts the given number of microseconds into cputime ticks.
uint32_t ticks32
Tick count.
static uint32_t dpl_cputime_ticks_to_usecs(uint32_t ticks)
Convert the given number of ticks into microseconds.
static xtimer_ticks32_t xtimer_now(void)
get the current system time as 32bit time stamp value
static uint32_t xtimer_now_usec(void)
get the current system time in microseconds since start
static void xtimer_tsleep32(xtimer_ticks32_t ticks)
Stop execution of a thread for some time, 32bit version.
static void dpl_cputime_timer_init(struct hal_timer *timer, hal_timer_cb fp, void *arg)
Initialize a CPU timer, using the given HAL timer.
static void dpl_cputime_timer_stop(struct hal_timer *timer)
Stops a cputimer from running.
static xtimer_ticks32_t xtimer_ticks_from_usec(uint32_t usec)
Convert microseconds to xtimer ticks.
static uint32_t dpl_cputime_get32(void)
Returns the low 32 bits of cputime.
static void xtimer_set(xtimer_t *timer, uint32_t offset)
Set a timer to execute a callback at some time in the future.
Timer abstraction layer RIOT adaption.
static void xtimer_usleep(uint32_t microseconds)
Pause the execution of a thread for some microseconds.
static void dpl_cputime_delay_usecs(uint32_t usecs)
Wait until 'usecs' microseconds has elapsed.
xtimer timestamp (32 bit)
static void dpl_cputime_delay_ticks(uint32_t ticks)
Wait until the number of ticks has elapsed.
xtimer_callback_t callback
callback function to call when timer expires
static uint32_t xtimer_usec_from_ticks(xtimer_ticks32_t ticks)
Convert xtimer ticks to microseconds.
static int dpl_cputime_timer_relative(struct hal_timer *timer, uint32_t usecs)
Sets a cpu timer that will expire 'usecs' microseconds from the current cputime.
void xtimer_remove(xtimer_t *timer)
remove a timer
xtimer interface definitions