/* Check the status of the Rx buffer of the specified SPI port.  */
xtBoolean SPIIsRxEmpty(unsigned long ulBase)
/* Check the status of the Rx buffer of the specified SPI port.  */
xtBoolean SPIIsRxEmpty(unsigned long ulBase)
{
    xASSERT((ulBase == SPI0_BASE) || (ulBase == SPI1_BASE));
    return ((xHWREG(ulBase + SPI_SR) & SPI_SR_RXBNE)? xfalse : xtrue);
}