/* Enables or disables the TIMx peripheral Preload register on CCR1.  */
void TIM_OC1PreloadConfig(TIM_TypeDef *TIMx, uint16_t TIM_OCPreload)
/* Enables or disables the TIMx peripheral Preload register on CCR1.  */
void TIM_OC1PreloadConfig(TIM_TypeDef *TIMx, uint16_t TIM_OCPreload)
{
  uint16_t tmpccmr1 = 0;
  assert_param(IS_TIM_LIST1_PERIPH(TIMx));
  assert_param(IS_TIM_OCPRELOAD_STATE(TIM_OCPreload));
  tmpccmr1 = TIMx->CCMR1;
  tmpccmr1 &= (uint16_t)(~TIM_CCMR1_OC1PE);
  tmpccmr1 |= TIM_OCPreload;
  TIMx->CCMR1 = tmpccmr1;
}