/* Sets the TIMx Capture Compare X register value.  */
void RTIM_CCRxSet(RTIM_TypeDef *TIMx, u32 Compare, u16 TIM_Channel)
/* Sets the TIMx Capture Compare X register value.  */
void RTIM_CCRxSet(RTIM_TypeDef *TIMx, u32 Compare, u16 TIM_Channel)
{
	u32 PulseWidth = 0;
	u32 tmpccmr = 0;
	assert_param(IS_TIM_PWM_TIM(TIMx));
	assert_param(IS_TIM_CHANNEL(TIM_Channel));
	assert_param(IS_TIM_CC_PULSEWIDTH(Compare));
	PulseWidth = Compare;
	tmpccmr = TIMx->CCMRx[TIM_Channel];
	tmpccmr &= ~TIM_CCMode_CCR;
	tmpccmr |= (u32)PulseWidth;
	TIMx->CCMRx[TIM_Channel] = tmpccmr;
}