Loading...
Searching...
No Matches
default_timer_config.h
Go to the documentation of this file.
1/*
2 * Copyright (C) Josua Arndt, Steffen Robertz 2017 RWTH Aachen
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
20#ifndef DEFAULT_TIMER_CONFIG_H
21#define DEFAULT_TIMER_CONFIG_H
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27#ifndef TIMER_NUMOF
28#define TIMER_NUMOF (3U)
29#define TIMER_CHANNEL_NUMOF (3)
30
31#define TIMER_0 MEGA_TIMER4
32#define TIMER_0_MASK &TIMSK4
33#define TIMER_0_FLAG &TIFR4
34#define TIMER_0_ISRA TIMER4_COMPA_vect
35#define TIMER_0_ISRB TIMER4_COMPB_vect
36#define TIMER_0_ISRC TIMER4_COMPC_vect
37
38#define TIMER_1 MEGA_TIMER5
39#define TIMER_1_MASK &TIMSK5
40#define TIMER_1_FLAG &TIFR5
41#define TIMER_1_ISRA TIMER5_COMPA_vect
42#define TIMER_1_ISRB TIMER5_COMPB_vect
43#define TIMER_1_ISRC TIMER5_COMPC_vect
44
45#define TIMER_2 MEGA_TIMER1
46#define TIMER_2_MASK &TIMSK1
47#define TIMER_2_FLAG &TIFR1
48#define TIMER_2_ISRA TIMER1_COMPA_vect
49#define TIMER_2_ISRB TIMER1_COMPB_vect
50#define TIMER_2_ISRC TIMER1_COMPC_vect
51#endif /* TIMER_NUMOF */
52
53#ifdef __cplusplus
54}
55#endif
56
57#endif /* DEFAULT_TIMER_CONFIG_H */