Changeset 0f458a3 in rtems
- Timestamp:
- 03/31/04 04:38:23 (20 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 629e12a
- Parents:
- 2a7e204
- Location:
- c/src/lib/libbsp/m68k/dmv152
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/m68k/dmv152/ChangeLog
r2a7e204 r0f458a3 1 2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org> 2 3 * clock/ckinit.c, console/console.c, include/bsp.h, 4 spurious/spinit.c, startup/bspstart.c, startup/vmeintr.c, 5 timer/timer.c: Convert to using c99 fixed size types. 6 1 7 2004-02-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 8 -
c/src/lib/libbsp/m68k/dmv152/clock/ckinit.c
r2a7e204 r0f458a3 23 23 #include <rtems/libio.h> 24 24 25 rtems_unsigned32Clock_isrs; /* ISRs until next tick */26 volatile rtems_unsigned32Clock_driver_ticks;25 uint32_t Clock_isrs; /* ISRs until next tick */ 26 volatile uint32_t Clock_driver_ticks; 27 27 /* ticks since initialization */ 28 28 rtems_isr_entry Old_ticker; … … 65 65 ) 66 66 { 67 rtems_unsigned8data;67 uint8_t data; 68 68 69 69 Clock_driver_ticks = 0; … … 87 87 */ 88 88 89 data = (*( rtems_unsigned8*)0x0D00000B);90 (*( rtems_unsigned8*)0x0D00000B) = (data & 0x7F) | 0x60;89 data = (*(uint8_t*)0x0D00000B); 90 (*(uint8_t*)0x0D00000B) = (data & 0x7F) | 0x60; 91 91 92 92 Z8x36_WRITE( TIMER, CT1_CMD_STATUS, 0xC6 ); … … 97 97 void Clock_exit( void ) 98 98 { 99 rtems_unsigned8data;99 uint8_t data; 100 100 101 101 Z8x36_READ ( TIMER, MASTER_INTR, data ); … … 128 128 ) 129 129 { 130 rtems_unsigned32isrlevel;130 uint32_t isrlevel; 131 131 rtems_libio_ioctl_args_t *args = pargp; 132 132 -
c/src/lib/libbsp/m68k/dmv152/console/console.c
r2a7e204 r0f458a3 32 32 ) 33 33 { 34 rtems_unsigned32control;35 rtems_unsigned32data;36 rtems_unsigned8rr_0;34 uint32_t control; 35 uint32_t data; 36 uint8_t rr_0; 37 37 38 38 if ( port == 0 ) { … … 61 61 int console_inbyte_nonblocking(int port) 62 62 { 63 rtems_unsigned32control;64 rtems_unsigned32data;65 rtems_unsigned8rr_0;63 uint32_t control; 64 uint32_t data; 65 uint8_t rr_0; 66 66 char ch; 67 67 -
c/src/lib/libbsp/m68k/dmv152/include/bsp.h
r2a7e204 r0f458a3 70 70 { \ 71 71 set_vector( (handler), 0x50, 1 ); \ 72 (*(volatile rtems_unsigned32*)0x0d800024) = 0x50; /* set IVECT reg */ \73 (*(volatile rtems_unsigned8*)0x0d00000c) = 0x40; /* set VIE reg */ \72 (*(volatile uint32_t*)0x0d800024) = 0x50; /* set IVECT reg */ \ 73 (*(volatile uint8_t*)0x0d00000c) = 0x40; /* set VIE reg */ \ 74 74 } 75 75 76 76 #define Cause_tm27_intr() \ 77 (*(volatile rtems_unsigned8*)0x0d000003) = 0x0f /* set VINT */77 (*(volatile uint8_t*)0x0d000003) = 0x0f /* set VINT */ 78 78 79 79 #define Clear_tm27_intr() /* no operation necessary */ … … 87 87 88 88 #define rtems_bsp_delay( microseconds ) \ 89 { register rtems_unsigned32_delay=(microseconds); \90 register rtems_unsigned32_tmp=123; \89 { register uint32_t _delay=(microseconds); \ 90 register uint32_t _tmp=123; \ 91 91 asm volatile( "0: \ 92 92 nbcd %0 ; \ … … 122 122 #define ACC_BASE 0x0D000000 123 123 124 #define ACC_STAT0 ((volatile rtems_unsigned8*) (ACC_BASE + 0x00))125 #define ACC_STAT1 ((volatile rtems_unsigned8*) (ACC_BASE + 0x01))126 #define ACC_GENCTL ((volatile rtems_unsigned8*) (ACC_BASE + 0x02))127 #define ACC_VINT ((volatile rtems_unsigned8*) (ACC_BASE + 0x03))128 #define ACC_VREQ ((volatile rtems_unsigned8*) (ACC_BASE + 0x04))129 #define ACC_VARB ((volatile rtems_unsigned8*) (ACC_BASE + 0x05))130 #define ACC_ID ((volatile rtems_unsigned8*) (ACC_BASE + 0x06))131 #define ACC_CTL2 ((volatile rtems_unsigned8*) (ACC_BASE + 0x07))132 #define ACC_7IS ((volatile rtems_unsigned8*) (ACC_BASE + 0x08))133 #define ACC_LIS ((volatile rtems_unsigned8*) (ACC_BASE + 0x09))134 #define ACC_7IE ((volatile rtems_unsigned8*) (ACC_BASE + 0x0A))135 #define ACC_LIE ((volatile rtems_unsigned8*) (ACC_BASE + 0x0B))136 #define ACC_VIE ((volatile rtems_unsigned8*) (ACC_BASE + 0x0C))137 #define ACC_IC10 ((volatile rtems_unsigned8*) (ACC_BASE + 0x0D))138 #define ACC_IC32 ((volatile rtems_unsigned8*) (ACC_BASE + 0x0E))139 #define ACC_IC54 ((volatile rtems_unsigned8*) (ACC_BASE + 0x0F))124 #define ACC_STAT0 ((volatile uint8_t*) (ACC_BASE + 0x00)) 125 #define ACC_STAT1 ((volatile uint8_t*) (ACC_BASE + 0x01)) 126 #define ACC_GENCTL ((volatile uint8_t*) (ACC_BASE + 0x02)) 127 #define ACC_VINT ((volatile uint8_t*) (ACC_BASE + 0x03)) 128 #define ACC_VREQ ((volatile uint8_t*) (ACC_BASE + 0x04)) 129 #define ACC_VARB ((volatile uint8_t*) (ACC_BASE + 0x05)) 130 #define ACC_ID ((volatile uint8_t*) (ACC_BASE + 0x06)) 131 #define ACC_CTL2 ((volatile uint8_t*) (ACC_BASE + 0x07)) 132 #define ACC_7IS ((volatile uint8_t*) (ACC_BASE + 0x08)) 133 #define ACC_LIS ((volatile uint8_t*) (ACC_BASE + 0x09)) 134 #define ACC_7IE ((volatile uint8_t*) (ACC_BASE + 0x0A)) 135 #define ACC_LIE ((volatile uint8_t*) (ACC_BASE + 0x0B)) 136 #define ACC_VIE ((volatile uint8_t*) (ACC_BASE + 0x0C)) 137 #define ACC_IC10 ((volatile uint8_t*) (ACC_BASE + 0x0D)) 138 #define ACC_IC32 ((volatile uint8_t*) (ACC_BASE + 0x0E)) 139 #define ACC_IC54 ((volatile uint8_t*) (ACC_BASE + 0x0F)) 140 140 141 141 /* constants */ -
c/src/lib/libbsp/m68k/dmv152/spurious/spinit.c
r2a7e204 r0f458a3 37 37 void *pargp, 38 38 rtems_id tid, 39 rtems_unsigned32*rval39 uint32_t *rval 40 40 ) 41 41 { -
c/src/lib/libbsp/m68k/dmv152/startup/bspstart.c
r2a7e204 r0f458a3 38 38 39 39 void bsp_postdriver_hook(void); 40 void bsp_libc_init( void *, u nsigned32, int );40 void bsp_libc_init( void *, uint32_t, int ); 41 41 void bsp_pretasking_hook(void); /* m68k version */ 42 42 -
c/src/lib/libbsp/m68k/dmv152/startup/vmeintr.c
r2a7e204 r0f458a3 27 27 ) 28 28 { 29 volatile rtems_unsigned8*VME_interrupt_enable;30 rtems_unsigned8value;29 volatile uint8_t *VME_interrupt_enable; 30 uint8_t value; 31 31 32 32 VME_interrupt_enable = ACC_VIE; … … 48 48 ) 49 49 { 50 volatile rtems_unsigned8*VME_interrupt_enable;51 rtems_unsigned8value;50 volatile uint8_t *VME_interrupt_enable; 51 uint8_t value; 52 52 53 53 VME_interrupt_enable = ACC_VIE; -
c/src/lib/libbsp/m68k/dmv152/timer/timer.c
r2a7e204 r0f458a3 29 29 void Timer_initialize() 30 30 { 31 rtems_unsigned8data;31 uint8_t data; 32 32 33 33 (void) set_vector( timerisr, TIMER_VECTOR, 0 ); /* install ISR */ … … 55 55 */ 56 56 57 data = (*( rtems_unsigned8*)0x0D00000B);58 (*( rtems_unsigned8*)0x0D00000B) = (data & 0x0F) | 0x60;57 data = (*(uint8_t*)0x0D00000B); 58 (*(uint8_t*)0x0D00000B) = (data & 0x0F) | 0x60; 59 59 60 60 } … … 66 66 int Read_timer() 67 67 { 68 rtems_unsigned8data;69 rtems_unsigned8msb, lsb;70 rtems_unsigned32remaining, total;68 uint8_t data; 69 uint8_t msb, lsb; 70 uint32_t remaining, total; 71 71 72 72 Z8x36_WRITE( TIMER, CT1_CMD_STATUS, 0xce ); /* read the counter value */
Note: See TracChangeset
for help on using the changeset viewer.