source: rtems/c/src/lib/libcpu/arm/lpc22xx/timer/lpc_timer.h @ 744d6174

4.104.114.84.95
Last change on this file since 744d6174 was 744d6174, checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/25/07 at 11:49:18

Convert to Unix.

  • Property mode set to 100644
File size: 1.2 KB
Line 
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
Note: See TracBrowser for help on using the repository browser.