Support /r/n as newline character.

Signed-off-by: Atish Patra <atish.patra@wdc.com>
This commit is contained in:
Atish Patra 2018-12-17 13:46:30 -08:00
parent 5adf2fdc9e
commit 3250fe7299

View file

@ -31,6 +31,8 @@ char sbi_getc(void)
void sbi_putc(char ch)
{
if (ch == '\n')
sbi_platform_console_putc(console_plat, '\r');
sbi_platform_console_putc(console_plat, ch);
}