/* Gets the type of parity currently being used. */
uint32_t UARTParityModeGet(uint32_t ui32Base)
/* Gets the type of parity currently being used. */
uint32_t UARTParityModeGet(uint32_t ui32Base)
{
    ASSERT(_UARTBaseValid(ui32Base));
    return (HWREG(ui32Base + UART_O_LCRH) &
            (UART_LCRH_SPS | UART_LCRH_EPS | UART_LCRH_PEN));
}