Changeset a4318d0c in rtems
- Timestamp:
- 03/31/04 04:39:50 (20 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 24282451
- Parents:
- 629e12a
- Location:
- c/src/lib/libbsp/m68k/ods68302
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/m68k/ods68302/ChangeLog
r629e12a ra4318d0c 1 2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org> 2 3 * clock/ckinit.c, include/bare.h, include/bsp.h, include/crc.h, 4 startup/bspstart.c, startup/cpuboot.c, startup/crc.c, 5 startup/gdb-hooks.c, startup/m68302scc.c, timer/timer.c: Convert to 6 using c99 fixed size types. 7 1 8 2004-02-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 9 -
c/src/lib/libbsp/m68k/ods68302/clock/ckinit.c
r629e12a ra4318d0c 39 39 * number of clock ticks since the driver was initialized. 40 40 */ 41 volatile rtems_unsigned32Clock_driver_ticks;41 volatile uint32_t Clock_driver_ticks; 42 42 43 43 /* … … 48 48 * has passed. 49 49 */ 50 rtems_unsigned32Clock_isrs;50 uint32_t Clock_isrs; 51 51 52 52 void Clock_exit( void ); … … 130 130 ) 131 131 { 132 rtems_unsigned32isrlevel;132 uint32_t isrlevel; 133 133 rtems_libio_ioctl_args_t *args = pargp; 134 134 -
c/src/lib/libbsp/m68k/ods68302/include/bare.h
r629e12a ra4318d0c 157 157 /* Write */ 158 158 #define WRITE_REGISTER_8(address, data) \ 159 *(( rtems_unsigned8 *) (address)) = ((rtems_unsigned8) (data))159 *((uint8_t*) (address)) = ((uint8_t) (data)) 160 160 #define WRITE_REGISTER_16(address, data) \ 161 *(( rtems_unsigned16 *) (address)) = ((rtems_unsigned16) (data))161 *((uint16_t*) (address)) = ((uint16_t) (data)) 162 162 #define WRITE_REGISTER_32(address, data) \ 163 *(( rtems_unsigned32 *) (address)) = ((rtems_unsigned32) (data))163 *((uint32_t*) (address)) = ((uint32_t) (data)) 164 164 /* Read */ 165 #define READ_REGISTER_8(address, data) data = *(( rtems_unsigned8*) (address))166 #define READ_REGISTER_16(address, data) data = *(( rtems_unsigned16*) (address))167 #define READ_REGISTER_32(address, data) data = *(( rtems_unsigned32*) (address))165 #define READ_REGISTER_8(address, data) data = *((uint8_t*) (address)) 166 #define READ_REGISTER_16(address, data) data = *((uint16_t*) (address)) 167 #define READ_REGISTER_32(address, data) data = *((uint32_t*) (address)) 168 168 169 169 /* CS2 : Peripherials */ … … 229 229 /* update the display, needs a long word */ 230 230 #define UPDATE_DISPLAY(LongWordPtr) \ 231 ( WRITE_REGISTER_16(DISPLAY_BASE, *((( rtems_unsigned8*) LongWordPtr) + 3)), \232 WRITE_REGISTER_16(DISPLAY_BASE + 2, *((( rtems_unsigned8*) LongWordPtr) + 2)), \233 WRITE_REGISTER_16(DISPLAY_BASE + 4, *((( rtems_unsigned8*) LongWordPtr) + 1)), \234 WRITE_REGISTER_16(DISPLAY_BASE + 6, *(( rtems_unsigned8*) LongWordPtr)) )231 ( WRITE_REGISTER_16(DISPLAY_BASE, *(((uint8_t*) LongWordPtr) + 3)), \ 232 WRITE_REGISTER_16(DISPLAY_BASE + 2, *(((uint8_t*) LongWordPtr) + 2)), \ 233 WRITE_REGISTER_16(DISPLAY_BASE + 4, *(((uint8_t*) LongWordPtr) + 1)), \ 234 WRITE_REGISTER_16(DISPLAY_BASE + 6, *((uint8_t*) LongWordPtr)) ) 235 235 236 236 /* make a better test, say switches */ -
c/src/lib/libbsp/m68k/ods68302/include/bsp.h
r629e12a ra4318d0c 79 79 80 80 #define rtems_bsp_delay( microseconds ) \ 81 { register rtems_unsigned32_delay=(microseconds); \82 register rtems_unsigned32_tmp=123; \81 { register uint32_t _delay=(microseconds); \ 82 register uint32_t _tmp=123; \ 83 83 asm volatile( "0: \ 84 84 nbcd %0 ; \ -
c/src/lib/libbsp/m68k/ods68302/include/crc.h
r629e12a ra4318d0c 19 19 #endif 20 20 21 rtems_unsigned16 calc_crc(void *data, rtems_unsigned32count);21 uint16_t calc_crc(void *data, uint32_t count); 22 22 23 23 #if __cplusplus -
c/src/lib/libbsp/m68k/ods68302/startup/bspstart.c
r629e12a ra4318d0c 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 -
c/src/lib/libbsp/m68k/ods68302/startup/cpuboot.c
r629e12a ra4318d0c 96 96 void boot_phase_2(void) 97 97 { 98 rtems_unsigned32stack;98 uint32_t stack; 99 99 100 100 #if defined(LED_CONTROL) … … 112 112 113 113 /* seems to want 2, looked at assember code output */ 114 *((volatile rtems_unsigned32*) (&stack + 2)) |= ROM_BASE;114 *((volatile uint32_t*) (&stack + 2)) |= ROM_BASE; 115 115 } 116 116 -
c/src/lib/libbsp/m68k/ods68302/startup/crc.c
r629e12a ra4318d0c 19 19 */ 20 20 21 static const rtems_unsigned16factor[] =21 static const uint16_t factor[] = 22 22 { 23 23 0x0000, 0xC0C1, 0xC181, 0x0140, 0xC301, 0x03C0, 0x0280, 0xC241, … … 67 67 */ 68 68 69 rtems_unsigned16calc_crc(void* vdata, /* pointer to memory block */70 rtems_unsigned32count) /* length of block in bytes */69 uint16_t calc_crc(void* vdata, /* pointer to memory block */ 70 uint32_t count) /* length of block in bytes */ 71 71 { 72 register rtems_unsigned8*data = vdata;73 register rtems_unsigned16crc;74 register rtems_unsigned32byte;72 register uint8_t *data = vdata; 73 register uint16_t crc; 74 register uint32_t byte; 75 75 76 76 /* initialise to either 0x0 or 0xffff depending on the -
c/src/lib/libbsp/m68k/ods68302/startup/gdb-hooks.c
r629e12a ra4318d0c 46 46 47 47 typedef struct { 48 rtems_unsigned16move_a7; /* move #FORMAT_ID,%a7@- */49 rtems_unsigned16format_id;50 rtems_unsigned16jmp; /* jmp _ISR_Handlers */51 rtems_unsigned32isr_handler;48 uint16_t move_a7; /* move #FORMAT_ID,%a7@- */ 49 uint16_t format_id; 50 uint16_t jmp; /* jmp _ISR_Handlers */ 51 uint32_t isr_handler; 52 52 } GDB_HANDLER_ENTRY; 53 53 … … 65 65 void exceptionHandler(unsigned int vector, void *handler) 66 66 { 67 rtems_unsigned32*interrupt_table = 0;67 uint32_t *interrupt_table = 0; 68 68 69 69 gdb_jump_table[vector].move_a7 = M68K_MOVE_A7; 70 70 gdb_jump_table[vector].format_id = vector; 71 71 gdb_jump_table[vector].jmp = M68K_JMP; 72 gdb_jump_table[vector].isr_handler = ( rtems_unsigned32) handler;72 gdb_jump_table[vector].isr_handler = (uint32_t) handler; 73 73 74 interrupt_table[vector] = ( rtems_unsigned32) &gdb_jump_table[vector];74 interrupt_table[vector] = (uint32_t) &gdb_jump_table[vector]; 75 75 } 76 76 -
c/src/lib/libbsp/m68k/ods68302/startup/m68302scc.c
r629e12a ra4318d0c 19 19 static int scc_translate[M68302_SCC_COUNT] = { 0, 0, 0 }; 20 20 21 static const rtems_unsigned16baud_clocks[] =21 static const uint16_t baud_clocks[] = 22 22 { 23 23 (SYSTEM_CLOCK / ( 4800 * 16)), … … 31 31 void scc_initialise(int channel, int baud, int translate) 32 32 { 33 rtems_unsigned16scon;33 uint16_t scon; 34 34 35 35 if (channel < M68302_SCC_COUNT) … … 48 48 scc[channel]->bd.tx[0].length = 0; 49 49 scc[channel]->bd.tx[0].buffer = 50 ( rtems_unsigned8*) &(scc[channel]->bd.tx[1].buffer);50 (uint8_t*) &(scc[channel]->bd.tx[1].buffer); 51 51 52 52 scc[channel]->bd.rx[0].status = 0x2000; 53 53 scc[channel]->bd.rx[0].length = 0; 54 54 scc[channel]->bd.rx[0].buffer = 55 ( rtems_unsigned8*) &(scc[channel]->bd.rx[1].buffer);55 (uint8_t*) &(scc[channel]->bd.rx[1].buffer); 56 56 57 57 scc[channel]->parm.rfcr = 0x50; … … 79 79 unsigned char scc_status(int channel, unsigned char status) 80 80 { 81 rtems_unsigned16rx_status;81 uint16_t rx_status; 82 82 83 83 m302.reg.wcn = 0; -
c/src/lib/libbsp/m68k/ods68302/timer/timer.c
r629e12a ra4318d0c 41 41 */ 42 42 43 rtems_unsigned32Timer_interrupts;43 uint32_t Timer_interrupts; 44 44 45 45 rtems_boolean Timer_driver_Find_average_overhead; … … 80 80 int Read_timer( void ) 81 81 { 82 rtems_unsigned16clicks;83 rtems_unsigned32total;82 uint16_t clicks; 83 uint32_t total; 84 84 85 85 /*
Note: See TracChangeset
for help on using the changeset viewer.