/* Gets a data element from the SPI receive FIFO. 
This function replaces the original SPIDataNonBlockingGet() API and performs the same actions. A macro is provided in  */
long SPIDataGetNonBlocking(unsigned long ulBase, unsigned long *pulData)
/* Gets a data element from the SPI receive FIFO. 
This function replaces the original SPIDataNonBlockingGet() API and performs the same actions. A macro is provided in  */
long SPIDataGetNonBlocking(unsigned long ulBase, unsigned long *pulData)
{
    xASSERT((ulBase == SPI0_BASE) || (ulBase == SPI1_BASE));
    if(xHWREGB(ulBase + SPI_S) & SPI_S_SPRF)
    {
        *pulData = xHWREGB(ulBase + SPI_D);
        return(1);
    }
    else
    {
        return(0);
    }
}