summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/score603e/timer
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-03-31 03:47:07 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-03-31 03:47:07 +0000
commitdac42086c9fcf9bd9ac71cb3fed02990959ab8fe (patch)
treeaa2cab2b917f07ee37c52a661bf988fff2de2407 /c/src/lib/libbsp/powerpc/score603e/timer
parent2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org> (diff)
downloadrtems-dac42086c9fcf9bd9ac71cb3fed02990959ab8fe.tar.bz2
2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org>
* PCI_bus/PCI.c, PCI_bus/PCI.h, PCI_bus/flash.c, PCI_bus/universe.c, clock/clock.c, console/85c30.c, console/console.c, console/consolebsp.h, include/bsp.h, include/gen2.h, startup/FPGA.c, startup/Hwr_init.c, startup/bspstart.c, startup/genpvec.c, startup/spurious.c, startup/vmeintr.c, timer/timer.c, tod/tod.c: Convert to using c99 fixed size types.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/score603e/timer')
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/timer/timer.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/c/src/lib/libbsp/powerpc/score603e/timer/timer.c b/c/src/lib/libbsp/powerpc/score603e/timer/timer.c
index 2b86022911..6e7548d909 100644
--- a/c/src/lib/libbsp/powerpc/score603e/timer/timer.c
+++ b/c/src/lib/libbsp/powerpc/score603e/timer/timer.c
@@ -21,7 +21,7 @@
#include <bsp.h>
-rtems_unsigned64 Timer_driver_Start_time;
+uint64_t Timer_driver_Start_time;
rtems_boolean Timer_driver_Find_average_overhead;
@@ -45,9 +45,9 @@ void Timer_initialize()
int Read_timer()
{
- rtems_unsigned64 clicks;
- rtems_unsigned64 total64;
- rtems_unsigned32 total;
+ uint64_t clicks;
+ uint64_t total64;
+ uint32_t total;
/* approximately CLOCK_SPEED clicks per microsecond */
@@ -57,9 +57,9 @@ int Read_timer()
total64 = clicks - Timer_driver_Start_time;
- assert( total64 <= 0xffffffff ); /* fits into a unsigned32 */
+ assert( total64 <= 0xffffffff ); /* fits into a uint32_t */
- total = (rtems_unsigned32) total64;
+ total = (uint32_t) total64;
if ( Timer_driver_Find_average_overhead == 1 )
return total; /* in "clicks" of the decrementer units */