/* Indicates whether or not the I2C bus is busy. */
xtBoolean I2CBusBusy(unsigned long ulBase)
/* Indicates whether or not the I2C bus is busy. */
xtBoolean I2CBusBusy(unsigned long ulBase)
{
    xASSERT((ulBase == I2C0_BASE) || (ulBase == I2C1_BASE));
    if(xHWREG(ulBase + I2C_CSR) & I2C_CSR_BUSBUSY)
    {
        return(xtrue);
    }
    else
    {
        return(xfalse);
    }
}