/* Forces the TIMx output 2 waveform to active or inactive level.  */
void TIM_ForcedOC2Config(TIM_TypeDef *TIMx, uint16_t TIM_ForcedAction)
/* Forces the TIMx output 2 waveform to active or inactive level.  */
void TIM_ForcedOC2Config(TIM_TypeDef *TIMx, uint16_t TIM_ForcedAction)
{
  uint16_t tmpccmr1 = 0;
  assert_param(IS_TIM_LIST2_PERIPH(TIMx));
  assert_param(IS_TIM_FORCED_ACTION(TIM_ForcedAction));
  tmpccmr1 = TIMx->CCMR1;
  tmpccmr1 &= (uint16_t)~TIM_CCMR1_OC2M;
  tmpccmr1 |= (uint16_t)(TIM_ForcedAction << 8);
  TIMx->CCMR1 = tmpccmr1;
}