LEON3: console, lower bus utilization waiting for UART TX ready

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
This commit is contained in:
Daniel Hellstrom
2012-04-19 15:21:20 +02:00
committed by Gedare Bloom
parent 5c51ba1333
commit 6845f8005c

View File

@@ -13,8 +13,6 @@
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
*
* $Id$
*/
#include <bsp.h>
@@ -94,7 +92,13 @@ void apbuart_outbyte_polled(
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;
}