/* Gets a data element from the SPI receive FIFO.  */
void SPIDataGet(unsigned long ulBase, unsigned long *pulData)
/* Gets a data element from the SPI receive FIFO.  */
void SPIDataGet(unsigned long ulBase, unsigned long *pulData)
{
    xASSERT((ulBase == SPI0_BASE) || (ulBase == SPI1_BASE));
    while(!(xHWREGB(ulBase + SPI_S) & SPI_S_SPRF))
    {
    }
    *pulData = xHWREGB(ulBase + SPI_D);
}