/* Configures the TIMx Output Compare 4 Fast feature.  */
void TIM_OC4FastConfig(TIM_TypeDef *TIMx, uint16_t TIM_OCFast)
/* Configures the TIMx Output Compare 4 Fast feature.  */
void TIM_OC4FastConfig(TIM_TypeDef *TIMx, uint16_t TIM_OCFast)
{
    uint16_t tmpccmr2 = 0;
    assert_param(IS_TIM_123458_PERIPH(TIMx));
    assert_param(IS_TIM_OCFAST_STATE(TIM_OCFast));
    tmpccmr2 = TIMx->CCMR2;
    tmpccmr2 &= CCMR_OC24FE_Reset;
    tmpccmr2 |= (uint16_t)(TIM_OCFast << 8);
    TIMx->CCMR2 = tmpccmr2;
}