mirror of
https://github.com/Fishwaldo/opensbi.git
synced 2025-07-05 04:29:07 +00:00
Support /r/n as newline character.
Signed-off-by: Atish Patra <atish.patra@wdc.com>
This commit is contained in:
parent
5adf2fdc9e
commit
3250fe7299
1 changed files with 2 additions and 0 deletions
|
@ -31,6 +31,8 @@ char sbi_getc(void)
|
||||||
|
|
||||||
void sbi_putc(char ch)
|
void sbi_putc(char ch)
|
||||||
{
|
{
|
||||||
|
if (ch == '\n')
|
||||||
|
sbi_platform_console_putc(console_plat, '\r');
|
||||||
sbi_platform_console_putc(console_plat, ch);
|
sbi_platform_console_putc(console_plat, ch);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue