periph_timer.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2018 Kaspar Schleiser <kaspar@schleiser.de>
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser General
5  * Public License v2.1. See the file LICENSE in the top level directory for more
6  * details.
7  */
8 
27 #ifndef ZTIMER_PERIPH_TIMER_H
28 #define ZTIMER_PERIPH_TIMER_H
29 
30 #include "ztimer.h"
31 #include "periph/timer.h"
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
40 typedef struct {
43  uint16_t min;
45 
57  uint32_t freq, uint32_t max_val);
58 
59 #ifdef __cplusplus
60 }
61 #endif
62 
63 #endif /* ZTIMER_PERIPH_TIMER_H */
64 
ztimer_periph_timer_t::min
uint16_t min
optional minimum value
Definition: periph_timer.h:43
timer.h
Low-level timer peripheral driver interface definitions.
ztimer.h
ztimer API
ztimer_periph_timer_init
void ztimer_periph_timer_init(ztimer_periph_timer_t *clock, tim_t dev, uint32_t freq, uint32_t max_val)
ztimer periph initialization
tim_t
unsigned int tim_t
Default timer type.
Definition: timer.h:69
ztimer_clock
ztimer device structure
Definition: ztimer.h:312
ztimer_periph_timer_t
ztimer periph context structure
Definition: periph_timer.h:40
ztimer_periph_timer_t::super
ztimer_clock_t super
super class
Definition: periph_timer.h:41
ztimer_periph_timer_t::dev
tim_t dev
periph timer device
Definition: periph_timer.h:42