Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
23
#ifndef DEFAULT_TIMER_CONFIG_H
24
#define DEFAULT_TIMER_CONFIG_H
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
30
#ifndef TIMER_NUMOF
31
#define TIMER_NUMOF (2U)
32
#define TIMER_CHANNEL_NUMOF (3)
33
34
#define TIMER_0 MEGA_TIMER1
35
#define TIMER_0_MASK &TIMSK1
36
#define TIMER_0_FLAG &TIFR1
37
#define TIMER_0_ISRA TIMER1_COMPA_vect
38
#define TIMER_0_ISRB TIMER1_COMPB_vect
39
#define TIMER_0_ISRC TIMER1_COMPC_vect
40
41
#define TIMER_1 MEGA_TIMER4
42
#define TIMER_1_MASK &TIMSK4
43
#define TIMER_1_FLAG &TIFR4
44
#define TIMER_1_ISRA TIMER4_COMPA_vect
45
#define TIMER_1_ISRB TIMER4_COMPB_vect
46
#define TIMER_1_ISRC TIMER4_COMPC_vect
47
#endif
/* TIMER_NUMOF */
48
49
#ifdef __cplusplus
50
}
51
#endif
52
53
#endif
/* DEFAULT_TIMER_CONFIG_H */
54
Generated on Tue Nov 24 2020 19:46:49 by
1.8.17