mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-31 03:30:33 +08:00
LEON: console print \r\n instead of \n\r
This commit is contained in:
@@ -262,12 +262,13 @@ send:
|
||||
__asm__ volatile ("nop"::); __asm__ volatile ("nop"::);
|
||||
__asm__ volatile ("nop"::); __asm__ volatile ("nop"::);
|
||||
}
|
||||
regs->data = (unsigned int) ch;
|
||||
|
||||
if ((ch == '\n') && do_cr_on_newline) {
|
||||
ch = '\r';
|
||||
regs->data = (unsigned int) '\r';
|
||||
do_cr_on_newline = 0;
|
||||
goto send;
|
||||
}
|
||||
regs->data = (unsigned int) ch;
|
||||
|
||||
/* Wait until the character has been sent? */
|
||||
if (wait_sent) {
|
||||
|
||||
Reference in New Issue
Block a user