/* Poll TX status to make a non-blocking write call blocking. */
void usr_uart_poll_tx(struct uart_desc *desc)
/* Poll TX status to make a non-blocking write call blocking. */
void usr_uart_poll_tx(struct uart_desc *desc)
{
	bool tx_complete;
	do {
		adi_uart_IsTxComplete((ADI_UART_HANDLE const)h_uart_device,
				      &tx_complete);
	} while(!tx_complete);
}