diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-02-09 08:38:15 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-02-09 08:38:15 +0000 |
commit | d085040aef952f77797a4852e1e618eee1ede644 (patch) | |
tree | 7837cfb826f102edeefae870797f3cf9e7ed77c8 /c/src/lib/libbsp/i386/i386ex | |
parent | 2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-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/i386/i386ex')
-rw-r--r-- | c/src/lib/libbsp/i386/i386ex/ChangeLog | 5 | ||||
-rw-r--r-- | c/src/lib/libbsp/i386/i386ex/timer/timer.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/i386/i386ex/ChangeLog b/c/src/lib/libbsp/i386/i386ex/ChangeLog index d3c2338e4c..1ed3b7bc0f 100644 --- a/c/src/lib/libbsp/i386/i386ex/ChangeLog +++ b/c/src/lib/libbsp/i386/i386ex/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/i386/i386ex/timer/timer.c b/c/src/lib/libbsp/i386/i386ex/timer/timer.c index 00ff157628..c4c9390648 100644 --- a/c/src/lib/libbsp/i386/i386ex/timer/timer.c +++ b/c/src/lib/libbsp/i386/i386ex/timer/timer.c @@ -11,6 +11,7 @@ #include <rtems.h> #include <bsp.h> +#include <rtems/btimer.h> #include <stdlib.h> int Ttimer_val; @@ -93,7 +94,7 @@ void benchmark_timer_initialize(void) /* (3 ticks) to start/stop the timer. */ #define LEAST_VALID 4 /* Don't trust a value lower than this */ -int benchmark_timer_read(void) +uint32_t benchmark_timer_read(void) { register uint32_t clicks; register uint32_t total; |