Changeset b4cebd05 in rtems


Ignore:
Timestamp:
Oct 7, 2014, 9:35:46 AM (6 years ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
4.11, master
Children:
44bbee09
Parents:
a387e944
git-author:
Daniel Hellstrom <daniel@…> (10/07/14 09:35:46)
git-committer:
Daniel Hellstrom <daniel@…> (10/09/14 11:19:41)
Message:

LEON: console print \r\n instead of \n\r

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/shared/uart/apbuart_termios.c

    ra387e944 rb4cebd05  
    263263    __asm__ volatile ("nop"::); __asm__ volatile ("nop"::);
    264264  }
     265
     266  if ((ch == '\n') && do_cr_on_newline) {
     267    regs->data = (unsigned int) '\r';
     268    do_cr_on_newline = 0;
     269    goto send;
     270  }
    265271  regs->data = (unsigned int) ch;
    266 
    267   if ((ch == '\n') && do_cr_on_newline) {
    268     ch = '\r';
    269     goto send;
    270   }
    271272
    272273  /* Wait until the character has been sent? */
Note: See TracChangeset for help on using the changeset viewer.