Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
9
#pragma once
10
29
#include "
ztimer.h
"
30
#include "
periph/timer.h
"
31
32
#ifdef __cplusplus
33
extern
"C"
{
34
#endif
35
39
typedef
struct
{
40
ztimer_clock_t
super
;
41
tim_t
dev
;
42
uint16_t
min
;
43
}
ztimer_periph_timer_t
;
44
57
uint32_t
ztimer_periph_timer_init
(
ztimer_periph_timer_t
*clock,
tim_t
dev,
58
uint32_t freq, uint32_t max_val);
59
60
#ifdef __cplusplus
61
}
62
#endif
63
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:370
ztimer_periph_timer_t
ztimer periph context structure
Definition:
periph_timer.h:39
ztimer_periph_timer_t::min
uint16_t min
optional minimum value
Definition:
periph_timer.h:42
ztimer_periph_timer_t::dev
tim_t dev
periph timer device
Definition:
periph_timer.h:41
ztimer_periph_timer_t::super
ztimer_clock_t super
super class
Definition:
periph_timer.h:40
ztimer.h
ztimer API
Generated on Fri Jun 20 2025 21:02:37 by
1.9.1