URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
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 () */
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.