periph_timer.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2018 Kaspar Schleiser <kaspar@schleiser.de>
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
26 #include "ztimer.h"
27 #include "periph/timer.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
36 typedef struct {
39  uint16_t min;
41 
55  uint32_t freq, uint32_t max_val);
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
Low-level timer peripheral driver interface definitions.
uint_fast8_t tim_t
Default timer type.
Definition: timer.h:70
uint32_t ztimer_periph_timer_init(ztimer_periph_timer_t *clock, tim_t dev, uint32_t freq, uint32_t max_val)
ztimer periph initialization
ztimer device structure
Definition: ztimer.h:367
ztimer periph context structure
Definition: periph_timer.h:36
uint16_t min
optional minimum value
Definition: periph_timer.h:39
tim_t dev
periph timer device
Definition: periph_timer.h:38
ztimer_clock_t super
super class
Definition: periph_timer.h:37
ztimer API