Changeset 35eb7632 in rtems


Ignore:
Timestamp:
Mar 31, 2004, 4:22:15 AM (16 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
8cf4fac5
Parents:
1d5c975
Message:

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

  • clock/clockdrv.c, console/console.c, startup/bspstart.c, timer/timer.c, timer/timerisr.c: Convert to using c99 fixed size types.
Location:
c/src/lib/libbsp/or32/orp
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/or32/orp/ChangeLog

    r1d5c975 r35eb7632  
     12004-03-31      Ralf Corsepius <ralf_corsepius@rtems.org>
     2
     3        * clock/clockdrv.c, console/console.c, startup/bspstart.c,
     4        timer/timer.c, timer/timerisr.c: Convert to using c99 fixed size
     5        types.
     6
    172004-02-19      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    28
  • c/src/lib/libbsp/or32/orp/clock/clockdrv.c

    r1d5c975 r35eb7632  
    3737 */
    3838
    39 volatile rtems_unsigned32 Clock_driver_ticks;
     39volatile uint32_t        Clock_driver_ticks;
    4040
    4141/*
     
    4747 */
    4848
    49 rtems_unsigned32 Clock_isrs;              /* ISRs until next tick */
     49uint32_t        Clock_isrs;              /* ISRs until next tick */
    5050
    5151/*
     
    6767 */
    6868
    69 void Clock_isr(unsigned32 vector,
    70                unsigned32 pc,
    71                unsigned32 ear,
    72                unsigned32 sr)
     69void Clock_isr(uint32_t  vector,
     70               uint32_t  pc,
     71               uint32_t  ear,
     72               uint32_t  sr)
    7373{
    7474  register int pending;
     
    9898void Install_clock()
    9999{
    100   unsigned32 tmp,sr,ttmr,ttcr;
    101   extern unsigned32 Or1k_Interrupt_Vectors[16];
     100  uint32_t  tmp,sr,ttmr,ttcr;
     101  extern uint32_t  Or1k_Interrupt_Vectors[16];
    102102
    103103  ttmr = TTMR_RESET;    /* Reset value */
     
    130130  old_handler = (void(*)(unsigned int,unsigned int,unsigned int,unsigned int))
    131131    Or1k_Interrupt_Vectors[8];
    132   Or1k_Interrupt_Vectors[8] = (unsigned32)Clock_isr;
     132  Or1k_Interrupt_Vectors[8] = (uint32_t)Clock_isr;
    133133
    134134  asm volatile ("l.mtspr r0,%0,0x11\n\t":: "r" (sr));
     
    200200)
    201201{
    202     rtems_unsigned32 isrlevel;
     202    uint32_t        isrlevel;
    203203    rtems_libio_ioctl_args_t *args = pargp;
    204204 
  • c/src/lib/libbsp/or32/orp/console/console.c

    r1d5c975 r35eb7632  
    7979  rtems_status_code status;
    8080  int tmp,tmp2;
    81   unsigned32 sr;
    82   extern unsigned32 Or1k_Interrupt_Vectors[16];
     81  uint32_t  sr;
     82  extern uint32_t  Or1k_Interrupt_Vectors[16];
    8383
    8484  /* Make sure the UART (interrupt 2) is enabled and
     
    101101  old_handler = (void(*)(unsigned int,unsigned int,unsigned int,unsigned int))
    102102    Or1k_Interrupt_Vectors[5];
    103   Or1k_Interrupt_Vectors[5] = (unsigned32)console_interrupt;
     103  Or1k_Interrupt_Vectors[5] = (uint32_t)console_interrupt;
    104104
    105105  asm volatile ("l.mtspr r0,%0,0x11\n\t":: "r" (sr));
  • c/src/lib/libbsp/or32/orp/startup/bspstart.c

    r1d5c975 r35eb7632  
    4141 
    4242void bsp_postdriver_hook(void);
    43 void bsp_libc_init( void *, unsigned32, int );
     43void bsp_libc_init( void *, uint32_t, int );
    4444
    4545/*
     
    5959void bsp_pretasking_hook(void)
    6060{
    61     rtems_unsigned32        heap_start;
     61    uint32_t                heap_start;
    6262
    63     heap_start = (rtems_unsigned32) _mem_end;
     63    heap_start = (uint32_t) _mem_end;
    6464    if (heap_start & (CPU_ALIGNMENT-1))
    6565        heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1);
  • c/src/lib/libbsp/or32/orp/timer/timer.c

    r1d5c975 r35eb7632  
    2222#include <bsp.h>
    2323
    24 rtems_unsigned32 Timer_interrupts;
     24uint32_t        Timer_interrupts;
    2525rtems_boolean Timer_driver_Find_average_overhead;
    2626
     
    5757int Read_timer( void )
    5858{
    59   rtems_unsigned32 clicks;
    60   rtems_unsigned32 total;
     59  uint32_t        clicks;
     60  uint32_t        total;
    6161
    6262  /*
  • c/src/lib/libbsp/or32/orp/timer/timerisr.c

    r1d5c975 r35eb7632  
    2626#include <rtems.h>
    2727
    28 extern rtems_unsigned32 _Timer_interrupts;
     28extern uint32_t        _Timer_interrupts;
    2929
    3030void timerisr( void )
Note: See TracChangeset for help on using the changeset viewer.