summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/dmv177/timer/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/powerpc/dmv177/timer/timer.c')
-rw-r--r--c/src/lib/libbsp/powerpc/dmv177/timer/timer.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/c/src/lib/libbsp/powerpc/dmv177/timer/timer.c b/c/src/lib/libbsp/powerpc/dmv177/timer/timer.c
index b273454ec1..e912c018da 100644
--- a/c/src/lib/libbsp/powerpc/dmv177/timer/timer.c
+++ b/c/src/lib/libbsp/powerpc/dmv177/timer/timer.c
@@ -14,7 +14,7 @@
#include <bsp.h>
-rtems_unsigned64 Timer_driver_Start_time;
+uint64_t Timer_driver_Start_time;
rtems_boolean Timer_driver_Find_average_overhead;
@@ -64,9 +64,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 */
@@ -76,9 +76,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 */