Ignore:
Timestamp:
Mar 31, 2004, 5:08:13 AM (16 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
f0cbd19e
Parents:
821b2a9
Message:

2004-03-31 Ralf Corsepius <ralf_corsepius@…>

  • clock/ckinit.c, clock/rtc.c, console/inch.c, ide/ide.c, include/bsp.h, startup/bspstart.c, timer/timer.c: Convert to using c99 fixed size types.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/pc386/clock/rtc.c

    r821b2a9 r6fda59f  
    8282|          Returns: BCD representation of number.
    8383+--------------------------------------------------------------------------*/
    84 static inline rtems_unsigned8
    85 bcd(rtems_unsigned8 i)
     84static inline uint8_t       
     85bcd(uint8_t        i)
    8686{
    8787  return ((i / 16) * 10 + (i % 16));
     
    102102|          Returns: number of seconds since 1970.
    103103+--------------------------------------------------------------------------*/
    104 static inline rtems_unsigned32
    105 ytos(rtems_unsigned16 y)
     104static inline uint32_t       
     105ytos(uint16_t        y)
    106106{                                       /* v NUM LEAP YEARS v */
    107107  return ((y - 1970) * SECS_PER_REG_YEAR + (y - 1970 + 1) / 4 * SECS_PER_DAY);
     
    116116|          Returns: number of seconds since January.
    117117+--------------------------------------------------------------------------*/
    118 static inline rtems_unsigned32
    119 mtos(rtems_unsigned8 m, rtems_boolean leap)
    120 {
    121   static rtems_unsigned16 daysMonth[] = { 0, 0, 31,  59,  90, 120, 151, 181,
     118static inline uint32_t       
     119mtos(uint8_t        m, rtems_boolean leap)
     120{
     121  static uint16_t        daysMonth[] = { 0, 0, 31,  59,  90, 120, 151, 181,
    122122                                               212, 243, 273, 304, 334, 365 };
    123123    /* Days since beginning of year until beginning of month. */
     
    135135|          Returns: result received from RTC port after action performed.
    136136+--------------------------------------------------------------------------*/
    137 static inline rtems_unsigned8
    138 rtcin(rtems_unsigned8 what)
    139 {
    140     rtems_unsigned8 r;
     137static inline uint8_t       
     138rtcin(uint8_t        what)
     139{
     140    uint8_t        r;
    141141
    142142    outport_byte(IO_RTC,   what);
     
    159159init_rtc(void)
    160160{
    161   rtems_unsigned8 s;
     161  uint8_t        s;
    162162
    163163  /* initialize brain-dead battery powered clock */
     
    187187rtc_read(rtems_time_of_day *tod)
    188188{
    189   rtems_unsigned8  sa;
    190   rtems_unsigned32 sec = 0;
     189  uint8_t          sa;
     190  uint32_t        sec = 0;
    191191
    192192  memset(tod, 0, sizeof *tod); /* zero tod structure */
Note: See TracChangeset for help on using the changeset viewer.