diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-12-05 13:02:59 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-12-05 13:06:07 +0100 |
commit | 2e8b5de2b202c58c22dac3b2750e755982791da4 (patch) | |
tree | 772c614e2d4afd5334fbabc510d7602dc1a4f77c /bsps/sparc/leon2/include/bsp.h | |
parent | psxhdrs: Implement POSIX API Signature Compliance Tests for monetary.h (GCI 2... (diff) | |
download | rtems-2e8b5de2b202c58c22dac3b2750e755982791da4.tar.bz2 |
bsp/leon2: Move printk() support
Avoid assert() in console_inbyte_nonblocking().
Do not poll forever in bsp_in_char(). This allows the caller to decide
what to do if no character is available.
This entangles some dependencies and fixes a spconfig02 test failure.
Diffstat (limited to '')
-rw-r--r-- | bsps/sparc/leon2/include/bsp.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bsps/sparc/leon2/include/bsp.h b/bsps/sparc/leon2/include/bsp.h index 2028ba0db3..e9b98492d7 100644 --- a/bsps/sparc/leon2/include/bsp.h +++ b/bsps/sparc/leon2/include/bsp.h @@ -213,6 +213,10 @@ int cchip1_register(void); #define GPTIMER_INFO_AVAIL /* GPTIMER Timer driver */ #define GRETH_INFO_AVAIL /* GRETH Ethernet driver */ +void console_outbyte_polled( int port, unsigned char ch ); + +int console_inbyte_nonblocking( int port ); + #ifdef __cplusplus } #endif |