/* Clears or safeguards the OCREF4 signal on an external event.  */
void TIM_ClearOC4Ref(TIM_TypeDef *tim, TIMOCCE_Typedef clear)
/* Clears or safeguards the OCREF4 signal on an external event.  */
void TIM_ClearOC4Ref(TIM_TypeDef *tim, TIMOCCE_Typedef clear)
{
    MODIFY_REG(tim->CCMR2, TIM_CCMR2_OC4CEN, clear << 8);
}