summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-04-02 11:17:45 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-04-02 11:17:45 +0000
commit1e99524efec0872ee78834617dedc44b819f4751 (patch)
tree4a11676cbea232808d18d2941644a50ff050cbcd /c
parent2007-04-01 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-1e99524efec0872ee78834617dedc44b819f4751.tar.bz2
2007-04-02 Joel Sherrill <joel@OARcorp.com>
* dummy_printk_support.c: New file.
Diffstat (limited to 'c')
-rw-r--r--c/src/lib/libbsp/shared/ChangeLog4
-rw-r--r--c/src/lib/libbsp/shared/dummy_printk_support.c30
2 files changed, 34 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/shared/ChangeLog b/c/src/lib/libbsp/shared/ChangeLog
index 1c0f2b4346..3c386e145b 100644
--- a/c/src/lib/libbsp/shared/ChangeLog
+++ b/c/src/lib/libbsp/shared/ChangeLog
@@ -1,3 +1,7 @@
+2007-04-02 Joel Sherrill <joel@OARcorp.com>
+
+ * dummy_printk_support.c: New file.
+
2007-03-28 Joel Sherrill <joel@OARcorp.com>
PR 1232/bsps
diff --git a/c/src/lib/libbsp/shared/dummy_printk_support.c b/c/src/lib/libbsp/shared/dummy_printk_support.c
new file mode 100644
index 0000000000..4045cf5a84
--- /dev/null
+++ b/c/src/lib/libbsp/shared/dummy_printk_support.c
@@ -0,0 +1,30 @@
+/*
+ * This file contains a stub for the required printk support.
+ * It is NOT functional!!!
+ *
+ * This driver uses the termios pseudo driver.
+ *
+ * COPYRIGHT (c) 1989-2007.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+/*
+ * To support printk
+ */
+
+#include <rtems.h>
+#include <rtems/bspIo.h>
+
+void BSP_output_char_f(char c)
+{
+ /* the character just needs to disappear */
+}
+
+BSP_output_char_function_type BSP_output_char = BSP_output_char_f;
+BSP_polling_getchar_function_type BSP_poll_char = NULL;