/* Set the clock rate of the specified I2C port. 
The  */
void I2CSlaveInit(unsigned long ulBase, unsigned long ulAddrConfig, unsigned short usSlaveAddr, unsigned long ulGeneralCall)
/* Set the clock rate of the specified I2C port. 
The  */
void I2CSlaveInit(unsigned long ulBase, unsigned long ulAddrConfig, unsigned short usSlaveAddr, unsigned long ulGeneralCall)
{
    xASSERT((ulBase == I2C0_BASE));
    xASSERT(!(usSlaveAddr & 0x80));
    I2CEnable(ulBase);
    xHWREG(ulBase + I2C_ADDR) = usSlaveAddr;
    xHWREG(ulBase + I2C_CR) &= ~I2C_CR_ADRM;
    xHWREG(ulBase + I2C_CR) |= ulAddrConfig;
    xHWREG(ulBase + I2C_CR) &= ~I2C_CR_GCEN;
    xHWREG(ulBase + I2C_CR) |= I2C_CR_AA;
    xHWREG(ulBase + I2C_CR) |= ulGeneralCall;
}