/* Enables or disables the TIMx peripheral Preload register on CCR6.  */
void TIM_OC6PreloadConfig(TIM_TypeDef *TIMx, uint16_t TIM_OCPreload)
/* Enables or disables the TIMx peripheral Preload register on CCR6.  */
void TIM_OC6PreloadConfig(TIM_TypeDef *TIMx, uint16_t TIM_OCPreload)
{
  uint32_t tmpccmr3 = 0;
  assert_param(IS_TIM_LIST4_PERIPH(TIMx));
  assert_param(IS_TIM_OCPRELOAD_STATE(TIM_OCPreload));
  tmpccmr3 = TIMx->CCMR3;
  tmpccmr3 &= (uint32_t)(~TIM_CCMR3_OC6PE);
  tmpccmr3 |= (uint32_t)(TIM_OCPreload << 8);
  TIMx->CCMR3 = tmpccmr3;
}