FreeBSD/sys/boot/arm/at91/libat91/putchar.c
/*
 * void putchar(int ch)
 * Writes a character to the DBGU port.  It assumes that DBGU has
 * already been initialized.
 */
void putchar(int ch)
Writes a character to the DBGU port.  It assumes that DBGU has
already been initialized.
void putchar ( int ch ) Writes a character to the DBGU port . It assumes that DBGU has already been initialized .
void
putchar(int ch)
{
	AT91PS_USART pUSART = (AT91PS_USART)AT91C_BASE_DBGU;
	while (!(pUSART->US_CSR & AT91C_US_TXRDY))
		continue;
	pUSART->US_THR = (ch & 0xFF);
}
void putchar ( int ch ) { AT91PS_USART pUSART = ( AT91PS_USART ) AT91C_BASE_DBGU ; while ( ! ( pUSART -> US_CSR & AT91C_US_TXRDY ) ) continue ; pUSART -> US_THR = ( ch & 0xFF ) ; }
void putchar(int ch)
 Writes a character to the DBGU port.
void putchar ( int ch ) Writes a character to the DBGU port .