/* This Function return if data are received or not received.  */
uart_rx_data_ready_t uart_rx_data_ready(uart_num_t uart_num)
/* This Function return if data are received or not received.  */
uart_rx_data_ready_t uart_rx_data_ready(uart_num_t uart_num)
{
	uint32_t uart_port;
	uint8_t uart_status;
	uart_rx_data_ready_t data_ready;
	uart_port = uart_num;
	uart_status = UART_LSR(uart_port) & 0xFF;
	if ((uart_status & UART_LSR_ERROR_MASK) == 0) {
		if ((uart_status & UART_LSR_RDR) == 0) {
			data_ready = UART_RX_NO_DATA;
		} else {
			data_ready = UART_RX_DATA_READY;
		}
	} else {
		data_ready = UART_RX_DATA_ERROR;
	}
	return data_ready;
}