summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/tqm8xx/timer
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/timer
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/timer')
-rw-r--r--c/src/lib/libbsp/powerpc/tqm8xx/timer/timer.c5
1 files changed, 3 insertions, 2 deletions
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;