Loading...
Searching...
No Matches
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
25
26#include "ztimer.h"
27#include "periph/timer.h"
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
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:71
uint32_t ztimer_periph_timer_init(ztimer_periph_timer_t *clock, tim_t dev, uint32_t freq, uint32_t max_val)
ztimer periph initialization
struct ztimer_clock ztimer_clock_t
ztimer_clock_t forward declaration
Definition ztimer.h:287
ztimer periph context structure
uint16_t min
optional minimum value
tim_t dev
periph timer device
ztimer_clock_t super
super class
ztimer API