diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-10-21 13:19:15 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-10-21 13:19:15 +0000 |
commit | 15ebe58b4ead4a088120590b80700bc152416cb9 (patch) | |
tree | 7ef8235b3ba942a03160fc21e30e0c3af524a7d0 /c/src/lib/libcpu/arm/at91rm9200/timer/timer.c | |
parent | 2004-10-21 Ralf Corsepius <ralf_corsepius@rtems.org> (diff) | |
download | rtems-15ebe58b4ead4a088120590b80700bc152416cb9.tar.bz2 |
2004-10-20 Ralf Corsepius <ralf_corsepius@rtems.org>
* timer/timer.c: Use POSIX fixed-size types.
Diffstat (limited to 'c/src/lib/libcpu/arm/at91rm9200/timer/timer.c')
-rw-r--r-- | c/src/lib/libcpu/arm/at91rm9200/timer/timer.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/c/src/lib/libcpu/arm/at91rm9200/timer/timer.c b/c/src/lib/libcpu/arm/at91rm9200/timer/timer.c index 4ca5fab000..0f16e31516 100644 --- a/c/src/lib/libcpu/arm/at91rm9200/timer/timer.c +++ b/c/src/lib/libcpu/arm/at91rm9200/timer/timer.c @@ -27,9 +27,9 @@ #include <at91rm9200.h> #include <at91rm9200_pmc.h> -rtems_unsigned16 tstart; +uint16_t tstart; rtems_boolean Timer_driver_Find_average_overhead; -unsigned32 tick_time; +uint32_t tick_time; /* * Set up TC0 - * timer_clock2 (MCK/8) @@ -37,7 +37,7 @@ unsigned32 tick_time; */ void Timer_initialize( void ) { - unsigned32 tmr_freq; + uint32_t tmr_freq; /* since we are using timer_clock2, divide mck by 8 */ tmr_freq = at91rm9200_get_mck() / 8; @@ -68,8 +68,8 @@ void Timer_initialize( void ) int Read_timer( void ) { - rtems_unsigned16 t; - rtems_unsigned32 total; + uint16_t t; + uint32_t total; t = TC_TC0_REG(TC_CV); /* |