/* Enables or disables the specified I2C software reset.  */
void I2C_SoftwareResetCmd(I2C_TypeDef *I2Cx)
/* Enables or disables the specified I2C software reset.  */
void I2C_SoftwareResetCmd(I2C_TypeDef *I2Cx)
{
    assert_param(IS_I2C_ALL_PERIPH(I2Cx));
    I2Cx->CR1 &= (uint32_t)~((uint32_t)I2C_CR1_PE);
    *(__IO uint32_t *)(uint32_t)I2Cx;
    I2Cx->CR1 |= I2C_CR1_PE;
}