diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-03-31 04:38:23 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-03-31 04:38:23 +0000 |
commit | 0f458a3b0865644ecbaee4b455d1b6b9dc430d33 (patch) | |
tree | cfc13a28a720347e0fa52a24d828d2afd152324a /c/src/lib/libbsp/m68k/dmv152/timer/timer.c | |
parent | 2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org> (diff) | |
download | rtems-0f458a3b0865644ecbaee4b455d1b6b9dc430d33.tar.bz2 |
2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org>
* clock/ckinit.c, console/console.c, include/bsp.h,
spurious/spinit.c, startup/bspstart.c, startup/vmeintr.c,
timer/timer.c: Convert to using c99 fixed size types.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/m68k/dmv152/timer/timer.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/c/src/lib/libbsp/m68k/dmv152/timer/timer.c b/c/src/lib/libbsp/m68k/dmv152/timer/timer.c index aa6feb1094..a16c37a0ae 100644 --- a/c/src/lib/libbsp/m68k/dmv152/timer/timer.c +++ b/c/src/lib/libbsp/m68k/dmv152/timer/timer.c @@ -28,7 +28,7 @@ rtems_isr timerisr(); void Timer_initialize() { - rtems_unsigned8 data; + uint8_t data; (void) set_vector( timerisr, TIMER_VECTOR, 0 ); /* install ISR */ @@ -54,8 +54,8 @@ void Timer_initialize() * ACC_IC54 - interrupt 5 will be vectored and mapped to level 6 */ - data = (*(rtems_unsigned8 *)0x0D00000B); - (*(rtems_unsigned8 *)0x0D00000B) = (data & 0x0F) | 0x60; + data = (*(uint8_t*)0x0D00000B); + (*(uint8_t*)0x0D00000B) = (data & 0x0F) | 0x60; } @@ -65,9 +65,9 @@ void Timer_initialize() int Read_timer() { - rtems_unsigned8 data; - rtems_unsigned8 msb, lsb; - rtems_unsigned32 remaining, total; + uint8_t data; + uint8_t msb, lsb; + uint32_t remaining, total; Z8x36_WRITE( TIMER, CT1_CMD_STATUS, 0xce ); /* read the counter value */ Z8x36_READ( TIMER, CT1_CUR_CNT_MSB, msb ); |