/* Clears or safeguards the OCREF5 signal on an external event.  */
void TIM_ClrOc5Ref(TIM_Module *TIMx, uint16_t TIM_OCClear)
/* Clears or safeguards the OCREF5 signal on an external event.  */
void TIM_ClrOc5Ref(TIM_Module *TIMx, uint16_t TIM_OCClear)
{
    uint16_t tmpccmr3 = 0;
    assert_param(IsTimList1Module(TIMx));
    assert_param(IsTimOcClrState(TIM_OCClear));
    tmpccmr3 = TIMx->CCMOD3;
    tmpccmr3 &= (uint16_t) ~((uint16_t)TIM_CCMOD3_OC5CEN);
    tmpccmr3 |= (uint16_t)(TIM_OCClear);
    TIMx->CCMOD3 = tmpccmr3;
}