diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-03-31 03:47:48 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-03-31 03:47:48 +0000 |
commit | 3f71ac151b047fbde1ef4c0a5dbb707793ab3ce6 (patch) | |
tree | dd0e89476e5463cef63ee07e0e812e6c73f7f8eb /c/src/lib/libbsp/powerpc/psim/timer | |
parent | 2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org> (diff) | |
download | rtems-3f71ac151b047fbde1ef4c0a5dbb707793ab3ce6.tar.bz2 |
2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org>
* include/bsp.h, shmsupp/getcfg.c, startup/bspstart.c,
timer/timer.c: Convert to using c99 fixed size types.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/psim/timer')
-rw-r--r-- | c/src/lib/libbsp/powerpc/psim/timer/timer.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/c/src/lib/libbsp/powerpc/psim/timer/timer.c b/c/src/lib/libbsp/powerpc/psim/timer/timer.c index fa62028a04..3052f0402c 100644 --- a/c/src/lib/libbsp/powerpc/psim/timer/timer.c +++ b/c/src/lib/libbsp/powerpc/psim/timer/timer.c @@ -12,7 +12,7 @@ #include <bsp.h> -rtems_unsigned64 Timer_driver_Start_time; +uint64_t Timer_driver_Start_time; rtems_boolean Timer_driver_Find_average_overhead; @@ -32,9 +32,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 */ @@ -44,9 +44,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 one microsecond units */ |