/* This function replaces the original UARTConfigGet() API and performs the same actions. A macro is provided in  */
void UARTConfigGetExpClk(unsigned long ulBase, unsigned long ulUARTClk, unsigned long *pulBaud, unsigned long *pulConfig)
/* This function replaces the original UARTConfigGet() API and performs the same actions. A macro is provided in  */
void UARTConfigGetExpClk(unsigned long ulBase, unsigned long ulUARTClk, unsigned long *pulBaud, unsigned long *pulConfig)
{
    unsigned long ulInt, ulFrac;
    ASSERT(UARTBaseValid(ulBase));
    ulInt = HWREG(ulBase + UART_O_IBRD);
    ulFrac = HWREG(ulBase + UART_O_FBRD);
    *pulBaud = (ulUARTClk * 4) / ((64 * ulInt) + ulFrac);
    if(HWREG(ulBase + UART_O_CTL) & UART_CTL_HSE)
    {
        *pulBaud *= 2;
    }
    *pulConfig = (HWREG(ulBase + UART_O_LCRH) &
                  (UART_LCRH_SPS | UART_LCRH_WLEN_M | UART_LCRH_STP2 |
                   UART_LCRH_EPS | UART_LCRH_PEN));
}