URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 355 |
Rev 361 |
Line 254... |
Line 254... |
setreg (UART_THR, *s); /* send character */
|
setreg (UART_THR, *s); /* send character */
|
NO_ERROR();
|
NO_ERROR();
|
s++;
|
s++;
|
}
|
}
|
ASSERT (!(getreg (UART_LSR) & LSR_DR));
|
ASSERT (!(getreg (UART_LSR) & LSR_DR));
|
setreg (UART_THR, '*');
|
/* this should break the * char, so it should not be received */
|
/* this should break the current char, so no * should be received */
|
|
setreg (UART_LCR, LCR_BREAK);
|
setreg (UART_LCR, LCR_BREAK);
|
|
setreg (UART_THR, '*');
|
/* uart should hold line long enough even if we drop it immediately */
|
/* uart should hold line long enough even if we drop it immediately */
|
setreg (UART_LCR, 0);
|
setreg (UART_LCR, 0);
|
NO_ERROR();
|
NO_ERROR();
|
|
|
/* Receives and compares the string */
|
/* Receives and compares the string */
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.