/* Read data from Rx registers. 
This function replaces the original SSIDataNonBlockingGet() API and performs the same actions. A macro is provided in  */
unsigned long SPIRxRegisterGet(unsigned long ulBase, unsigned long *pulData, unsigned long ulCount)
/* Read data from Rx registers. 
This function replaces the original SSIDataNonBlockingGet() API and performs the same actions. A macro is provided in  */
unsigned long SPIRxRegisterGet(unsigned long ulBase, unsigned long *pulData, unsigned long ulCount)
{
    unsigned long i;
    xASSERT((ulBase == SPI0_BASE) || (ulBase == SPI1_BASE));
    xASSERT(ulCount < 2);
    for (i=0; i<ulCount; i++)
    {
        pulData[i] = xHWREG(ulBase + SPI_RX0 + 4*i);
    }
    return ulCount;
}