/* Clears or safeguards the OCREF3 signal on an external event.  */
void TIM_ClearOC3Ref(TIM_TypeDef *TIMx, uint16_t TIM_OCClear)
/* Clears or safeguards the OCREF3 signal on an external event.  */
void TIM_ClearOC3Ref(TIM_TypeDef *TIMx, uint16_t TIM_OCClear)
{
    uint16_t tmpccmr2 = 0;
    assert_param(IS_TIM_123458_PERIPH(TIMx));
    assert_param(IS_TIM_OCCLEAR_STATE(TIM_OCClear));
    tmpccmr2 = TIMx->CCMR2;
    tmpccmr2 &= CCMR_OC13CE_Reset;
    tmpccmr2 |= TIM_OCClear;
    TIMx->CCMR2 = tmpccmr2;
}