/* Enables or disables TIMx peripheral Preload register on ARR.  */
void TIM_ARRPreloadConfig(TIM_TypeDef *TIMx, FunctionalState NewState)
/* Enables or disables TIMx peripheral Preload register on ARR.  */
void TIM_ARRPreloadConfig(TIM_TypeDef *TIMx, FunctionalState NewState)
{
  assert_param(IS_TIM_ALL_PERIPH(TIMx));
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  if (NewState != DISABLE)
  {
    TIMx->CR1 |= TIM_CR1_ARPE;
  }
  else
  {
    TIMx->CR1 &= (uint16_t)~TIM_CR1_ARPE;
  }
}