Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
{
37
ztimer_clock_t
super
;
38
tim_t
dev
;
39
uint16_t
min
;
40
}
ztimer_periph_timer_t
;
41
54
uint32_t
ztimer_periph_timer_init
(
ztimer_periph_timer_t
*clock,
tim_t
dev,
55
uint32_t freq, uint32_t max_val);
56
57
#ifdef __cplusplus
58
}
59
#endif
60
timer.h
Low-level timer peripheral driver interface definitions.
tim_t
uint_fast8_t tim_t
Default timer type.
Definition:
timer.h:70
ztimer_periph_timer_init
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_clock
ztimer device structure
Definition:
ztimer.h:367
ztimer_periph_timer_t
ztimer periph context structure
Definition:
periph_timer.h:36
ztimer_periph_timer_t::min
uint16_t min
optional minimum value
Definition:
periph_timer.h:39
ztimer_periph_timer_t::dev
tim_t dev
periph timer device
Definition:
periph_timer.h:38
ztimer_periph_timer_t::super
ztimer_clock_t super
super class
Definition:
periph_timer.h:37
ztimer.h
ztimer API
Generated on Mon Nov 24 2025 18:43:16 by
1.9.1