/* Returns the most recent received data by the uart peripheral.  */
u16 UART_ReceiveData(UART_TypeDef *uart)
/* Returns the most recent received data by the uart peripheral.  */
u16 UART_ReceiveData(UART_TypeDef *uart)
{
    return (u16)(uart->RDR & 0xFFU);
}