Added the ability to select stdout UART by modyfying STDOUT_UART.
This commit is contained in:
parent
3e7edd43aa
commit
b0fb1049ed
3 changed files with 11 additions and 4 deletions
|
|
@ -45,8 +45,8 @@ long _write_r(struct _reent *r, int fd, const char *ptr, int len )
|
|||
if(ptr[i] == '\r')
|
||||
continue;
|
||||
if(ptr[i] == '\n')
|
||||
uart_putc(0, '\r');
|
||||
uart_putc(0, ptr[i]);
|
||||
uart_putc(PRINT_UART, '\r');
|
||||
uart_putc(PRINT_UART, ptr[i]);
|
||||
}
|
||||
return len;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue