vscode_embedded/vscode_stm32f1_test/hal/STM32F10x_StdPeriph_Driver/src/stm32f10x_tim.c
/**
  * @brief  Enables or disables TIMx peripheral Preload register on ARR.
  * @param  TIMx: where x can be  1 to 17 to select the TIM peripheral.
  * @param  NewState: new state of the TIMx peripheral Preload register
  *   This parameter can be: ENABLE or DISABLE.
  * @retval None
  */
@brief  Enables or disables TIMx peripheral Preload register on ARR.
@param  TIMx: where x can be  1 to 17 to select the TIM peripheral.
@param  NewState: new state of the TIMx peripheral Preload register
This parameter can be: ENABLE or DISABLE.
@retval None
@brief Enables or disables TIMx peripheral Preload register on ARR . @param TIMx : where x can be 1 to 17 to select the TIM peripheral . @param NewState : new state of the TIMx peripheral Preload register This parameter can be : ENABLE or DISABLE . @retval None
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)~((uint16_t)TIM_CR1_ARPE);
  }
}
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 ) ~ ( ( uint16_t ) TIM_CR1_ARPE ) ; } }
@brief  Enables or disables TIMx peripheral Preload register on ARR.
@brief Enables or disables TIMx peripheral Preload register on ARR .
/* Check the parameters */ /* Set the ARR Preload Bit */ /* Reset the ARR Preload Bit */