Ignore:
Timestamp:
Nov 30, 2009, 5:27:08 AM (12 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 5, master
Children:
6452809
Parents:
359e537
Message:

Whitespace removal.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/m68k/mcf5272/clock/ckinit.c

    r359e537 r023f1dd9  
    22 *  Clock Driver for MCF5272 CPU
    33 *
    4  *  This driver initailizes timer1 on the MCF5272 as the 
    5  *  main system clock 
     4 *  This driver initailizes timer1 on the MCF5272 as the
     5 *  main system clock
    66 *
    77 *  Copyright 2004 Cogent Computer Systems
     
    4141 * These are set by clock driver during its init
    4242 */
    43  
     43
    4444rtems_device_major_number rtems_clock_major = ~0;
    4545rtems_device_minor_number rtems_clock_minor;
     
    5353 * PARAMETERS:
    5454 *     vector - timer interrupt vector number
    55  
     55
    5656 * RETURNS:
    5757 *     none
     
    9292        icr |= (MCF5272_ICR1_TMR1_IPL(0) | MCF5272_ICR1_TMR1_PI);
    9393        g_intctrl_regs->icr1 = icr;
    94        
     94
    9595        /* reset timer1 */
    9696        g_timer_regs->tmr1 = MCF5272_TMR_CLK_STOP;
    97        
     97
    9898        /* clear pending */
    9999        g_timer_regs->ter1 = MCF5272_TER_REF | MCF5272_TER_CAP;
     
    118118  Clock_driver_ticks = 0;
    119119  if (rtems_configuration_get_ticks_per_timeslice()) {
    120      
     120
    121121      /* Register the interrupt handler */
    122122      set_vector(clock_isr, BSP_INTVEC_TMR1, 1);
    123      
     123
    124124      /* Reset timer 1 */
    125125      g_timer_regs->tmr1 = MCF5272_TMR_RST;
     
    128128      g_timer_regs->tcn1 = 0;  /* reset counter */
    129129      g_timer_regs->ter1 = MCF5272_TER_REF | MCF5272_TER_CAP;
    130      
     130
    131131      /* Set Timer 1 prescaler so that it counts in microseconds */
    132132      g_timer_regs->tmr1 = (
     
    138138           MCF5272_TMR_RST));
    139139
    140       /* Set the timer timeout value from the BSP config */     
     140      /* Set the timer timeout value from the BSP config */
    141141      g_timer_regs->trr1 = rtems_configuration_get_microseconds_per_tick() - 1;
    142142
    143143      /* Feed system frequency to the timer */
    144144      g_timer_regs->tmr1 |= MCF5272_TMR_CLK_MSTR;
    145          
     145
    146146      /* Configure timer1 interrupts */
    147147      icr = g_intctrl_regs->icr1;
     
    175175{
    176176    Install_clock (Clock_isr);
    177  
     177
    178178    /* Make major/minor avail to others such as shared memory driver */
    179179    rtems_clock_major = major;
    180180    rtems_clock_minor = minor;
    181  
     181
    182182    return RTEMS_SUCCESSFUL;
    183183}
Note: See TracChangeset for help on using the changeset viewer.