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 
11 #pragma once
12 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 #ifndef DOXYGEN /* hide implementation specific details from Doxygen */
29 
30 static inline bool timer_poll_channel(tim_t tim, int channel)
31 {
32  return timer_config[tim].dev->EVENTS_COMPARE[channel];
33 }
34 
35 #endif /* DOXYGEN */
36 #ifdef __cplusplus
37 }
38 #endif
39 
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