OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [libgloss/] [or32/] [uart.c] - Diff between revs 180 and 184

Show entire file | Details | Blame | View Log

Rev 180 Rev 184
Line 106... Line 106...
  unsigned char lsr;
  unsigned char lsr;
 
 
  /* Wait until we are free to transmit */
  /* Wait until we are free to transmit */
  WAIT_FOR_THRE;
  WAIT_FOR_THRE;
 
 
  /* Put the character to be trasmitted. If it is newline (line feed) add a
  /* Put the character to be transmitted and wait until it has gone. */
     carriage return,  and wait until it has gone. */
 
  UREG8 (UART_TX) = c;
  UREG8 (UART_TX) = c;
 
 
  if ('\n' == c)
 
    {
 
      WAIT_FOR_THRE;
 
      UREG8 (UART_TX) = '\r';
 
    }
 
 
 
  WAIT_FOR_XMITR;
  WAIT_FOR_XMITR;
 
 
}       /* _uart_putc () */
}       /* _uart_putc () */
 
 
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.