adds ehrenberg platform
This commit is contained in:
@@ -12,6 +12,10 @@
|
||||
int __wrap_puts(const char *s)
|
||||
{
|
||||
while (*s != '\0') {
|
||||
#if defined(BOARD_ehrenberg)
|
||||
while (uart_get_tx_free(uart)==0) ;
|
||||
uart_write(uart, *s);
|
||||
#else
|
||||
while (UART0_REG(UART_REG_TXFIFO) & 0x80000000) ;
|
||||
UART0_REG(UART_REG_TXFIFO) = *s;
|
||||
|
||||
@@ -19,7 +23,7 @@ int __wrap_puts(const char *s)
|
||||
while (UART0_REG(UART_REG_TXFIFO) & 0x80000000) ;
|
||||
UART0_REG(UART_REG_TXFIFO) = '\r';
|
||||
}
|
||||
|
||||
#endif
|
||||
++s;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user