summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-10-17 20:38:42 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-10-17 20:38:42 +0000
commit0f52b7f223ba34a1a67f1407efc20856f5adb37e (patch)
tree65cee5d8764374cd335f6dbe80ec44403ff4551d /c/src/lib/libbsp
parent60c752425cd117103babf9746339c03b52b3e533 (diff)
downloadrtems-0f52b7f223ba34a1a67f1407efc20856f5adb37e.tar.bz2
2001-10-17 Joel Sherrill <joel@OARcorp.com>
* timerstub.c: New stub file for BSPs that don't have timer hardware.
Diffstat (limited to 'c/src/lib/libbsp')
-rw-r--r--c/src/lib/libbsp/shared/ChangeLog4
-rw-r--r--c/src/lib/libbsp/shared/timerstub.c36
2 files changed, 40 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/shared/ChangeLog b/c/src/lib/libbsp/shared/ChangeLog
index 9bef9a83a7..09eb7cb25e 100644
--- a/c/src/lib/libbsp/shared/ChangeLog
+++ b/c/src/lib/libbsp/shared/ChangeLog
@@ -1,3 +1,7 @@
+2001-10-17 Joel Sherrill <joel@OARcorp.com>
+
+ * timerstub.c: New stub file for BSPs that don't have timer hardware.
+
2001-10-12 Joel Sherrill <joel@OARcorp.com>
* console-polled.c, console.c: Fixed typo.
diff --git a/c/src/lib/libbsp/shared/timerstub.c b/c/src/lib/libbsp/shared/timerstub.c
new file mode 100644
index 0000000000..bba07bcf7c
--- /dev/null
+++ b/c/src/lib/libbsp/shared/timerstub.c
@@ -0,0 +1,36 @@
+/*
+ * This file implements a stub benchmark timer that is sufficient to
+ * satisfy linking the RTEMS Benchmarks.
+ *
+ * COPYRIGHT (c) 1989-2001.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ *
+ * $Id$
+ */
+
+#include <bsp.h>
+
+rtems_boolean Timer_driver_Find_average_overhead;
+
+void Timer_initialize()
+{
+}
+int Read_timer()
+{
+ if (Timer_driver_Find_average_overhead)
+ return 1;
+ return 0;
+}
+
+rtems_status_code Empty_function( void )
+{
+ return RTEMS_SUCCESSFUL;
+}
+
+void Set_find_average_overhead(
+ rtems_boolean find_flag
+)
+{
+ Timer_driver_Find_average_overhead = find_flag;
+}