/* Set the clock rate of the specified I2C port. 
The  */
void I2CSlaveInit(unsigned long ulBase, unsigned long ulAddrConfig, unsigned char ucSlaveAddr, unsigned long ulGeneralCall)
/* Set the clock rate of the specified I2C port. 
The  */
void I2CSlaveInit(unsigned long ulBase, unsigned long ulAddrConfig, unsigned char ucSlaveAddr, unsigned long ulGeneralCall)
{
    xASSERT((ulBase == I2C1_BASE) || (ulBase == I2C2_BASE));
    xASSERT(!(ucSlaveAddr & 0x80));
    I2CEnable(ulBase);
    xHWREG(ulBase + I2C_OAR1) = ulAddrConfig | (ucSlaveAddr << 1);
    xHWREG(ulBase + I2C_CR1) &= ~I2C_CR1_ENGC;
    xHWREG(ulBase + I2C_CR1) |= I2C_CR1_ACK;
    xHWREG(ulBase + I2C_CR1) |= ulGeneralCall;
}