/* Gets a data element from the SPI interface.  */
void SPIDataRead(unsigned long ulBase, unsigned long *pulRData, unsigned long ulLen)
/* Gets a data element from the SPI interface.  */
void SPIDataRead(unsigned long ulBase, unsigned long *pulRData, unsigned long ulLen)
{
    unsigned long i;
    xASSERT((ulBase == SPI0_BASE) || (ulBase == SPI1_BASE));
    xASSERT(pulRData);
    for(i = 0; i < ulLen; i++)
    {
        pulRData[i] = xSPISingleDataReadWrite(ulBase, 0xFFFF);
    }
}