From 3906b3eaa1589e60ffd902091e60eaaaacdde1b3 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Fri, 16 Apr 2004 21:29:43 +0000 Subject: Remove stray white spaces. --- c/src/lib/libcpu/sh/sh7032/clock/ckinit.c | 48 +++++++++++++++---------------- 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'c/src/lib/libcpu/sh/sh7032/clock') diff --git a/c/src/lib/libcpu/sh/sh7032/clock/ckinit.c b/c/src/lib/libcpu/sh/sh7032/clock/ckinit.c index 5548e3a8ef..96abdd3f46 100644 --- a/c/src/lib/libcpu/sh/sh7032/clock/ckinit.c +++ b/c/src/lib/libcpu/sh/sh7032/clock/ckinit.c @@ -9,7 +9,7 @@ * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * + * * * COPYRIGHT (c) 1998. * On-Line Applications Research Corporation (OAR). @@ -40,11 +40,11 @@ #define I_CLK_PHI_4 2 #define I_CLK_PHI_8 3 -/* +/* * Set I_CLK_PHI to one of the I_CLK_PHI_X values from above to choose * a PHI/X clock rate. */ - + #define I_CLK_PHI I_CLK_PHI_4 #define CLOCK_SCALE (1<> 16 ; - if ( ( cclicks_per_tick | 0xffff ) > 0 ) + if ( ( cclicks_per_tick | 0xffff ) > 0 ) Clock_isrs_const++ ; Clock_limit = cclicks_per_tick / Clock_isrs_const ; Clock_isrs = Clock_isrs_const; @@ -226,7 +226,7 @@ void Install_clock( /* * Hardware specific initialize goes here */ - + /* stop Timer 0 */ temp8 = read8( ITU_TSTR) & ITU0_STARTMASK; write8( temp8, ITU_TSTR); @@ -246,8 +246,8 @@ void Install_clock( write8( ITU0_TCRMASK , ITU_TCR0); /* use GRA without I/O - pins */ - write8( ITU0_TIORVAL, ITU_TIOR0); - + write8( ITU0_TIORVAL, ITU_TIOR0); + /* reset flags of the status register */ temp8 = read8( ITU_TSR0) & ITU_STAT_MASK; write8( temp8, ITU_TSR0); @@ -262,7 +262,7 @@ void Install_clock( /* set counter limits */ write16( Clock_limit, ITU_GRA0); - + /* start counter */ temp8 = read8( ITU_TSTR) |~ITU0_STARTMASK; write8( temp8, ITU_TSTR); @@ -312,14 +312,14 @@ rtems_device_driver Clock_initialize( ) { Install_clock( Clock_isr ); - + /* * make major/minor avail to others such as shared memory driver */ - + rtems_clock_major = major; rtems_clock_minor = minor; - + return RTEMS_SUCCESSFUL; } @@ -331,14 +331,14 @@ rtems_device_driver Clock_control( { uint32_t isrlevel; rtems_libio_ioctl_args_t *args = pargp; - + if (args != 0) { /* * This is hokey, but until we get a defined interface * to do this, it will just be this simple... */ - + if (args->command == rtems_build_name('I', 'S', 'R', ' ')) { Clock_isr(CLOCK_VECTOR); @@ -348,7 +348,7 @@ rtems_device_driver Clock_control( rtems_isr_entry ignored ; rtems_interrupt_disable( isrlevel ); rtems_interrupt_catch( args->buffer, CLOCK_VECTOR, &ignored ); - + rtems_interrupt_enable( isrlevel ); } } -- cgit v1.2.3