diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-03-31 04:14:40 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-03-31 04:14:40 +0000 |
commit | 2a7f710f5d42f8e458d491e17c5cbf9499313f7a (patch) | |
tree | a75e45f479763eed848a123c758dd3cc0082cc01 /c/src/lib/libbsp/arm/edb7312/timer/timer.c | |
parent | 2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org> (diff) | |
download | rtems-2a7f710f5d42f8e458d491e17c5cbf9499313f7a.tar.bz2 |
2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org>
* console/uart.c, include/ep7312.h, startup/bspstart.c,
timer/timer.c: Convert to using c99 fixed size types.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/arm/edb7312/timer/timer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/arm/edb7312/timer/timer.c b/c/src/lib/libbsp/arm/edb7312/timer/timer.c index fe26177c73..27f896a2f6 100644 --- a/c/src/lib/libbsp/arm/edb7312/timer/timer.c +++ b/c/src/lib/libbsp/arm/edb7312/timer/timer.c @@ -24,7 +24,7 @@ #include <bsp.h> #include <ep7312.h> -rtems_unsigned16 tstart; +uint16_t tstart; rtems_boolean Timer_driver_Find_average_overhead; void Timer_initialize( void ) @@ -50,8 +50,8 @@ void Timer_initialize( void ) int Read_timer( void ) { - rtems_unsigned16 t; - rtems_unsigned32 total; + uint16_t t; + uint32_t total; t = *EP7312_TC2D; /* @@ -60,7 +60,7 @@ int Read_timer( void ) * interrupts. */ - total = (unsigned32)0x0000ffff - t; /* result is 1/512000 = ~2 uS */ + total = (uint32_t)0x0000ffff - t; /* result is 1/512000 = ~2 uS */ total = (total * 1953) / 1000; /* convert to uS */ if ( Timer_driver_Find_average_overhead == 1 ) return total; /* in XXX microsecond units */ |