/* Selects the specified I2C fast mode duty cycle.  */
void I2C_ConfigFastModeDutyCycle(I2C_Module *I2Cx, uint16_t FmDutyCycle)
/* Selects the specified I2C fast mode duty cycle.  */
void I2C_ConfigFastModeDutyCycle(I2C_Module *I2Cx, uint16_t FmDutyCycle)
{
    assert_param(IS_I2C_PERIPH(I2Cx));
    assert_param(IS_I2C_FM_DUTY_CYCLE(FmDutyCycle));
    if (FmDutyCycle != I2C_FMDUTYCYCLE_16_9)
    {
        I2Cx->CLKCTRL &= I2C_FMDUTYCYCLE_2;
    }
    else
    {
        I2Cx->CLKCTRL |= I2C_FMDUTYCYCLE_16_9;
    }
}