Loading...
Searching...
No Matches
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
28
29#include "ztimer.h"
30#include "periph/timer.h"
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
44
58 uint32_t freq, uint32_t max_val);
59
60#ifdef __cplusplus
61}
62#endif
63
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
struct ztimer_clock ztimer_clock_t
ztimer_clock_t forward declaration
Definition ztimer.h:290
ztimer periph context structure
uint16_t min
optional minimum value
tim_t dev
periph timer device
ztimer_clock_t super
super class
ztimer API