/* Forces the tim output 2 waveform to active or inactive level.  */
void TIM_ForcedOC2Config(TIM_TypeDef *tim, TIMOCMODE_Typedef forced_action)
/* Forces the tim output 2 waveform to active or inactive level.  */
void TIM_ForcedOC2Config(TIM_TypeDef *tim, TIMOCMODE_Typedef forced_action)
{
    MODIFY_REG(tim->CCMR1, TIM_CCMR1_OC2M, forced_action << 8);
}