Loading...
Searching...
No Matches
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
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25#ifndef DOXYGEN /* hide implementation specific details from Doxygen */
26
27static 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
bool timer_poll_channel(tim_t dev, int channel)
Check whether a compare channel has matched.
uint_fast8_t tim_t
Default timer type.
Definition timer.h:70