RTEMS
5.2
Toggle main menu visibility
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
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
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
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
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
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
v
w
Typedefs
a
b
c
d
e
f
g
h
i
l
m
o
p
q
r
s
t
u
v
w
x
Enumerations
a
b
c
e
h
i
l
m
o
p
q
r
s
t
w
Enumerator
a
c
d
h
i
l
m
p
r
s
t
w
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
bsps
arm
rtl22xx
btimer
lpc_timer.h
1
#ifndef __LPC_TIMER_H
2
#define __LPC_TIMER_H
3
4
/*************************************************************************
5
*
6
* File name : Timer.h
7
*
8
**************************************************************************/
9
10
/* Timer Control register bit descriptions */
11
#define TCR_ENABLE_BIT 0
12
#define TCR_RESET_BIT 1
13
14
// The channel name which is used in matching, in fact they represent
15
// corresponding Match Register
16
#define CH_MAXNUM 4
17
#define CH0 0
18
#define CH1 1
19
#define CH2 2
20
#define CH3 3
21
22
// The channel name which is used in capturing, in fact they represent
23
// corresponding Capture Register
24
#define CPCH_MAXNUM 4
25
#define CPCH0 0
26
#define CPCH1 1
27
#define CPCH2 2
28
#define CPCH3 3
29
30
//The actions when matching
31
#define TimerAction_Interrupt 0x1
32
#define TimerAction_ResetTimer 0x2
33
#define TimerAction_StopTimer 0x4
34
35
//Interrupt source type
36
#define TIMERMR0Int 0x01
37
#define TIMERMR1Int 0x02
38
#define TIMERMR2Int 0x04
39
#define TIMERMR3Int 0x08
40
#define TIMERCR0Int 0x10
41
#define TIMERCR1Int 0x20
42
#define TIMERCR2Int 0x40
43
#define TIMERCR3Int 0x80
44
45
#define TIMERALLInt 0xFF
46
47
#endif
//__LPC_Timer_H
48
Generated by
1.9.4