/* Enables or disables the specified I2C peripheral, this is one bit register.  */
void I2C_Cmd(I2C_TypeDef *I2Cx, u8 NewState)
/* Enables or disables the specified I2C peripheral, this is one bit register.  */
void I2C_Cmd(I2C_TypeDef *I2Cx, u8 NewState)
{
	assert_param(IS_I2C_ALL_PERIPH(I2Cx));
	if (NewState != DISABLE)
	{
		I2Cx->IC_ENABLE |= BIT_CTRL_IC_ENABLE;
	}
	else
	{
		I2Cx->IC_ENABLE &= ~BIT_CTRL_IC_ENABLE;
	}
}