/* Waits to send data over the specified data line */
void I2SDataPut(unsigned long ulBase, unsigned long ulDataLine, unsigned long ulData)
/* Waits to send data over the specified data line */
void I2SDataPut(unsigned long ulBase, unsigned long ulDataLine, unsigned long ulData)
{
  ulDataLine = (ulDataLine-1) << 2;
  while(!( HWREG(ulBase + MCASP_O_TXSTAT) & MCASP_TXSTAT_XDATA))
  {
  }
  HWREG(ulBase + MCASP_O_TXBUF0 + ulDataLine) = ulData;
}