Changeset 023f1dd9 in rtems for c/src/lib/libcpu/m68k/mcf5272


Ignore:
Timestamp:
11/30/09 05:27:08 (14 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 5, master
Children:
6452809
Parents:
359e537
Message:

Whitespace removal.

Location:
c/src/lib/libcpu/m68k/mcf5272
Files:
4 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}
  • c/src/lib/libcpu/m68k/mcf5272/include/mcf5272.h

    r359e537 r023f1dd9  
    282282    volatile uint16_t pbdat;
    283283
    284     volatile uint16_t pcddr; 
     284    volatile uint16_t pcddr;
    285285    volatile uint16_t _res4;
    286286
     
    322322typedef struct {
    323323    volatile uint32_t dcmr;
    324    
     324
    325325    volatile uint16_t _res0;
    326326    volatile uint16_t dcir;
     
    587587    volatile uint16_t _res3;
    588588    volatile uint16_t rfmmr;
    589     volatile uint8_t  _res4[3]; 
     589    volatile uint8_t  _res4[3];
    590590    volatile uint8_t  far;
    591591    volatile uint32_t asr;
    592592    volatile uint32_t drr1;
    593593    volatile uint32_t drr2;
    594     volatile uint16_t _res5; 
     594    volatile uint16_t _res5;
    595595    volatile uint16_t specr;
    596596    volatile uint16_t _res6;
  • c/src/lib/libcpu/m68k/mcf5272/timer/timer.c

    r359e537 r023f1dd9  
    1919 *
    2020 *  http://www.rtems.com/license/LICENSE.
    21  * 
     21 *
    2222 *  timer.c,v 1.1 2001/10/26 19:32:40 joel Exp
    2323 */
     
    2727#include <mcf5272/mcf5272.h>
    2828
    29 #define TRR2_VAL 65530 
     29#define TRR2_VAL 65530
    3030
    3131uint32_t Timer_interrupts;
     
    5252    /* Catch timer2 interrupts */
    5353    set_vector(timerisr, BSP_INTVEC_TMR2, 0);
    54    
     54
    5555    /* Reset Timer */
    5656    g_timer_regs->tmr2 = MCF5272_TMR_RST;
     
    117117     */
    118118    clicks = g_timer_regs->tcn2;
    119  
     119
    120120    /* Stop Timer... */
    121121    g_timer_regs->tmr2 = MCF5272_TMR_CLK_STOP | MCF5272_TMR_RST;
    122122
    123123    /*
    124      *  Total is calculated by taking into account the number of timer 
     124     *  Total is calculated by taking into account the number of timer
    125125     *  overflow interrupts since the timer was initialized and clicks
    126126     *  since the last interrupts.
  • c/src/lib/libcpu/m68k/mcf5272/timer/timerisr.S

    r359e537 r023f1dd9  
    2828 *
    2929 *  http://www.rtems.com/license/LICENSE.
    30  * 
     30 *
    3131 *  timerisr.S,v 1.1 2001/10/26 19:32:40 joel Exp
    3232 */
Note: See TracChangeset for help on using the changeset viewer.