ztimer periph/timer backend More...
ztimer periph/timer backend
This ztimer module implements a ztimer virtual clock on top of periph/timer.
This module has two tuning values: "adjust": will be subtracted from every timer set. "min": Every timer will be set to max("min", value).
Files | |
file | periph_timer.h |
ztimer periph/timer backend API | |
Data Structures | |
struct | ztimer_periph_timer_t |
ztimer periph context structure More... | |
Functions | |
void | ztimer_periph_timer_init (ztimer_periph_timer_t *clock, tim_t dev, uint32_t freq, uint32_t max_val) |
ztimer periph initialization More... | |
void ztimer_periph_timer_init | ( | ztimer_periph_timer_t * | clock, |
tim_t | dev, | ||
uint32_t | freq, | ||
uint32_t | max_val | ||
) |
ztimer periph initialization
Initializes the given periph timer and sets up the ztimer device.
[in] | clock | ztimer periph device to initialize |
[in] | dev | periph timer to use |
[in] | freq | frequency to configure |
[in] | max_val | maximum value this timer supports |