diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-04-25 11:49:18 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-04-25 11:49:18 +0000 |
commit | 744d617409b9df826c253f390076c9182af3be4c (patch) | |
tree | 8c56a1fb682c987e95cb42b1845efc80d363295f /c | |
parent | 2007-04-25 Ray Xu <xr@trasin.net> (diff) | |
download | rtems-744d617409b9df826c253f390076c9182af3be4c.tar.bz2 |
Convert to Unix.
Diffstat (limited to 'c')
-rw-r--r-- | c/src/lib/libcpu/arm/lpc22xx/timer/lpc_timer.h | 96 |
1 files changed, 48 insertions, 48 deletions
diff --git a/c/src/lib/libcpu/arm/lpc22xx/timer/lpc_timer.h b/c/src/lib/libcpu/arm/lpc22xx/timer/lpc_timer.h index 75fe568f04..2e58da4e6b 100644 --- a/c/src/lib/libcpu/arm/lpc22xx/timer/lpc_timer.h +++ b/c/src/lib/libcpu/arm/lpc22xx/timer/lpc_timer.h @@ -1,48 +1,48 @@ -#ifndef __LPC_TIMER_H
-#define __LPC_TIMER_H
-
-/*************************************************************************
- *
- * File name : Timer.h
- *
- **************************************************************************/
-
-/* Timer Control register bit descriptions */
-#define TCR_ENABLE_BIT 0
-#define TCR_RESET_BIT 1
-
-// The channel name which is used in matching, in fact they represent
-// corresponding Match Register
-#define CH_MAXNUM 4
-#define CH0 0
-#define CH1 1
-#define CH2 2
-#define CH3 3
-
-// The channel name which is used in capturing, in fact they represent
-// corresponding Capture Register
-#define CPCH_MAXNUM 4
-#define CPCH0 0
-#define CPCH1 1
-#define CPCH2 2
-#define CPCH3 3
-
-//The actions when matching
-#define TimerAction_Interrupt 0x1
-#define TimerAction_ResetTimer 0x2
-#define TimerAction_StopTimer 0x4
-
-//Interrupt source type
-#define TIMERMR0Int 0x01
-#define TIMERMR1Int 0x02
-#define TIMERMR2Int 0x04
-#define TIMERMR3Int 0x08
-#define TIMERCR0Int 0x10
-#define TIMERCR1Int 0x20
-#define TIMERCR2Int 0x40
-#define TIMERCR3Int 0x80
-
-#define TIMERALLInt 0xFF
-
-#endif //__LPC_Timer_H
-
+#ifndef __LPC_TIMER_H +#define __LPC_TIMER_H + +/************************************************************************* + * + * File name : Timer.h + * + **************************************************************************/ + +/* Timer Control register bit descriptions */ +#define TCR_ENABLE_BIT 0 +#define TCR_RESET_BIT 1 + +// The channel name which is used in matching, in fact they represent +// corresponding Match Register +#define CH_MAXNUM 4 +#define CH0 0 +#define CH1 1 +#define CH2 2 +#define CH3 3 + +// The channel name which is used in capturing, in fact they represent +// corresponding Capture Register +#define CPCH_MAXNUM 4 +#define CPCH0 0 +#define CPCH1 1 +#define CPCH2 2 +#define CPCH3 3 + +//The actions when matching +#define TimerAction_Interrupt 0x1 +#define TimerAction_ResetTimer 0x2 +#define TimerAction_StopTimer 0x4 + +//Interrupt source type +#define TIMERMR0Int 0x01 +#define TIMERMR1Int 0x02 +#define TIMERMR2Int 0x04 +#define TIMERMR3Int 0x08 +#define TIMERCR0Int 0x10 +#define TIMERCR1Int 0x20 +#define TIMERCR2Int 0x40 +#define TIMERCR3Int 0x80 + +#define TIMERALLInt 0xFF + +#endif //__LPC_Timer_H + |