/* Gets a data element from the SPI interface. This function gets received data from the interface of the specified SPI module and places that data into the location specified by the pulData parameter.  */
void xSPIDataRead(unsigned long ulBase, unsigned long *pulRData, unsigned long ulLen)
/* Gets a data element from the SPI interface. This function gets received data from the interface of the specified SPI module and places that data into the location specified by the pulData parameter.  */
void xSPIDataRead(unsigned long ulBase, unsigned long *pulRData, unsigned long ulLen)
{
    unsigned long i = 0;
    xASSERT(ulBase == SPI0_BASE);
    xASSERT(pulData != 0);
    for(i = 0; i < ulLen; i++)
    {
        *pulRData++ = SPIDataReadWrite(ulBase, 0x00);
    }
}