/* Deinitializes the I2Cx peripheral registers to their default reset values.  */
void I2C_DeInit(I2C_Module *I2Cx)
/* Deinitializes the I2Cx peripheral registers to their default reset values.  */
void I2C_DeInit(I2C_Module *I2Cx)
{
    assert_param(IS_I2C_PERIPH(I2Cx));
    if (I2Cx == I2C1)
    {
        RCC_EnableAPB1PeriphReset(RCC_APB1_PERIPH_I2C1, ENABLE);
        RCC_EnableAPB1PeriphReset(RCC_APB1_PERIPH_I2C1, DISABLE);
    }
    else
    {
        RCC_EnableAPB1PeriphReset(RCC_APB1_PERIPH_I2C2, ENABLE);
        RCC_EnableAPB1PeriphReset(RCC_APB1_PERIPH_I2C2, DISABLE);
    }
}