diff options
Diffstat (limited to 'c/src/lib/libbsp/unix/posix/console/console-io.c')
-rw-r--r-- | c/src/lib/libbsp/unix/posix/console/console-io.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/unix/posix/console/console-io.c b/c/src/lib/libbsp/unix/posix/console/console-io.c new file mode 100644 index 0000000000..a2f7e814e0 --- /dev/null +++ b/c/src/lib/libbsp/unix/posix/console/console-io.c @@ -0,0 +1,21 @@ +/* + * UNIX BSP Debug IO + * + * 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/bspIo.h> +#include <stdio.h> + +void POSIX_BSP_output_char(char c) { fputc( c, stderr ); } + +BSP_output_char_function_type BSP_output_char = POSIX_BSP_output_char; +BSP_polling_getchar_function_type BSP_poll_char = NULL; |