/* Write to UART Transmit Holding Register Before writing user should check if tx is ready (or empty).  */
uint32_t uart_write(Uart *p_uart, const uint8_t uc_data)
/* Write to UART Transmit Holding Register Before writing user should check if tx is ready (or empty).  */
uint32_t uart_write(Uart *p_uart, const uint8_t uc_data)
{
	if (!(p_uart->UART_SR & UART_SR_TXRDY))
		return 1;
	p_uart->UART_THR = uc_data;
	return 0;
}