Changeset a2ac7e10 in rtems


Ignore:
Timestamp:
Mar 31, 2004, 5:21:47 AM (17 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
c83b5678
Parents:
6505d3fa
Message:

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

  • bsplibc.c, clockdrv_shell.c, ide_ctrl.c, tod.c, gdbstub/rtems-stub-glue.c: Convert to using c99 fixed size types.
Location:
c/src/lib/libbsp/shared
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/shared/ChangeLog

    r6505d3fa ra2ac7e10  
     12004-03-31      Ralf Corsepius <ralf_corsepius@rtems.org>
     2
     3        * bsplibc.c, clockdrv_shell.c, ide_ctrl.c, tod.c,
     4        gdbstub/rtems-stub-glue.c: Convert to using c99 fixed size types.
     5
    162004-01-23      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    27
  • c/src/lib/libbsp/shared/bsplibc.c

    r6505d3fa ra2ac7e10  
    1414void bsp_libc_init(
    1515  void       *heap_start,
    16   unsigned32  heap_size,
     16  uint32_t    heap_size,
    1717  int         use_sbrk
    1818)
  • c/src/lib/libbsp/shared/clockdrv_shell.c

    r6505d3fa ra2ac7e10  
    2626
    2727#ifdef CLOCK_DRIVER_ISRS_PER_TICK
    28 volatile rtems_unsigned32 Clock_driver_isrs;
     28volatile uint32_t        Clock_driver_isrs;
    2929#endif
    3030
     
    3333 */
    3434
    35 volatile rtems_unsigned32 Clock_driver_ticks;
     35volatile uint32_t        Clock_driver_ticks;
    3636
    3737/*
     
    235235)
    236236{
    237     rtems_unsigned32 isrlevel;
     237    uint32_t        isrlevel;
    238238    rtems_libio_ioctl_args_t *args = pargp;
    239239    rtems_isr_entry  ignored_ticker;
  • c/src/lib/libbsp/shared/gdbstub/rtems-stub-glue.c

    r6505d3fa ra2ac7e10  
    320320   Objects_Information *obj_info;
    321321   Thread_Control *th;
    322    unsigned32 name;
     322   uint32_t  name;
    323323   char tmp_buf[20];
    324324
     
    373373      strcat(info->display, tmp_buf);
    374374#if 0
    375       name = *(unsigned32 *)(obj_info->local_table[thread]->name);
     375      name = *(uint32_t*)(obj_info->local_table[thread]->name);
    376376#else
    377       name = *(unsigned32 *)(obj_info->local_table[thread -
     377      name = *(uint32_t*)(obj_info->local_table[thread -
    378378                                                   first_rtems_id + 1]->name);
    379379#endif
     
    417417   strcat(info->display, tmp_buf);
    418418
    419    name = *(unsigned32 *)(obj_info->local_table[thread -
     419   name = *(uint32_t*)(obj_info->local_table[thread -
    420420                                                first_posix_id + 1]->name);
    421421
     
    13961396{
    13971397/*
    1398   extern unsigned32 _ftext;
    1399   extern unsigned32 _fdata;
    1400   extern unsigned32 _bss_start;
     1398  extern uint32_t  _ftext;
     1399  extern uint32_t  _fdata;
     1400  extern uint32_t  _bss_start;
    14011401
    14021402  *text_addr = &_ftext;
     
    14251425  registers[D0] = 0;
    14261426  registers[D1] = 0;
    1427   registers[D2] = (unsigned32)th->Registers.d2;
    1428   registers[D3] = (unsigned32)th->Registers.d3;
    1429   registers[D4] = (unsigned32)th->Registers.d4;
    1430   registers[D5] = (unsigned32)th->Registers.d5;
    1431   registers[D6] = (unsigned32)th->Registers.d6;
    1432   registers[D7] = (unsigned32)th->Registers.d7;
     1427  registers[D2] = (uint32_t)th->Registers.d2;
     1428  registers[D3] = (uint32_t)th->Registers.d3;
     1429  registers[D4] = (uint32_t)th->Registers.d4;
     1430  registers[D5] = (uint32_t)th->Registers.d5;
     1431  registers[D6] = (uint32_t)th->Registers.d6;
     1432  registers[D7] = (uint32_t)th->Registers.d7;
    14331433
    14341434  registers[A0] = 0;
    14351435  registers[A1] = 0;
    1436   registers[A2] = (unsigned32)th->Registers.a2;
    1437   registers[A3] = (unsigned32)th->Registers.a3;
    1438   registers[A4] = (unsigned32)th->Registers.a4;
    1439   registers[A5] = (unsigned32)th->Registers.a5;
    1440   registers[A6] = (unsigned32)th->Registers.a6;
    1441   registers[A7] = (unsigned32)th->Registers.a7_msp;
     1436  registers[A2] = (uint32_t)th->Registers.a2;
     1437  registers[A3] = (uint32_t)th->Registers.a3;
     1438  registers[A4] = (uint32_t)th->Registers.a4;
     1439  registers[A5] = (uint32_t)th->Registers.a5;
     1440  registers[A6] = (uint32_t)th->Registers.a6;
     1441  registers[A7] = (uint32_t)th->Registers.a7_msp;
    14421442 
    1443   registers[PS] = (unsigned32)th->Registers.sr;
     1443  registers[PS] = (uint32_t)th->Registers.sr;
    14441444#if 0
    1445   registers[PC] = *(unsigned32 *)th->Registers.a7_msp; /* *SP = ret adr */
     1445  registers[PC] = *(uint32_t*)th->Registers.a7_msp; /* *SP = ret adr */
    14461446#else
    1447   registers[PC] = (unsigned32)_CPU_Context_switch;
     1447  registers[PC] = (uint32_t)_CPU_Context_switch;
    14481448#endif
    14491449}
     
    14571457{
    14581458/*
    1459   extern unsigned32 _ftext;
    1460   extern unsigned32 _fdata;
    1461   extern unsigned32 _bss_start;
     1459  extern uint32_t  _ftext;
     1460  extern uint32_t  _fdata;
     1461  extern uint32_t  _bss_start;
    14621462
    14631463  *text_addr = &_ftext;
  • c/src/lib/libbsp/shared/ide_ctrl.c

    r6505d3fa ra2ac7e10  
    8585void
    8686ide_controller_read_data_block(rtems_device_minor_number  minor,
    87                                unsigned16                 block_size,
     87                               uint16_t                   block_size,
    8888                               blkdev_sg_buffer          *bufs,
    89                                rtems_unsigned32          *cbuf,
    90                                rtems_unsigned32          *pos)
     89                               uint32_t                  *cbuf,
     90                               uint32_t                  *pos)
    9191{
    9292    IDE_Controller_Table[minor].fns->ctrl_read_block(minor, block_size, bufs,
     
    110110void
    111111ide_controller_write_data_block(rtems_device_minor_number  minor,
    112                                 unsigned16                 block_size,
     112                                uint16_t                   block_size,
    113113                                blkdev_sg_buffer          *bufs,
    114                                 rtems_unsigned32          *cbuf,
    115                                 rtems_unsigned32          *pos)
     114                                uint32_t                  *cbuf,
     115                                uint32_t                  *pos)
    116116
    117117{
     
    135135ide_controller_read_register(rtems_device_minor_number  minor,
    136136                             int                        reg,
    137                              unsigned16                *value)
     137                             uint16_t                  *value)
    138138{
    139139    IDE_Controller_Table[minor].fns->ctrl_reg_read(minor, reg, value);
     
    154154void
    155155ide_controller_write_register(rtems_device_minor_number minor, int reg,
    156                               unsigned16 value)
     156                              uint16_t  value)
    157157{
    158158    IDE_Controller_Table[minor].fns->ctrl_reg_write(minor, reg, value);
     
    172172 */
    173173rtems_status_code
    174 ide_controller_config_io_speed(int minor, unsigned8 modes_avaible)
     174ide_controller_config_io_speed(int minor, uint8_t  modes_avaible)
    175175{
    176176    return IDE_Controller_Table[minor].fns->ctrl_config_io_speed(
  • c/src/lib/libbsp/shared/tod.c

    r6505d3fa ra2ac7e10  
    221221
    222222/* XXX this routine should be part of the public RTEMS interface */
    223 unsigned32 _TOD_To_seconds( rtems_time_of_day *tod );
     223uint32_t  _TOD_To_seconds( rtems_time_of_day *tod );
    224224
    225225int checkRealTime()
     
    227227  rtems_time_of_day rtems_tod;
    228228  rtems_time_of_day rtc_tod;
    229   unsigned32 rtems_time;
    230   unsigned32 rtc_time;
     229  uint32_t  rtems_time;
     230  uint32_t  rtc_time;
    231231
    232232  if (!RTC_Present)
Note: See TracChangeset for help on using the changeset viewer.