forked from Imagelibrary/rtems
LEON3: console, lower bus utilization waiting for UART TX ready
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
This commit is contained in:
committed by
Gedare Bloom
parent
5c51ba1333
commit
6845f8005c
@@ -13,8 +13,6 @@
|
|||||||
* The license and distribution terms for this file may be
|
* The license and distribution terms for this file may be
|
||||||
* found in the file LICENSE in this distribution or at
|
* found in the file LICENSE in this distribution or at
|
||||||
* http://www.rtems.com/license/LICENSE.
|
* http://www.rtems.com/license/LICENSE.
|
||||||
*
|
|
||||||
* $Id$
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <bsp.h>
|
#include <bsp.h>
|
||||||
@@ -94,7 +92,13 @@ void apbuart_outbyte_polled(
|
|||||||
unsigned char ch
|
unsigned char ch
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
while ( (regs->status & LEON_REG_UART_STATUS_THE) == 0 );
|
while ( (regs->status & LEON_REG_UART_STATUS_THE) == 0 ) {
|
||||||
|
/* Lower bus utilization while waiting for UART */
|
||||||
|
asm volatile ("nop"::); asm volatile ("nop"::);
|
||||||
|
asm volatile ("nop"::); asm volatile ("nop"::);
|
||||||
|
asm volatile ("nop"::); asm volatile ("nop"::);
|
||||||
|
asm volatile ("nop"::); asm volatile ("nop"::);
|
||||||
|
}
|
||||||
regs->data = (unsigned int) ch;
|
regs->data = (unsigned int) ch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user