summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m68k/idp/timer/timer.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-02-09 12:15:54 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-02-09 12:15:54 +0000
commit26c173775a7f6ac412d0715ede1ab86a1f9169a9 (patch)
treeac8b1f5b02947032ceadeb724c0bb80b8baf3099 /c/src/lib/libbsp/m68k/idp/timer/timer.c
parent2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-26c173775a7f6ac412d0715ede1ab86a1f9169a9.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 '')
-rw-r--r--c/src/lib/libbsp/m68k/idp/timer/timer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/m68k/idp/timer/timer.c b/c/src/lib/libbsp/m68k/idp/timer/timer.c
index e0e3f9b536..0e5786100a 100644
--- a/c/src/lib/libbsp/m68k/idp/timer/timer.c
+++ b/c/src/lib/libbsp/m68k/idp/timer/timer.c
@@ -12,6 +12,7 @@
*/
#include <rtems.h>
+#include <rtems/btimer.h>
#include <bsp.h>
#include <rtems/motorola/mc68230.h>
@@ -50,7 +51,7 @@ void benchmark_timer_initialize(void)
#define AVG_OVERHEAD 9 /* may not be right -- do this later */
#define LEAST_VALID 10 /* Don't trust a value lower than this */
-int benchmark_timer_read(void)
+uint32_t benchmark_timer_read(void)
{
uint8_t data;
uint8_t msb, osb, lsb;