Loading...
Searching...
No Matches
timer_arch.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2015 Jan Wagner <mail@jwagner.eu>
3 * 2015-2016 Freie Universität Berlin
4 * 2019 Inria
5 *
6 * This file is subject to the terms and conditions of the GNU Lesser
7 * General Public License v2.1. See the file LICENSE in the top level
8 * directory for more details.
9 */
10
22#ifndef TIMER_ARCH_H
23#define TIMER_ARCH_H
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29#ifndef DOXYGEN /* hide implementation specific details from Doxygen */
30
31static inline bool timer_poll_channel(tim_t tim, int channel)
32{
33 return timer_config[tim].dev->EVENTS_COMPARE[channel];
34}
35
36#endif /* DOXYGEN */
37#ifdef __cplusplus
38}
39#endif
40
41#endif /* TIMER_ARCH_H */
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:71