/* Wait for and read a character in a blocking call. */
int32_t usr_uart_read_char(struct uart_desc *desc, uint8_t *data)
/* Wait for and read a character in a blocking call. */
int32_t usr_uart_read_char(struct uart_desc *desc, uint8_t *data)
{
	const uint32_t buf_size = 1;
	uint32_t error;
	return adi_uart_Read((ADI_UART_HANDLE const)h_uart_device, data, buf_size,
			     DMA_NOT_USE, &error);
}