/* Clears or safeguards the OCREF1 signal on an external event.  */
void TIM_ClrOc1Ref(TIM_Module *TIMx, uint16_t TIM_OCClear)
/* Clears or safeguards the OCREF1 signal on an external event.  */
void TIM_ClrOc1Ref(TIM_Module *TIMx, uint16_t TIM_OCClear)
{
    uint16_t tmpccmr1 = 0;
    assert_param(IsTimList3Module(TIMx));
    assert_param(IsTimOcClrState(TIM_OCClear));
    tmpccmr1 = TIMx->CCMOD1;
    tmpccmr1 &= (uint16_t) ~((uint16_t)TIM_CCMOD1_OC1CEN);
    tmpccmr1 |= TIM_OCClear;
    TIMx->CCMOD1 = tmpccmr1;
}