summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-02-09 11:41:54 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-02-09 11:41:54 +0000
commit2c4cae4bf364b8bdcaacea55cd5a9d47a0d8a9e1 (patch)
tree4327f9a403c41919ddd59e0b146ea05fbe5941ae
parent2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-2c4cae4bf364b8bdcaacea55cd5a9d47a0d8a9e1.tar.bz2
2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>
* misc/timer.c: Include <rtems/btimer.h>. Fix benchmark_timer_read() definition.
-rw-r--r--c/src/lib/libbsp/arm/lpc24xx/ChangeLog5
-rw-r--r--c/src/lib/libbsp/arm/lpc24xx/misc/timer.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/arm/lpc24xx/ChangeLog b/c/src/lib/libbsp/arm/lpc24xx/ChangeLog
index 25d790b0bc..a11a12ac81 100644
--- a/c/src/lib/libbsp/arm/lpc24xx/ChangeLog
+++ b/c/src/lib/libbsp/arm/lpc24xx/ChangeLog
@@ -1,3 +1,8 @@
+2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * misc/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/arm/lpc24xx/misc/timer.c b/c/src/lib/libbsp/arm/lpc24xx/misc/timer.c
index 73ec32693e..dd2866b3b5 100644
--- a/c/src/lib/libbsp/arm/lpc24xx/misc/timer.c
+++ b/c/src/lib/libbsp/arm/lpc24xx/misc/timer.c
@@ -20,11 +20,13 @@
*/
#include <rtems.h>
+#include <bsh.h>
+#include <rtems/btimer.h>
#include <rtems/timerdrv.h>
#include <bsp/system-clocks.h>
-static bool benchmark_timer_find_average_overhead = false;
+bool benchmark_timer_find_average_overhead = false;
static uint32_t benchmark_timer_base;