summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/shared
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-11-13 14:59:22 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-11-13 14:59:22 +0000
commit7f5213d04275ce415b01dfeeefee7752b060cafa (patch)
tree0b5b8bb5422330a373850dac75ebe5f83c551356 /c/src/lib/libbsp/shared
parent2000-11-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-7f5213d04275ce415b01dfeeefee7752b060cafa.tar.bz2
2000-11-13 Joel Sherrill <joel@OARcorp.com>
* clock_driver_stub.c: This is a stub of a clock driver that is sufficient for linking the ticker application. Some simulators do not have a soruce for a clock tick. Also this can be used while constructing a BSP so everything links.
Diffstat (limited to 'c/src/lib/libbsp/shared')
-rw-r--r--c/src/lib/libbsp/shared/ChangeLog7
-rw-r--r--c/src/lib/libbsp/shared/clock_driver_stub.c22
2 files changed, 29 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/shared/ChangeLog b/c/src/lib/libbsp/shared/ChangeLog
index 3f5e743729..7d6d2917d5 100644
--- a/c/src/lib/libbsp/shared/ChangeLog
+++ b/c/src/lib/libbsp/shared/ChangeLog
@@ -1,3 +1,10 @@
+2000-11-13 Joel Sherrill <joel@OARcorp.com>
+
+ * clock_driver_stub.c: This is a stub of a clock driver that
+ is sufficient for linking the ticker application. Some
+ simulators do not have a soruce for a clock tick. Also
+ this can be used while constructing a BSP so everything links.
+
2000-11-01 Joel Sherrill <joel@OARcorp.com>
* bsplibc.c: assoc.h, error.h, libio_.h, libio.h, and
diff --git a/c/src/lib/libbsp/shared/clock_driver_stub.c b/c/src/lib/libbsp/shared/clock_driver_stub.c
new file mode 100644
index 0000000000..1b7a77ac70
--- /dev/null
+++ b/c/src/lib/libbsp/shared/clock_driver_stub.c
@@ -0,0 +1,22 @@
+/*
+ * Instantiate the clock driver shell.
+ *
+ * Since there is no clock source on the simulator, all we do is
+ * make sure it will build.
+ *
+ * $Id$
+ */
+
+#define CLOCK_VECTOR 0
+
+#define Clock_driver_support_at_tick()
+
+#define Clock_driver_support_install_isr( _new, _old ) \
+ do { _old = 0; } while(0)
+
+
+#define Clock_driver_support_initialize_hardware()
+
+#define Clock_driver_support_shutdown_hardware()
+
+#include "clockdrv_shell.c"