summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/powerpc/ppc403/timer/timer.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-03-31 02:04:00 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-03-31 02:04:00 +0000
commit66c373bf01bd055ad89eca5d4b403513fbcf65cf (patch)
treee2d0a4f7068567e184a9caf32e8b45281937c0b3 /c/src/lib/libcpu/powerpc/ppc403/timer/timer.c
parent2004-03-30 Ralf Corsepius <ralf_corsepius@rtems.org> (diff)
downloadrtems-66c373bf01bd055ad89eca5d4b403513fbcf65cf.tar.bz2
2004-03-30 Ralf Corsepius <ralf_corsepius@rtems.org>
* mpc505/timer/timer.c, mpc5xx/timer/timer.c, mpc6xx/clock/c_clock.c, mpc6xx/timer/timer.c, mpc8260/clock/clock.c, mpc8260/console-generic/console-generic.c, mpc8260/cpm/cp.c, mpc8260/cpm/dpram.c, mpc8260/include/cpm.h, mpc8260/include/mmu.h, mpc8260/include/mpc8260.h, mpc8260/mmu/mmu.c, mpc8260/timer/timer.c, mpc8xx/clock/clock.c, mpc8xx/console-generic/console-generic.c, mpc8xx/cpm/cp.c, mpc8xx/cpm/dpram.c, mpc8xx/include/cpm.h, mpc8xx/include/mmu.h, mpc8xx/include/mpc8xx.h, mpc8xx/mmu/mmu.c, mpc8xx/timer/timer.c, ppc403/clock/clock.c, ppc403/console/console.c, ppc403/console/console405.c, ppc403/ictrl/ictrl.c, ppc403/ictrl/ictrl.h, ppc403/timer/timer.c, ppc403/tty_drv/tty_drv.c, rtems/powerpc/cache.h, shared/src/cache.c: Convert to using c99 fixed size types.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libcpu/powerpc/ppc403/timer/timer.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/c/src/lib/libcpu/powerpc/ppc403/timer/timer.c b/c/src/lib/libcpu/powerpc/ppc403/timer/timer.c
index c5911fe4a2..724b936d94 100644
--- a/c/src/lib/libcpu/powerpc/ppc403/timer/timer.c
+++ b/c/src/lib/libcpu/powerpc/ppc403/timer/timer.c
@@ -38,15 +38,15 @@
#include <rtems.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;
#ifndef ppc405
asm volatile ("mfspr %0, 0x3dd" : "=r" ((ret))); /* TBLO */
@@ -61,7 +61,7 @@ static inline rtems_unsigned32 get_itimer(void)
void Timer_initialize()
{
- rtems_unsigned32 iocr;
+ uint32_t iocr;
#ifndef ppc405
asm volatile ("mfdcr %0, 0xa0" : "=r" (iocr)); /* IOCR */
@@ -84,8 +84,8 @@ void Timer_initialize()
int Read_timer()
{
- rtems_unsigned32 clicks;
- rtems_unsigned32 total;
+ uint32_t clicks;
+ uint32_t total;
clicks = get_itimer();