/* Clears or safeguards the OCREF2 signal on an external event.  */
void TIM_ClearOC2Ref(TIM_TypeDef *tim, TIMOCCE_Typedef clear)
/* Clears or safeguards the OCREF2 signal on an external event.  */
void TIM_ClearOC2Ref(TIM_TypeDef *tim, TIMOCCE_Typedef clear)
{
    MODIFY_REG(tim->CCMR1, TIM_CCMR1_OC2CEN, clear << 8);
}