diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-08-09 09:20:33 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-08-10 07:14:43 +0200 |
commit | f4424cfb499f56e46a83c3ba9b018d091b2f6088 (patch) | |
tree | 0e3e98cfcaf706b2a35ef0baf0448e0b868d766d /bsps/sparc/include/bsp/apbuart.h | |
parent | posix: Add configure check for mprotect() (diff) | |
download | rtems-f4424cfb499f56e46a83c3ba9b018d091b2f6088.tar.bz2 |
bsps/sparc: Move polled APBUART functions
This reduces the link-time dependencies and avoids copy-and-paste.
Diffstat (limited to '')
-rw-r--r-- | bsps/sparc/include/bsp/apbuart.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bsps/sparc/include/bsp/apbuart.h b/bsps/sparc/include/bsp/apbuart.h index a324805d7d..870e5408d8 100644 --- a/bsps/sparc/include/bsp/apbuart.h +++ b/bsps/sparc/include/bsp/apbuart.h @@ -20,6 +20,7 @@ #define __APBUART_H__ #include <ambapp.h> +#include <grlib.h> #ifdef __cplusplus extern "C" { @@ -53,6 +54,15 @@ extern "C" { #define APBUART_STATUS_TF 0x200 #define APBUART_STATUS_RF 0x400 +void apbuart_outbyte_polled( + struct apbuart_regs *regs, + unsigned char ch, + int do_cr_on_newline, + int wait_sent +); + +int apbuart_inbyte_nonblocking(struct apbuart_regs *regs); + #ifdef __cplusplus } #endif |