diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-02-09 12:15:54 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-02-09 12:15:54 +0000 |
commit | 26c173775a7f6ac412d0715ede1ab86a1f9169a9 (patch) | |
tree | ac8b1f5b02947032ceadeb724c0bb80b8baf3099 /c/src/lib/libbsp/m68k/genmcf548x/timer | |
parent | 2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-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 'c/src/lib/libbsp/m68k/genmcf548x/timer')
-rw-r--r-- | c/src/lib/libbsp/m68k/genmcf548x/timer/timer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/m68k/genmcf548x/timer/timer.c b/c/src/lib/libbsp/m68k/genmcf548x/timer/timer.c index 4fae6d18ec..96841b522c 100644 --- a/c/src/lib/libbsp/m68k/genmcf548x/timer/timer.c +++ b/c/src/lib/libbsp/m68k/genmcf548x/timer/timer.c @@ -51,6 +51,7 @@ */ #include <rtems.h> +#include <rtems/btimer.h> #include <bsp.h> #include <mcf548x/mcf548x.h> @@ -67,7 +68,7 @@ void benchmark_timer_initialize(void) * Return timer value in microsecond units * XLB clock 100 MHz / 1us is equal to 100 counts */ -int +uint32_t benchmark_timer_read(void) { microsecond_timer_value = (0xFFFFFFFF - MCF548X_SLT_SCNT1)/100; |