Ignore:
Timestamp:
Nov 30, 2009, 4:37:44 AM (11 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 5, master
Children:
359e537
Parents:
9eac014
Message:

Whitespace removal.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/mpc55xxevb/clock/clock-config.c

    r9eac014 rac7af4a  
    8282
    8383  /* Configure eMIOS channel */
    84  
     84
    8585  /* Set channel in GPIO mode */
    8686  ccr.B.MODE = MPC55XX_EMIOS_MODE_GPIO_INPUT;
    8787  regs->CCR.R = ccr.R;
    88  
     88
    8989  /* Clear status flags */
    9090  csr.B.OVR = 1;
     
    9292  csr.B.FLAG = 1;
    9393  regs->CSR.R = csr.R;
    94  
     94
    9595  /* Set timer period */
    9696  regs->CADR.R = (uint32_t) interval - 1;
    97  
     97
    9898  /* Set unused registers */
    9999  regs->CBDR.R = 0;
    100100  regs->CCNTR.R = 0;
    101101  regs->ALTCADR.R = 0;
    102  
     102
    103103  /* Set control register */
    104104  ccr.B.MODE = MPC55XX_EMIOS_MODE_MC_UP_INT_CLK;
     
    133133  uint64_t clock = bsp_clock_speed;
    134134  uint64_t ns = (clicks * 1000000000) / clock;
    135  
     135
    136136  return (uint32_t) ns;
    137137}
    138  
     138
    139139#define Clock_driver_support_initialize_hardware() mpc55xx_clock_initialize()
    140140
     
    143143
    144144#define Clock_driver_support_shutdown_hardware() mpc55xx_clock_cleanup()
    145  
     145
    146146#define Clock_driver_nanoseconds_since_last_tick \
    147147  mpc55xx_clock_nanoseconds_since_last_tick
Note: See TracChangeset for help on using the changeset viewer.