summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-10-21 13:19:15 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-10-21 13:19:15 +0000
commit15ebe58b4ead4a088120590b80700bc152416cb9 (patch)
tree7ef8235b3ba942a03160fc21e30e0c3af524a7d0 /c
parent2004-10-21 Ralf Corsepius <ralf_corsepius@rtems.org> (diff)
downloadrtems-15ebe58b4ead4a088120590b80700bc152416cb9.tar.bz2
2004-10-20 Ralf Corsepius <ralf_corsepius@rtems.org>
* timer/timer.c: Use POSIX fixed-size types.
Diffstat (limited to 'c')
-rw-r--r--c/src/lib/libcpu/arm/at91rm9200/ChangeLog4
-rw-r--r--c/src/lib/libcpu/arm/at91rm9200/timer/timer.c10
-rw-r--r--c/src/lib/libcpu/arm/mc9328mxl/ChangeLog4
-rw-r--r--c/src/lib/libcpu/arm/mc9328mxl/timer/timer.c2
4 files changed, 14 insertions, 6 deletions
diff --git a/c/src/lib/libcpu/arm/at91rm9200/ChangeLog b/c/src/lib/libcpu/arm/at91rm9200/ChangeLog
index 80aa122922..50b15efc10 100644
--- a/c/src/lib/libcpu/arm/at91rm9200/ChangeLog
+++ b/c/src/lib/libcpu/arm/at91rm9200/ChangeLog
@@ -1,3 +1,7 @@
+2004-10-20 Ralf Corsepius <ralf_corsepius@rtems.org>
+
+ * timer/timer.c: Use POSIX fixed-size types.
+
2004-07-15 Jay Monkman
* ChangeLog, Makefile.am, clock/.cvsignore, clock/clock.c,
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);
/*
diff --git a/c/src/lib/libcpu/arm/mc9328mxl/ChangeLog b/c/src/lib/libcpu/arm/mc9328mxl/ChangeLog
index df4f4358d8..a26c1b7cac 100644
--- a/c/src/lib/libcpu/arm/mc9328mxl/ChangeLog
+++ b/c/src/lib/libcpu/arm/mc9328mxl/ChangeLog
@@ -1,3 +1,7 @@
+2004-10-20 Ralf Corsepius <ralf_corsepius@rtems.org>
+
+ * timer/timer.c: Use POSIX fixed-size types.
+
2004-07-15 Jay Monkman
* ChangeLog, Makefile.am, clock/.cvsignore, clock/clockdrv.c,
diff --git a/c/src/lib/libcpu/arm/mc9328mxl/timer/timer.c b/c/src/lib/libcpu/arm/mc9328mxl/timer/timer.c
index ba7c3e8458..f7101e72ae 100644
--- a/c/src/lib/libcpu/arm/mc9328mxl/timer/timer.c
+++ b/c/src/lib/libcpu/arm/mc9328mxl/timer/timer.c
@@ -67,7 +67,7 @@ void Timer_initialize( void )
int Read_timer( void )
{
- rtems_unsigned32 t;
+ uint32_t t;
unsigned long long total;
t = MC9328MXL_TMR2_TCN;