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/no_cpu/no_bsp | |
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/no_cpu/no_bsp')
-rw-r--r-- | c/src/lib/libbsp/no_cpu/no_bsp/ChangeLog | 5 | ||||
-rw-r--r-- | c/src/lib/libbsp/no_cpu/no_bsp/timer/timer.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/no_cpu/no_bsp/ChangeLog b/c/src/lib/libbsp/no_cpu/no_bsp/ChangeLog index a77644d1d8..c5a7573a77 100644 --- a/c/src/lib/libbsp/no_cpu/no_bsp/ChangeLog +++ b/c/src/lib/libbsp/no_cpu/no_bsp/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/no_cpu/no_bsp/timer/timer.c b/c/src/lib/libbsp/no_cpu/no_bsp/timer/timer.c index 0fad1a9d26..8877c2e3f3 100644 --- a/c/src/lib/libbsp/no_cpu/no_bsp/timer/timer.c +++ b/c/src/lib/libbsp/no_cpu/no_bsp/timer/timer.c @@ -19,6 +19,7 @@ */ #include <rtems.h> +#include <rtems/btimer.h> #include <bsp.h> uint32_t Timer_interrupts; @@ -54,7 +55,7 @@ void benchmark_timer_initialize( void ) /* This value is in microseconds. */ #define LEAST_VALID 1 /* Don't trust a clicks value lower than this */ -int benchmark_timer_read( void ) +uint32_t benchmark_timer_read( void ) { uint32_t clicks; uint32_t total; |