summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/v850/gdbv850sim/console/console-io.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2014-10-08 16:04:56 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-10-10 10:17:09 -0500
commit62791499ebf0a6161e1541eb7587c57d88407f8b (patch)
treefaaa9f51fdd6d13727c237ddc44e87a9cdd60df4 /c/src/lib/libbsp/v850/gdbv850sim/console/console-io.c
parentMove Mongoose-V specific devices into BSP. (diff)
downloadrtems-62791499ebf0a6161e1541eb7587c57d88407f8b.tar.bz2
Add console-polled.h and update all BSPs that should use it.
The file console-polled.h provides the prototypes for the three required methods when implementing a single port polled console driver. This paradigm is common on simulators and simple hardware. + Updated the BSPs Makefile.am to make console-polled.h available. + Regenerated the BSPs preinstall.sm. + Updated console support files to include <bsp/console-polled.h>. + Updated console support files to make printk() support method static.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/v850/gdbv850sim/console/console-io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/v850/gdbv850sim/console/console-io.c b/c/src/lib/libbsp/v850/gdbv850sim/console/console-io.c
index c1781975b8..c1f51a34d7 100644
--- a/c/src/lib/libbsp/v850/gdbv850sim/console/console-io.c
+++ b/c/src/lib/libbsp/v850/gdbv850sim/console/console-io.c
@@ -8,6 +8,7 @@
*/
#include <bsp.h>
+#include <bsp/console-polled.h>
#include <rtems/libio.h>
#include <bsp/syscall.h>
@@ -55,7 +56,7 @@ int console_inbyte_nonblocking(
#include <rtems/bspIo.h>
-void console_output_char(char c) { console_outbyte_polled( 0, c ); }
+static void console_output_char(char c) { console_outbyte_polled( 0, c ); }
BSP_output_char_function_type BSP_output_char = console_output_char;
BSP_polling_getchar_function_type BSP_poll_char = NULL;