Changeset 162ffb4 in rtems
- Timestamp:
- 03/31/04 04:42:37 (20 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- ed9122e
- Parents:
- 3e1fc109
- Location:
- c/src/lib/libbsp/m68k/mvme136
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/m68k/mvme136/ChangeLog
r3e1fc109 r162ffb4 1 2004-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 1 7 2004-02-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 8 -
c/src/lib/libbsp/m68k/mvme136/clock/ckinit.c
r3e1fc109 r162ffb4 39 39 #define CLOCK_VECTOR 66 40 40 41 rtems_unsigned32Clock_isrs; /* ISRs until next tick */41 uint32_t Clock_isrs; /* ISRs until next tick */ 42 42 43 volatile rtems_unsigned32Clock_driver_ticks; /* ticks since initialization */43 volatile uint32_t Clock_driver_ticks; /* ticks since initialization */ 44 44 45 45 rtems_isr_entry Old_ticker; … … 87 87 timer->CT1_MODE_SPEC = T1MSRVAL; 88 88 89 *(( rtems_unsigned16*)0xfffb0016) = MS_COUNT; /* write countdown value */89 *((uint16_t*)0xfffb0016) = MS_COUNT; /* write countdown value */ 90 90 91 91 /* … … 100 100 * Enable interrupt via VME interrupt mask register 101 101 */ 102 (*( rtems_unsigned8*)0xfffb0038) &= 0xfd;102 (*(uint8_t*)0xfffb0038) &= 0xfd; 103 103 104 104 atexit( Clock_exit ); … … 141 141 ) 142 142 { 143 rtems_unsigned32isrlevel;143 uint32_t isrlevel; 144 144 rtems_libio_ioctl_args_t *args = pargp; 145 145 -
c/src/lib/libbsp/m68k/mvme136/include/bsp.h
r3e1fc109 r162ffb4 57 57 #define Install_tm27_vector( handler ) set_vector( (handler), 75, 1 ) 58 58 59 #define Cause_tm27_intr() (*(volatile rtems_unsigned8*)0xfffb006b) = 0x8059 #define Cause_tm27_intr() (*(volatile uint8_t*)0xfffb006b) = 0x80 60 60 61 #define Clear_tm27_intr() (*(volatile rtems_unsigned8*)0xfffb006b) = 0x0061 #define Clear_tm27_intr() (*(volatile uint8_t*)0xfffb006b) = 0x00 62 62 63 63 #define Lower_tm27_intr() … … 69 69 70 70 #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; \ 73 73 asm volatile( "0: \ 74 74 nbcd %0 ; \ -
c/src/lib/libbsp/m68k/mvme136/shmsupp/getcfg.c
r3e1fc109 r162ffb4 41 41 shm_config_table BSP_shm_cfgtbl; 42 42 43 rtems_unsigned32*BSP_int_address()43 uint32_t *BSP_int_address() 44 44 { 45 rtems_unsigned32id, offset;45 uint32_t id, offset; 46 46 47 id = ( rtems_unsigned32) *(rtems_unsigned8*)0xfffb0061;47 id = (uint32_t) *(uint8_t*)0xfffb0061; 48 48 offset = ((id & 0x1f) << 5) | ((id & 0xe0) << 8); 49 49 offset |= 0xffff000b; 50 return( ( rtems_unsigned32* ) offset );50 return( (uint32_t * ) offset ); 51 51 } 52 52 53 53 void Shm_Get_configuration( 54 rtems_unsigned32localnode,54 uint32_t localnode, 55 55 shm_config_table **shmcfg 56 56 ) 57 57 { 58 BSP_shm_cfgtbl.base = ( rtems_unsigned32*)0x20000000;58 BSP_shm_cfgtbl.base = (uint32_t*)0x20000000; 59 59 BSP_shm_cfgtbl.length = 1 * MEGABYTE; 60 60 BSP_shm_cfgtbl.format = SHM_BIG; -
c/src/lib/libbsp/m68k/mvme136/shmsupp/lock.c
r3e1fc109 r162ffb4 45 45 ) 46 46 { 47 rtems_unsigned32isr_level;48 rtems_unsigned32 *lockptr = (rtems_unsigned32*)&lq_cb->lock;47 uint32_t isr_level; 48 uint32_t *lockptr = (uint32_t*)&lq_cb->lock; 49 49 50 50 rtems_interrupt_disable( isr_level ); … … 66 66 ) 67 67 { 68 rtems_unsigned32isr_level;68 uint32_t isr_level; 69 69 70 70 lq_cb->lock = SHM_UNLOCK_VALUE; -
c/src/lib/libbsp/m68k/mvme136/shmsupp/mpisr.c
r3e1fc109 r162ffb4 22 22 Shm_Interrupt_count += 1; 23 23 rtems_multiprocessing_announce(); 24 (*(volatile rtems_unsigned8*)0xfffb006b) = 0; /* clear MPCSR intr */24 (*(volatile uint8_t*)0xfffb006b) = 0; /* clear MPCSR intr */ 25 25 } 26 26 -
c/src/lib/libbsp/m68k/mvme136/startup/bspstart.c
r3e1fc109 r162ffb4 39 39 40 40 void bsp_postdriver_hook(void); 41 void bsp_libc_init( void *, u nsigned32, int );41 void bsp_libc_init( void *, uint32_t, int ); 42 42 void bsp_pretasking_hook(void); /* m68k version */ 43 43 … … 71 71 m68k_set_vbr( &M68Kvec ); 72 72 73 (*( rtems_unsigned8*)0xfffb0067) = 0x7f; /* make VME access round-robin */73 (*(uint8_t*)0xfffb0067) = 0x7f; /* make VME access round-robin */ 74 74 75 75 rtems_cache_enable_instruction(); -
c/src/lib/libbsp/m68k/mvme136/timer/timer.c
r3e1fc109 r162ffb4 48 48 /* cycle/pulse output */ 49 49 50 *(( rtems_unsigned16*)0xfffb0016) = 0x0000; /* write countdown value */50 *((uint16_t*)0xfffb0016) = 0x0000; /* write countdown value */ 51 51 /* 52 52 Z8x36_WRITE( TIMER, CT1_TIME_CONST_MSB, 0x00 ); … … 59 59 /* (TCB) and gate */ 60 60 /* command (GCB) bits */ 61 *(( rtems_unsigned8*)0xfffb0038) &= 0xfd; /* enable timer INTR on */61 *((uint8_t*)0xfffb0038) &= 0xfd; /* enable timer INTR on */ 62 62 /* VME controller */ 63 63 } … … 70 70 { 71 71 /* 72 rtems_unsigned8msb, lsb;72 uint8_t msb, lsb; 73 73 */ 74 rtems_unsigned32remaining, total;74 uint32_t remaining, total; 75 75 76 76 Z8x36_WRITE( TIMER, CT1_CMD_STATUS, 0xce ); /* read the counter value */ 77 remaining = 0xffff - *(( rtems_unsigned16*) 0xfffb0010);77 remaining = 0xffff - *((uint16_t*) 0xfffb0010); 78 78 /* 79 79 Z8x36_READ( TIMER, CT1_CUR_CNT_MSB, msb );
Note: See TracChangeset
for help on using the changeset viewer.