/* Clears or safeguards the OCREF3 signal on an external event.  */
void TIM_ClrOc3Ref(TIM_Module *TIMx, uint16_t TIM_OCClear)
/* Clears or safeguards the OCREF3 signal on an external event.  */
void TIM_ClrOc3Ref(TIM_Module *TIMx, uint16_t TIM_OCClear)
{
    uint16_t tmpccmr2 = 0;
    assert_param(IsTimList3Module(TIMx));
    assert_param(IsTimOcClrState(TIM_OCClear));
    tmpccmr2 = TIMx->CCMOD2;
    tmpccmr2 &= (uint16_t) ~((uint16_t)TIM_CCMOD2_OC3CEN);
    tmpccmr2 |= TIM_OCClear;
    TIMx->CCMOD2 = tmpccmr2;
}