/* Enables or disables the TIMx peripheral Preload register on CCR3.  */
void TIM_OC3PreloadConfig(TIM_TypeDef *TIMx, uint16_t TIM_OCPreload)
/* Enables or disables the TIMx peripheral Preload register on CCR3.  */
void TIM_OC3PreloadConfig(TIM_TypeDef *TIMx, uint16_t TIM_OCPreload)
{
  uint32_t tmpccmr2 = 0;
  assert_param(IS_TIM_LIST3_PERIPH(TIMx));
  assert_param(IS_TIM_OCPRELOAD_STATE(TIM_OCPreload));
  tmpccmr2 = TIMx->CCMR2;
  tmpccmr2 &= (uint32_t)(~TIM_CCMR2_OC3PE);
  tmpccmr2 |= TIM_OCPreload;
  TIMx->CCMR2 = tmpccmr2;
}