/* Enables or disables the TIMx peripheral Preload register on CCRx.  */
void RTIM_OCxPreloadConfig(RTIM_TypeDef *TIMx, u32 TIM_OCProtection, u16 TIM_Channel)
/* Enables or disables the TIMx peripheral Preload register on CCRx.  */
void RTIM_OCxPreloadConfig(RTIM_TypeDef *TIMx, u32 TIM_OCProtection, u16 TIM_Channel)
{
	u32 tmpccmr = 0;
	assert_param(IS_TIM_PWM_TIM(TIMx));
	assert_param(IS_TIM_OCPRELOAD_STATE(TIM_OCProtection));
	assert_param(IS_TIM_CHANNEL(TIM_Channel));
	tmpccmr = TIMx->CCMRx[TIM_Channel];
	tmpccmr &= ~(TIM_OCER_CCxPE);
	tmpccmr |= TIM_OCProtection;
	TIMx->CCMRx[TIM_Channel] = tmpccmr;
}