/* Set the TIMx's One Pulse Mode (output one pulse PWM mode).  */
void RTIM_SetOnePulseOutputMode(RTIM_TypeDef *TIMx, u32 TIM_OPMode, u32 TrigerPolarity)
/* Set the TIMx's One Pulse Mode (output one pulse PWM mode).  */
void RTIM_SetOnePulseOutputMode(RTIM_TypeDef *TIMx, u32 TIM_OPMode, u32 TrigerPolarity)
{
	assert_param(IS_TIM_ONE_PULSE_TIM(TIMx));
	assert_param(IS_TIM_OPM_MODE(TIM_OPMode));
	assert_param(IS_TIM_OPM_ETP_MODE(TrigerPolarity));
	TIMx->CR &= (u32)~(TIM_CR_OPM | TIM_CR_ETP);
	TIMx->CR |= TIM_OPMode | TrigerPolarity;
}