default_timer_config.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2015 HAW Hamburg
3  * SPDX-FileCopyrightText: 2016 Freie Universität Berlin
4  * SPDX-License-Identifier: LGPL-2.1-only
5  */
6 
7 #pragma once
8 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
24 #ifndef TIMER_NUMOF
25 #define TIMER_NUMOF (1U)
26 #define TIMER_CHANNEL_NUMOF (2)
27 
28 #define TIMER_0 MEGA_TIMER1
29 #define TIMER_0_MASK &TIMSK1
30 #define TIMER_0_FLAG &TIFR1
31 #define TIMER_0_ISRA TIMER1_COMPA_vect
32 #define TIMER_0_ISRB TIMER1_COMPB_vect
33 #endif /* TIMER_NUMOF */
34 
35 #ifdef __cplusplus
36 }
37 #endif
38