summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc/erc32/console/console.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2006-11-16 16:31:32 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2006-11-16 16:31:32 +0000
commit74b09f1ca9ba5035c4e82c4c8830f6d015bbfdca (patch)
treea195ee58aeed6d53e559d1f958769680e9380e9a /c/src/lib/libbsp/sparc/erc32/console/console.c
parentFix typo. (diff)
downloadrtems-74b09f1ca9ba5035c4e82c4c8830f6d015bbfdca.tar.bz2
2006-11-16 Joel Sherrill <joel@OARcorp.com>
* clock/ckinit.c, console/console.c: Use common clock driver template and eliminate all fast idle code specific to this BSP. This eliminates a fair amount of code in the BSP clock driver and bsp_startup. The LEON3 has to do a scan of the AMBA bus to find the timer so I added the new hook Clock_driver_support_find_timer to support this. In general, there was some clean up to the file headers of various files.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/sparc/erc32/console/console.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/sparc/erc32/console/console.c b/c/src/lib/libbsp/sparc/erc32/console/console.c
index c7ec8a366a..68d946672a 100644
--- a/c/src/lib/libbsp/sparc/erc32/console/console.c
+++ b/c/src/lib/libbsp/sparc/erc32/console/console.c
@@ -416,3 +416,14 @@ rtems_device_driver console_control(
{
return rtems_termios_ioctl (arg);
}
+
+/*
+ * To support printk
+ */
+
+#include <rtems/bspIo.h>
+
+void BSP_output_char_f(char c) { console_outbyte_polled( 0, c ); }
+
+BSP_output_char_function_type BSP_output_char = BSP_output_char_f;
+BSP_polling_getchar_function_type BSP_poll_char = NULL;