/* Read two words of data from SPI Rx registers.  */
void SPIBurstDataRead(unsigned long ulBase, unsigned long *pulData)
/* Read two words of data from SPI Rx registers.  */
void SPIBurstDataRead(unsigned long ulBase, unsigned long *pulData)
{
    xASSERT((ulBase == SPI0_BASE) || (ulBase == SPI1_BASE)||
            (ulBase == SPI2_BASE)||(ulBase == SPI3_BASE) );
    while((xHWREG(ulBase + SPI_CNTRL) & SPI_CNTRL_GO_BUSY))
    {
    }
    pulData[0] = xHWREG(ulBase + SPI_RX0);
    pulData[1] = xHWREG(ulBase + SPI_RX1);
    xHWREG(ulBase + SPI_CNTRL) |= SPI_CNTRL_GO_BUSY;
}