diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2012-04-19 15:21:25 +0200 |
---|---|---|
committer | Gedare Bloom <gedare@rtems.org> | 2012-04-19 13:28:06 -0400 |
commit | 5d48037f83479c6937983d6a423933931d305855 (patch) | |
tree | e91d50d5ccb93e7ec2f10763f9c15fde15a6ad4d /c/src/lib/libbsp/sparc/leon3/console/console.c | |
parent | LEON3: debugputs removed pointless isinit code, invoked only once (diff) | |
download | rtems-5d48037f83479c6937983d6a423933931d305855.tar.bz2 |
LEON3: added TX-wait-complete and CR on NL support for UART
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
Diffstat (limited to 'c/src/lib/libbsp/sparc/leon3/console/console.c')
-rw-r--r-- | c/src/lib/libbsp/sparc/leon3/console/console.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/sparc/leon3/console/console.c b/c/src/lib/libbsp/sparc/leon3/console/console.c index f286a6867c..0575468ffc 100644 --- a/c/src/lib/libbsp/sparc/leon3/console/console.c +++ b/c/src/lib/libbsp/sparc/leon3/console/console.c @@ -50,8 +50,11 @@ int syscon_uart_index __attribute__((weak)) = 0; extern void apbuart_outbyte_polled( ambapp_apb_uart *regs, - char ch -); + unsigned char ch, + int do_cr_on_newline, + int wait_sent + ); + /* body is in debugputs.c */ @@ -156,7 +159,7 @@ ssize_t console_write_polled(int minor, const char *buf, size_t len) port = minor - 1; while (nwrite < len) { - apbuart_outbyte_polled(apbuarts[port].regs, *buf++); + apbuart_outbyte_polled(apbuarts[port].regs, *buf++, 1, 0); nwrite++; } return nwrite; @@ -323,7 +326,7 @@ rtems_device_driver console_initialize( * On a MP system one should not open UARTs that other OS instances use. */ if (syscon_uart_index < uarts) { - status = rtems_io_register_name( "/dev/console", major, 0 ); + status = rtems_io_register_name("/dev/console", major, 0); if (status != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(status); } |