/* If there is no data in the receive FIFO, then this function will wait in a polling loop until data is available. */
void I2SRxDataGet(unsigned long ulBase, unsigned long *pulData)
/* If there is no data in the receive FIFO, then this function will wait in a polling loop until data is available. */
void I2SRxDataGet(unsigned long ulBase, unsigned long *pulData)
{
    ASSERT(ulBase == I2S0_BASE);
    while(HWREG(ulBase + I2S_O_RXLEV) == 0)
    {
    }
    *pulData = HWREG(ulBase + I2S_O_RXFIFO);
}