/* Indicates whether or not the I2C Master is busy. */
tBoolean I2CMasterBusy(unsigned long ulBase)
/* Indicates whether or not the I2C Master is busy. */
tBoolean I2CMasterBusy(unsigned long ulBase)
{
    ASSERT((ulBase == I2C0_MASTER_BASE) || (ulBase == I2C1_MASTER_BASE));
    if(HWREG(ulBase + I2C_O_MCS) & I2C_MCS_BUSY)
    {
        return(true);
    }
    else
    {
        return(false);
    }
}