diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-04-16 21:29:43 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-04-16 21:29:43 +0000 |
commit | 3906b3eaa1589e60ffd902091e60eaaaacdde1b3 (patch) | |
tree | f43fed2d8131db3fcde675a7b888fad06ccfa8ba /c/src/lib/libcpu/sh/sh7045/timer | |
parent | Remove stray white spaces. (diff) | |
download | rtems-3906b3eaa1589e60ffd902091e60eaaaacdde1b3.tar.bz2 |
Remove stray white spaces.
Diffstat (limited to 'c/src/lib/libcpu/sh/sh7045/timer')
-rw-r--r-- | c/src/lib/libcpu/sh/sh7045/timer/timer.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/c/src/lib/libcpu/sh/sh7045/timer/timer.c b/c/src/lib/libcpu/sh/sh7045/timer/timer.c index 3a551faf7c..24ff587064 100644 --- a/c/src/lib/libcpu/sh/sh7045/timer/timer.c +++ b/c/src/lib/libcpu/sh/sh7045/timer/timer.c @@ -1,5 +1,5 @@ /* - * timer for the Hitachi SH 704X + * timer for the Hitachi SH 704X * * This file manages the benchmark timer used by the RTEMS Timing Test * Suite. Each measured time period is demarcated by calls to @@ -69,7 +69,7 @@ void Timer_initialize( void ) rtems_isr *ignored; Timer_MHZ = rtems_cpu_configuration_get_clicks_per_second() / 1000000 ; - + /* * Timer has never overflowed. This may not be necessary on some * implemenations of timer but .... @@ -150,10 +150,10 @@ int Read_timer( void ) /* * Read the timer and see how many clicks it has been since we started. */ - + clicks = read16( MTU_TCNT1); /* XXX: read some HW here */ - + /* * Total is calculated by taking into account the number of timer overflow * interrupts since the timer was initialized and clicks since the last @@ -164,7 +164,7 @@ int Read_timer( void ) if ( Timer_driver_Find_average_overhead ) return total / SCALE; /* in XXX microsecond units */ - else + else { if ( total < LEAST_VALID ) return 0; /* below timer resolution */ |