diff options
author | Christian Mauderer <Christian.Mauderer@embedded-brains.de> | 2014-07-01 15:09:49 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-07-09 12:07:49 +0200 |
commit | 8448a4defcd2f41328628468c4f96547f98beb43 (patch) | |
tree | f78b256e24ec5480c0efc1639f3ce79539660937 /c/src/lib/libbsp/sparc/shared/include | |
parent | bsps/sparc: Add and use shared APBUART console (diff) | |
download | rtems-8448a4defcd2f41328628468c4f96547f98beb43.tar.bz2 |
bsps/sparc: Move APBUART printk support
Diffstat (limited to 'c/src/lib/libbsp/sparc/shared/include')
-rw-r--r-- | c/src/lib/libbsp/sparc/shared/include/apbuart_termios.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/sparc/shared/include/apbuart_termios.h b/c/src/lib/libbsp/sparc/shared/include/apbuart_termios.h index 4b54252518..ba5f049e09 100644 --- a/c/src/lib/libbsp/sparc/shared/include/apbuart_termios.h +++ b/c/src/lib/libbsp/sparc/shared/include/apbuart_termios.h @@ -33,6 +33,25 @@ const rtems_termios_device_handler apbuart_handler_interrupt; const rtems_termios_device_handler apbuart_handler_polled; +/* + * apbuart_outbyte_polled + * + * This routine transmits a character using polling. + */ +void apbuart_outbyte_polled( + struct apbuart_regs *regs, + unsigned char ch, + int do_cr_on_newline, + int wait_sent +); + +/* + * apbuart_inbyte_nonblocking + * + * This routine polls for a character. + */ +int apbuart_inbyte_nonblocking(struct apbuart_regs *regs); + #ifdef __cplusplus } #endif /* __cplusplus */ |