Loading...
Searching...
No Matches
default_timer_config.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2015 HAW Hamburg
3 * 2016 Freie Universität Berlin
4 * 2016 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
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29#ifndef TIMER_NUMOF
30#define TIMER_NUMOF (2U)
31#define TIMER_CHANNEL_NUMOF (3)
32
33#define TIMER_0 MEGA_TIMER1
34#define TIMER_0_MASK &TIMSK1
35#define TIMER_0_FLAG &TIFR1
36#define TIMER_0_ISRA TIMER1_COMPA_vect
37#define TIMER_0_ISRB TIMER1_COMPB_vect
38#define TIMER_0_ISRC TIMER1_COMPC_vect
39
40#define TIMER_1 MEGA_TIMER4
41#define TIMER_1_MASK &TIMSK4
42#define TIMER_1_FLAG &TIFR4
43#define TIMER_1_ISRA TIMER4_COMPA_vect
44#define TIMER_1_ISRB TIMER4_COMPB_vect
45#define TIMER_1_ISRC TIMER4_COMPC_vect
46#endif /* TIMER_NUMOF */
47
48#ifdef __cplusplus
49}
50#endif
51