Changeset 821b2a9 in rtems


Ignore:
Timestamp:
03/31/04 05:07:48 (20 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
6fda59f
Parents:
492bb09
Message:

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

  • clock/ckinit.c, clock/rtc.c, include/bsp.h, startup/bspstart.c, timer/timer.c: Convert to using c99 fixed size types.
Location:
c/src/lib/libbsp/i386/ts_386ex
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/ts_386ex/ChangeLog

    r492bb09 r821b2a9  
     12004-03-31      Ralf Corsepius <ralf_corsepius@rtems.org>
     2
     3        * clock/ckinit.c, clock/rtc.c, include/bsp.h, startup/bspstart.c,
     4        timer/timer.c: Convert to using c99 fixed size types.
     5
    162004-02-19      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    27
  • c/src/lib/libbsp/i386/ts_386ex/clock/ckinit.c

    r492bb09 r821b2a9  
    2727#include <stdlib.h>
    2828
    29 rtems_unsigned32 Clock_isrs;              /* ISRs until next tick */
    30 static rtems_unsigned32 Clock_initial_isr_value;
     29uint32_t        Clock_isrs;              /* ISRs until next tick */
     30static uint32_t        Clock_initial_isr_value;
    3131
    32 volatile rtems_unsigned32 Clock_driver_ticks;
     32volatile uint32_t        Clock_driver_ticks;
    3333
    3434void Clock_exit( void );
  • c/src/lib/libbsp/i386/ts_386ex/clock/rtc.c

    r492bb09 r821b2a9  
    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 */
  • c/src/lib/libbsp/i386/ts_386ex/include/bsp.h

    r492bb09 r821b2a9  
    119119#define rtems_bsp_delay( _microseconds ) \
    120120  { \
    121     rtems_unsigned32 _counter; \
     121    uint32_t        _counter; \
    122122    \
    123123    _counter = (_microseconds); \
  • c/src/lib/libbsp/i386/ts_386ex/startup/bspstart.c

    r492bb09 r821b2a9  
    4141 */
    4242
    43 extern rtems_unsigned32  rdb_start;
     43extern uint32_t          rdb_start;
    4444
    4545/*
     
    4848 
    4949void bsp_postdriver_hook(void);
    50 void bsp_libc_init( void *, unsigned32, int );
     50void bsp_libc_init( void *, uint32_t, int );
    5151
    5252/*
     
    6767{
    6868    extern int heap_bottom;
    69     rtems_unsigned32 heap_start;
    70     rtems_unsigned32 heap_size;
     69    uint32_t        heap_start;
     70    uint32_t        heap_size;
    7171
    72     heap_start = (rtems_unsigned32) &heap_bottom;
     72    heap_start = (uint32_t) &heap_bottom;
    7373    if (heap_start & (CPU_ALIGNMENT-1))
    7474      heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1);
  • c/src/lib/libbsp/i386/ts_386ex/timer/timer.c

    r492bb09 r821b2a9  
    2929#include <stdlib.h>
    3030
    31 volatile rtems_unsigned32  Ttimer_val;  /* Updated from ISR!!! */
     31volatile uint32_t          Ttimer_val;  /* Updated from ISR!!! */
    3232rtems_boolean Timer_driver_Find_average_overhead;
    3333
     
    138138int Read_timer(void)
    139139{
    140   register rtems_unsigned32 clicks, total;
    141   register rtems_unsigned8 lsb, msb;
     140  register uint32_t        clicks, total;
     141  register uint8_t        lsb, msb;
    142142
    143143  /* latch the count */
Note: See TracChangeset for help on using the changeset viewer.