Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Main Page
Related Pages
Supported Boards
Modules
Namespaces
Namespace List
Namespace Members
All
Functions
Variables
Enumerations
Data Structures
Data Structures
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
w
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerator
Related Symbols
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
_
a
b
c
d
e
f
g
h
i
k
l
m
n
p
q
r
s
t
u
v
w
x
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
►
RIOT OS
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
default_timer_config.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2020 Otto-von-Guericke-Universität Magdeburg
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
19
#ifndef DEFAULT_TIMER_CONFIG_H
20
#define DEFAULT_TIMER_CONFIG_H
21
22
#include "periph_cpu_common.h"
23
#include "periph_conf.h"
/* <- Allow overwriting timer config from board */
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
29
#ifndef TIMER_NUMOF
30
#define TIMER_NUMOF (2U)
31
#define TIMER_CHANNEL_NUMOF (2)
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
39
#define TIMER_1 MEGA_TIMER3
40
#define TIMER_1_MASK &TIMSK3
41
#define TIMER_1_FLAG &TIFR3
42
#define TIMER_1_ISRA TIMER3_COMPA_vect
43
#define TIMER_1_ISRB TIMER3_COMPB_vect
44
#endif
/* TIMER_NUMOF */
45
46
#ifdef __cplusplus
47
}
48
#endif
49
50
#endif
/* DEFAULT_TIMER_CONFIG_H */
Generated on Fri Feb 21 2025 13:51:06 by
1.12.0