summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/ppcn_60x/timer
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-03-31 03:49:17 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-03-31 03:49:17 +0000
commitbad8092cbf5305cd339b16fdcced0597e4f5b115 (patch)
tree0183aa2c00d69fc8c28d3dad9e313dd17ac973fb /c/src/lib/libbsp/powerpc/ppcn_60x/timer
parent2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org> (diff)
downloadrtems-bad8092cbf5305cd339b16fdcced0597e4f5b115.tar.bz2
2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org>
* clock/clock.c, console/config.c, console/console.c, console/debugio.c, console/i8042.c, console/ns16550cfg.c, console/ns16550cfg.h, console/vga.c, console/vga_p.h, console/z85c30cfg.c, console/z85c30cfg.h, include/bsp.h, include/nvram.h, include/pci.h, network/amd79c970.c, network/amd79c970.h, nvram/mk48t18.h, nvram/nvram.c, nvram/stk11c68.h, pci/pci.c, startup/bspstart.c, startup/genpvec.c, startup/spurious.c, startup/swap.c, timer/timer.c, tod/cmos.h, tod/tod.c, universe/universe.c: Convert to using c99 fixed size types.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/ppcn_60x/timer')
-rw-r--r--c/src/lib/libbsp/powerpc/ppcn_60x/timer/timer.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/c/src/lib/libbsp/powerpc/ppcn_60x/timer/timer.c b/c/src/lib/libbsp/powerpc/ppcn_60x/timer/timer.c
index 4b91a0e8dd..9d82edb0da 100644
--- a/c/src/lib/libbsp/powerpc/ppcn_60x/timer/timer.c
+++ b/c/src/lib/libbsp/powerpc/ppcn_60x/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;
@@ -43,9 +43,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 */
@@ -55,9 +55,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 */