diff options
Diffstat (limited to 'c/src/lib/libbsp/sparc/leon/console/debugputs.c')
-rw-r--r-- | c/src/lib/libbsp/sparc/leon/console/debugputs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/c/src/lib/libbsp/sparc/leon/console/debugputs.c b/c/src/lib/libbsp/sparc/leon/console/debugputs.c index 71b5c8debf..c6c7ac86f1 100644 --- a/c/src/lib/libbsp/sparc/leon/console/debugputs.c +++ b/c/src/lib/libbsp/sparc/leon/console/debugputs.c @@ -26,17 +26,17 @@ void console_outbyte_polled( int port, - char ch + unsigned char ch ) { if ( port == 0 ) { while ( (LEON_REG.UART_Status_1 & LEON_REG_UART_STATUS_THE) == 0 ); - LEON_REG.UART_Channel_1 = (int) ch; + LEON_REG.UART_Channel_1 = (unsigned int) ch; return; } while ( (LEON_REG.UART_Status_2 & LEON_REG_UART_STATUS_THE) == 0 ); - LEON_REG.UART_Channel_2 = (int) ch; + LEON_REG.UART_Channel_2 = (unsigned int) ch; } /* |