summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/powerpc/mpc5xx/timer/timer.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-10-21 13:24:40 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-10-21 13:24:40 +0000
commitad17f7f546963f46681719e9fbfceeaff6b4a039 (patch)
treedb2c33791e61dd5b9ae0f07c5e55ae74b9f61847 /c/src/lib/libcpu/powerpc/mpc5xx/timer/timer.c
parent2004-10-21 Ralf Corsepius <ralf_corsepius@rtems.org> (diff)
downloadrtems-ad17f7f546963f46681719e9fbfceeaff6b4a039.tar.bz2
2004-10-21 Ralf Corsepius <ralf_corsepius@rtems.org>
* mpc5xx/clock/clock.c, mpc5xx/include/mpc5xx.h mpc5xx/timer/timer.c: Use POSIX fixed size types.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libcpu/powerpc/mpc5xx/timer/timer.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/c/src/lib/libcpu/powerpc/mpc5xx/timer/timer.c b/c/src/lib/libcpu/powerpc/mpc5xx/timer/timer.c
index 5a1ce5e2a6..5045eae5ca 100644
--- a/c/src/lib/libcpu/powerpc/mpc5xx/timer/timer.c
+++ b/c/src/lib/libcpu/powerpc/mpc5xx/timer/timer.c
@@ -51,15 +51,15 @@
#include <rtems.h>
#include <mpc5xx.h>
-static volatile rtems_unsigned32 Timer_starting;
+static volatile uint32_t Timer_starting;
static rtems_boolean Timer_driver_Find_average_overhead;
/*
* This is so small that this code will be reproduced where needed.
*/
-static inline rtems_unsigned32 get_itimer(void)
+static inline uint32_t get_itimer(void)
{
- rtems_unsigned32 ret;
+ uint32_t ret;
asm volatile ("mftb %0" : "=r" ((ret))); /* TBLO */
@@ -89,8 +89,8 @@ void Timer_initialize(void)
int Read_timer(void)
{
- rtems_unsigned32 clicks;
- rtems_unsigned32 total;
+ uint32_t clicks;
+ uint32_t total;
clicks = get_itimer();