diff options
Diffstat (limited to 'c/src/lib/libcpu/arm/lpc22xx/timer')
-rw-r--r-- | c/src/lib/libcpu/arm/lpc22xx/timer/lpc_timer.h | 8 | ||||
-rw-r--r-- | c/src/lib/libcpu/arm/lpc22xx/timer/timer.c | 6 |
2 files changed, 7 insertions, 7 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 2e58da4e6b..364812ddb8 100644 --- a/c/src/lib/libcpu/arm/lpc22xx/timer/lpc_timer.h +++ b/c/src/lib/libcpu/arm/lpc22xx/timer/lpc_timer.h @@ -11,16 +11,16 @@ #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 +// 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 +// 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 diff --git a/c/src/lib/libcpu/arm/lpc22xx/timer/timer.c b/c/src/lib/libcpu/arm/lpc22xx/timer/timer.c index 91f6df408b..0ac8ab32c1 100644 --- a/c/src/lib/libcpu/arm/lpc22xx/timer/timer.c +++ b/c/src/lib/libcpu/arm/lpc22xx/timer/timer.c @@ -2,7 +2,7 @@ * RTL22xx board Timer driver * * This uses Timer1 for timing measurments. - * + * * By Ray xu<rayx.cn@gmail.com>, modify form Mc9328mxl RTEMS DSP * * The license and distribution terms for this file may be @@ -16,7 +16,7 @@ * benchmark_timer_initialize() and benchmark_timer_read(). benchmark_timer_read() usually returns * the number of microseconds since benchmark_timer_initialize() exitted. * - * It is important that the timer start/stop overhead be determined + * It is important that the timer start/stop overhead be determined * when porting or modifying this code. * * $Id$ @@ -31,7 +31,7 @@ uint32_t g_freq; bool benchmark_timer_find_average_overhead; - + /* * Set up Timer 1 */ |