/* This function replaces the original UARTCharNonBlockingGet() API and performs the same actions. A macro is provided in  */
long UARTCharGetNonBlocking(unsigned long ulBase)
/* This function replaces the original UARTCharNonBlockingGet() API and performs the same actions. A macro is provided in  */
long UARTCharGetNonBlocking(unsigned long ulBase)
{
    ASSERT(UARTBaseValid(ulBase));
    if(!(HWREG(ulBase + UART_O_FR) & UART_FR_RXFE))
    {
        return(HWREG(ulBase + UART_O_DR));
    }
    else
    {
        return(-1);
    }
}