/* Drives the SMBusAlert pin high or low for the specified I2C.  */
void I2C_ConfigSmbusAlert(I2C_Module *I2Cx, uint16_t I2C_SMBusAlert)
/* Drives the SMBusAlert pin high or low for the specified I2C.  */
void I2C_ConfigSmbusAlert(I2C_Module *I2Cx, uint16_t I2C_SMBusAlert)
{
    assert_param(IS_I2C_PERIPH(I2Cx));
    assert_param(IS_I2C_SMB_ALERT(I2C_SMBusAlert));
    if (I2C_SMBusAlert == I2C_SMBALERT_LOW)
    {
        I2Cx->CTRL1 |= I2C_SMBALERT_LOW;
    }
    else
    {
        I2Cx->CTRL1 &= I2C_SMBALERT_HIGH;
    }
}