mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Make early printf output nicer by inserting a carriage return before
any linefeeds that are output.
This commit is contained in:
parent
a500a7ce91
commit
1fb293548d
1 changed files with 4 additions and 0 deletions
|
|
@ -288,6 +288,10 @@ volatile uint32_t *at91_dbgu = (volatile uint32_t *)(AT91_BASE + AT91_DBGU0);
|
|||
void
|
||||
eputc(int c)
|
||||
{
|
||||
|
||||
if (c == '\n')
|
||||
eputc('\r');
|
||||
|
||||
while (!(at91_dbgu[USART_CSR / 4] & USART_CSR_TXRDY))
|
||||
continue;
|
||||
at91_dbgu[USART_THR / 4] = c;
|
||||
|
|
|
|||
Loading…
Reference in a new issue