/* Set the clock rate of the specified I2C port. 
The  */
void I2CSlaveInit(unsigned long ulBase, unsigned char ucSlaveAddr, unsigned long ulGeneralCall)
/* Set the clock rate of the specified I2C port. 
The  */
void I2CSlaveInit(unsigned long ulBase, unsigned char ucSlaveAddr, unsigned long ulGeneralCall)
{
    xASSERT((ulBase == I2C0_BASE));
    if (ulBase == I2C0_BASE)
    {
        SysCtlPeripheralReset(SYSCTL_PERIPH_I2C0);
    }
    xHWREG(ulBase + I2C_O_CON) = I2C_CON_ENS1;
    xHWREG(ulBase + I2C_O_CON) = 0;
    xHWREG(ulBase + I2C_O_ADDR0) = (ucSlaveAddr << 1) | ulGeneralCall;
    xHWREG(ulBase + I2C_O_CON) = I2C_CON_ENS1;
    xHWREG(ulBase + I2C_O_CON) |= I2C_CON_AA;
}