/* Write two datas element to the SPI interface.  */
void SPIBurstDataWrite(unsigned long ulBase, unsigned long *pulData)
/* Write two datas element to the SPI interface.  */
void SPIBurstDataWrite(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))
    {
    }
    xHWREG(ulBase + SPI_TX0) = pulData[0];
    xHWREG(ulBase + SPI_TX1) = pulData[1];
    xHWREG(ulBase + SPI_CNTRL) |= SPI_CNTRL_GO_BUSY;
}