Example #1
0
/**
 * \brief Write a single byte to the UART.
 *
 * Blocks until there is space in the FIFO.
 */
void a10_uart_tx_blocking(void *uart_base, u8 data)
{
	struct a10_uart *uart = uart_base;

	while (tx_fifo_full(uart)) ;

	return write32(data, &uart->thr);
}
Example #2
0
/**
 * \brief Write a single byte to the UART.
 *
 * Blocks until there is space in the FIFO.
 */
static void a10_uart_tx_blocking(struct a10_uart *uart, u8 data)
{
	while (tx_fifo_full(uart));

	return write32(&uart->thr, data);
}