Changeset 162ffb4 in rtems for c/src/lib/libbsp/m68k


Ignore:
Timestamp:
Mar 31, 2004, 4:42:37 AM (16 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
ed9122e
Parents:
3e1fc109
Message:

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

  • clock/ckinit.c, include/bsp.h, shmsupp/getcfg.c, shmsupp/lock.c, shmsupp/mpisr.c, startup/bspstart.c, timer/timer.c: Convert to using c99 fixed size types.
Location:
c/src/lib/libbsp/m68k/mvme136
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/mvme136/ChangeLog

    r3e1fc109 r162ffb4  
     12004-03-31      Ralf Corsepius <ralf_corsepius@rtems.org>
     2
     3        * clock/ckinit.c, include/bsp.h, shmsupp/getcfg.c, shmsupp/lock.c,
     4        shmsupp/mpisr.c, startup/bspstart.c, timer/timer.c: Convert to using
     5        c99 fixed size types.
     6
    172004-02-19      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    28
  • c/src/lib/libbsp/m68k/mvme136/clock/ckinit.c

    r3e1fc109 r162ffb4  
    3939#define CLOCK_VECTOR 66
    4040
    41 rtems_unsigned32 Clock_isrs;        /* ISRs until next tick */
     41uint32_t        Clock_isrs;        /* ISRs until next tick */
    4242
    43 volatile rtems_unsigned32 Clock_driver_ticks; /* ticks since initialization */
     43volatile uint32_t        Clock_driver_ticks; /* ticks since initialization */
    4444
    4545rtems_isr_entry  Old_ticker;
     
    8787  timer->CT1_MODE_SPEC      = T1MSRVAL;
    8888
    89   *((rtems_unsigned16 *)0xfffb0016) = MS_COUNT;  /* write countdown value */
     89  *((uint16_t*)0xfffb0016) = MS_COUNT;  /* write countdown value */
    9090
    9191  /*
     
    100100   * Enable interrupt via VME interrupt mask register
    101101   */
    102   (*(rtems_unsigned8 *)0xfffb0038) &= 0xfd;
     102  (*(uint8_t*)0xfffb0038) &= 0xfd;
    103103
    104104  atexit( Clock_exit );
     
    141141)
    142142{
    143     rtems_unsigned32 isrlevel;
     143    uint32_t        isrlevel;
    144144    rtems_libio_ioctl_args_t *args = pargp;
    145145 
  • c/src/lib/libbsp/m68k/mvme136/include/bsp.h

    r3e1fc109 r162ffb4  
    5757#define Install_tm27_vector( handler ) set_vector( (handler), 75, 1 )
    5858
    59 #define Cause_tm27_intr()  (*(volatile rtems_unsigned8 *)0xfffb006b) = 0x80
     59#define Cause_tm27_intr()  (*(volatile uint8_t*)0xfffb006b) = 0x80
    6060
    61 #define Clear_tm27_intr()  (*(volatile rtems_unsigned8 *)0xfffb006b) = 0x00
     61#define Clear_tm27_intr()  (*(volatile uint8_t*)0xfffb006b) = 0x00
    6262
    6363#define Lower_tm27_intr()
     
    6969
    7070#define rtems_bsp_delay( microseconds ) \
    71   { register rtems_unsigned32 _delay=(microseconds); \
    72     register rtems_unsigned32 _tmp=123; \
     71  { register uint32_t        _delay=(microseconds); \
     72    register uint32_t        _tmp=123; \
    7373    asm volatile( "0: \
    7474                     nbcd      %0 ; \
  • c/src/lib/libbsp/m68k/mvme136/shmsupp/getcfg.c

    r3e1fc109 r162ffb4  
    4141shm_config_table BSP_shm_cfgtbl;
    4242
    43 rtems_unsigned32 *BSP_int_address()
     43uint32_t        *BSP_int_address()
    4444{
    45   rtems_unsigned32 id, offset;
     45  uint32_t        id, offset;
    4646
    47   id      = (rtems_unsigned32) *(rtems_unsigned8 *)0xfffb0061;
     47  id      = (uint32_t) *(uint8_t*)0xfffb0061;
    4848  offset  = ((id & 0x1f) << 5) | ((id & 0xe0) << 8);
    4949  offset |= 0xffff000b;
    50   return( (rtems_unsigned32 * ) offset );
     50  return( (uint32_t        * ) offset );
    5151}
    5252
    5353void Shm_Get_configuration(
    54   rtems_unsigned32   localnode,
     54  uint32_t           localnode,
    5555  shm_config_table **shmcfg
    5656)
    5757{
    58    BSP_shm_cfgtbl.base         = (rtems_unsigned32 *)0x20000000;
     58   BSP_shm_cfgtbl.base         = (uint32_t*)0x20000000;
    5959   BSP_shm_cfgtbl.length       = 1 * MEGABYTE;
    6060   BSP_shm_cfgtbl.format       = SHM_BIG;
  • c/src/lib/libbsp/m68k/mvme136/shmsupp/lock.c

    r3e1fc109 r162ffb4  
    4545)
    4646{
    47   rtems_unsigned32 isr_level;
    48   rtems_unsigned32 *lockptr = (rtems_unsigned32 *)&lq_cb->lock;
     47  uint32_t        isr_level;
     48  uint32_t         *lockptr = (uint32_t*)&lq_cb->lock;
    4949
    5050  rtems_interrupt_disable( isr_level );
     
    6666)
    6767{
    68   rtems_unsigned32 isr_level;
     68  uint32_t        isr_level;
    6969
    7070  lq_cb->lock = SHM_UNLOCK_VALUE;
  • c/src/lib/libbsp/m68k/mvme136/shmsupp/mpisr.c

    r3e1fc109 r162ffb4  
    2222  Shm_Interrupt_count += 1;
    2323  rtems_multiprocessing_announce();
    24   (*(volatile rtems_unsigned8 *)0xfffb006b) = 0; /* clear MPCSR intr */
     24  (*(volatile uint8_t*)0xfffb006b) = 0; /* clear MPCSR intr */
    2525}
    2626
  • c/src/lib/libbsp/m68k/mvme136/startup/bspstart.c

    r3e1fc109 r162ffb4  
    3939 
    4040void bsp_postdriver_hook(void);
    41 void bsp_libc_init( void *, unsigned32, int );
     41void bsp_libc_init( void *, uint32_t, int );
    4242void bsp_pretasking_hook(void);               /* m68k version */
    4343
     
    7171  m68k_set_vbr( &M68Kvec );
    7272
    73   (*(rtems_unsigned8 *)0xfffb0067) = 0x7f; /* make VME access round-robin */
     73  (*(uint8_t*)0xfffb0067) = 0x7f; /* make VME access round-robin */
    7474
    7575  rtems_cache_enable_instruction();
  • c/src/lib/libbsp/m68k/mvme136/timer/timer.c

    r3e1fc109 r162ffb4  
    4848                                              /* cycle/pulse output   */
    4949
    50   *((rtems_unsigned16 *)0xfffb0016) = 0x0000; /* write countdown value */
     50  *((uint16_t*)0xfffb0016) = 0x0000; /* write countdown value */
    5151/*
    5252  Z8x36_WRITE( TIMER, CT1_TIME_CONST_MSB, 0x00 );
     
    5959                                                 /*  (TCB) and gate       */
    6060                                                 /* command (GCB) bits    */
    61   *((rtems_unsigned8 *)0xfffb0038) &= 0xfd;      /* enable timer INTR on  */
     61  *((uint8_t*)0xfffb0038) &= 0xfd;      /* enable timer INTR on  */
    6262                                                 /*    VME controller     */
    6363}
     
    7070{
    7171/*
    72   rtems_unsigned8  msb, lsb;
     72  uint8_t          msb, lsb;
    7373*/
    74   rtems_unsigned32 remaining, total;
     74  uint32_t        remaining, total;
    7575
    7676  Z8x36_WRITE( TIMER, CT1_CMD_STATUS,  0xce ); /* read the counter value */
    77 remaining = 0xffff - *((rtems_unsigned16 *) 0xfffb0010);
     77remaining = 0xffff - *((uint16_t*) 0xfffb0010);
    7878/*
    7979  Z8x36_READ(  TIMER, CT1_CUR_CNT_MSB, msb );
Note: See TracChangeset for help on using the changeset viewer.