summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/tqm8xx
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-02-09 08:38:15 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-02-09 08:38:15 +0000
commitd085040aef952f77797a4852e1e618eee1ede644 (patch)
tree7837cfb826f102edeefae870797f3cf9e7ed77c8 /c/src/lib/libbsp/powerpc/tqm8xx
parent2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-d085040aef952f77797a4852e1e618eee1ede644.tar.bz2
2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>
* timer/timer.c: Include <rtems/btimer.h>. Fix benchmark_timer_read() definition.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/tqm8xx')
-rw-r--r--c/src/lib/libbsp/powerpc/tqm8xx/ChangeLog5
-rw-r--r--c/src/lib/libbsp/powerpc/tqm8xx/timer/timer.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/powerpc/tqm8xx/ChangeLog b/c/src/lib/libbsp/powerpc/tqm8xx/ChangeLog
index 0c1ab4d841..751010adcb 100644
--- a/c/src/lib/libbsp/powerpc/tqm8xx/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/tqm8xx/ChangeLog
@@ -1,3 +1,8 @@
+2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * timer/timer.c: Include <rtems/btimer.h>.
+ Fix benchmark_timer_read() definition.
+
2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.
diff --git a/c/src/lib/libbsp/powerpc/tqm8xx/timer/timer.c b/c/src/lib/libbsp/powerpc/tqm8xx/timer/timer.c
index b38feec17f..21cd564b7f 100644
--- a/c/src/lib/libbsp/powerpc/tqm8xx/timer/timer.c
+++ b/c/src/lib/libbsp/powerpc/tqm8xx/timer/timer.c
@@ -50,6 +50,7 @@
#include <rtems.h>
#include <bsp.h>
+#include <rtems/btimer.h>
#include <mpc8xx.h>
bool benchmark_timer_find_average_overhead;
@@ -86,9 +87,9 @@ benchmark_timer_initialize (void)
/*
* Return timer value in microsecond units
*/
-int benchmark_timer_read(void)
+uint32_t benchmark_timer_read(void)
{
- int retval;
+ uint32_t retval;
retval = *(uint32_t*)&m8xx.tcn1;
retval = retval * 1000000LL / BSP_bus_frequency;
return retval;