Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
timer_arch.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2015 Jan Wagner <mail@jwagner.eu>
3
* SPDX-FileCopyrightText: 2015-2016 Freie Universität Berlin
4
* SPDX-FileCopyrightText: 2019 Inria
5
* SPDX-License-Identifier: LGPL-2.1-only
6
*/
7
8
#pragma once
9
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
25
#ifndef DOXYGEN
/* hide implementation specific details from Doxygen */
26
27
static
inline
bool
timer_poll_channel
(
tim_t
tim,
int
channel)
28
{
29
return
timer_config[tim].dev->EVENTS_COMPARE[channel];
30
}
31
32
#endif
/* DOXYGEN */
33
#ifdef __cplusplus
34
}
35
#endif
36
timer_poll_channel
bool timer_poll_channel(tim_t dev, int channel)
Check whether a compare channel has matched.
tim_t
uint_fast8_t tim_t
Default timer type.
Definition:
timer.h:70
Generated on Tue Sep 30 2025 23:56:43 by
1.9.1