Changeset a3d3d9a in rtems for c/src/libchip/rtc


Ignore:
Timestamp:
Apr 20, 2004, 10:43:39 AM (16 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
cdaff4d
Parents:
c8e8f119
Message:

Remove stray white spaces.

Location:
c/src/libchip/rtc
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • c/src/libchip/rtc/icm7170.c

    rc8e8f119 ra3d3d9a  
    11/*
    2  *  This file interfaces with the real-time clock found in 
     2 *  This file interfaces with the real-time clock found in
    33 *  a Harris ICM7170
    44 *
     
    4343{
    4444  uint32_t       icm7170;
    45   setRegister_f  setReg;           
     45  setRegister_f  setReg;
    4646  uint32_t       clock;
    4747
     
    9898  time->minute = (*getReg)( icm7170, ICM7170_MINUTE );
    9999  time->second = (*getReg)( icm7170, ICM7170_SECOND );
    100  
     100
    101101  time->ticks  = 0;
    102102
     
    148148  (*setReg)( icm7170, ICM7170_MINUTE,  time->minute );
    149149  (*setReg)( icm7170, ICM7170_SECOND,  time->second );
    150  
     150
    151151  /*
    152152   *  This is not really right.
  • c/src/libchip/rtc/icm7170_reg.c

    rc8e8f119 ra3d3d9a  
    2121#define _ICM7170_MULTIPLIER 1
    2222#define _ICM7170_NAME(_X) _X
    23 #define _ICM7170_TYPE uint8_t 
     23#define _ICM7170_TYPE uint8_t
    2424#endif
    2525
     
    2727  (_ICM7170_TYPE *)((_base) + ((_reg) * _ICM7170_MULTIPLIER ))
    2828
    29 /* 
     29/*
    3030 *  ICM7170 Get Register Routine
    3131 */
  • c/src/libchip/rtc/icm7170_reg2.c

    rc8e8f119 ra3d3d9a  
    1818#define _ICM7170_MULTIPLIER 2
    1919#define _ICM7170_NAME(_X) _X##_2
    20 #define _ICM7170_TYPE uint8_t 
     20#define _ICM7170_TYPE uint8_t
    2121
    2222#include "icm7170_reg.c"
  • c/src/libchip/rtc/icm7170_reg4.c

    rc8e8f119 ra3d3d9a  
    1818#define _ICM7170_MULTIPLIER 4
    1919#define _ICM7170_NAME(_X) _X##_4
    20 #define _ICM7170_TYPE uint8_t 
     20#define _ICM7170_TYPE uint8_t
    2121
    2222#include "icm7170_reg.c"
  • c/src/libchip/rtc/icm7170_reg8.c

    rc8e8f119 ra3d3d9a  
    1818#define _ICM7170_MULTIPLIER 8
    1919#define _ICM7170_NAME(_X) _X##_8
    20 #define _ICM7170_TYPE uint8_t 
     20#define _ICM7170_TYPE uint8_t
    2121
    2222#include "icm7170_reg.c"
  • c/src/libchip/rtc/m48t08.c

    rc8e8f119 ra3d3d9a  
    11/*
    2  *  This file interfaces with the real-time clock found in 
     2 *  This file interfaces with the real-time clock found in
    33 *  a Mostek M48T08 or M48T18 or compatibles.
    44 *
     
    7575  controlReg = (*getReg)( m48t08, M48T08_CONTROL );
    7676  (*setReg)( m48t08, M48T08_CONTROL, controlReg | M48T08_CONTROL_READ );
    77  
     77
    7878  value1 = (*getReg)( m48t08, M48T08_YEAR );
    7979  value2 = From_BCD( value1 );
     
    9797  value1 = (*getReg)( m48t08, M48T08_SECOND );
    9898  time->second = From_BCD( value1 );
    99  
     99
    100100  time->ticks  = 0;
    101101
     
    133133  controlReg = (*getReg)( m48t08, M48T08_CONTROL );
    134134  (*setReg)( m48t08, M48T08_CONTROL, controlReg | M48T08_CONTROL_WRITE );
    135  
     135
    136136  if ( time->year >= 2088 )
    137137    rtems_fatal_error_occurred( RTEMS_INVALID_NUMBER );
     
    143143  (*setReg)( m48t08, M48T08_MINUTE,  To_BCD(time->minute) );
    144144  (*setReg)( m48t08, M48T08_SECOND,  To_BCD(time->second) );
    145  
     145
    146146  /*
    147147   *  Put the RTC back into normal mode.
  • c/src/libchip/rtc/m48t08.h

    rc8e8f119 ra3d3d9a  
    33 *
    44 *    + Mostek M48T08
    5  *    + Mostek M48T18 
     5 *    + Mostek M48T18
    66 *    + Dallas Semiconductor DS1643
    77 *
     
    3131#define M48T08_MONTH       6
    3232#define M48T08_YEAR        7
    33  
     33
    3434/*
    3535 *  Driver function table
  • c/src/libchip/rtc/m48t08_reg.c

    rc8e8f119 ra3d3d9a  
    2121#define _M48T08_MULTIPLIER 1
    2222#define _M48T08_NAME(_X) _X
    23 #define _M48T08_TYPE uint8_t 
     23#define _M48T08_TYPE uint8_t
    2424#endif
    2525
     
    2727  (_M48T08_TYPE *)((_base) + ((_reg) * _M48T08_MULTIPLIER ))
    2828
    29 /* 
     29/*
    3030 *  M48T08 Get Register Routine
    3131 */
  • c/src/libchip/rtc/m48t08_reg2.c

    rc8e8f119 ra3d3d9a  
    1818#define _M48T08_MULTIPLIER 2
    1919#define _M48T08_NAME(_X) _X##_2
    20 #define _M48T08_TYPE uint8_t 
     20#define _M48T08_TYPE uint8_t
    2121
    2222#include "m48t08_reg.c"
  • c/src/libchip/rtc/m48t08_reg4.c

    rc8e8f119 ra3d3d9a  
    1818#define _M48T08_MULTIPLIER 4
    1919#define _M48T08_NAME(_X) _X##_4
    20 #define _M48T08_TYPE uint8_t 
     20#define _M48T08_TYPE uint8_t
    2121
    2222#include "m48t08_reg.c"
  • c/src/libchip/rtc/m48t08_reg8.c

    rc8e8f119 ra3d3d9a  
    1818#define _M48T08_MULTIPLIER 8
    1919#define _M48T08_NAME(_X) _X##_8
    20 #define _M48T08_TYPE uint8_t 
     20#define _M48T08_TYPE uint8_t
    2121
    2222#include "m48t08_reg.c"
  • c/src/libchip/rtc/rtc.h

    rc8e8f119 ra3d3d9a  
    3838/*
    3939 * Each field is interpreted thus:
    40  * 
    41  * sDeviceName  This is the name of the device. 
     40 *
     41 * sDeviceName  This is the name of the device.
    4242 *
    4343 * deviceType   This indicates the chip type.
Note: See TracChangeset for help on using the changeset viewer.