vscode_embedded/vscode_stm32f1_test/hal/STM32F10x_StdPeriph_Driver/src/stm32f10x_tim.c
/**
  * @brief  Enables or disables the TIM peripheral Main Outputs.
  * @param  TIMx: where x can be 1, 8, 15, 16 or 17 to select the TIMx peripheral.
  * @param  NewState: new state of the TIM peripheral Main Outputs.
  *   This parameter can be: ENABLE or DISABLE.
  * @retval None
  */
@brief  Enables or disables the TIM peripheral Main Outputs.
@param  TIMx: where x can be 1, 8, 15, 16 or 17 to select the TIMx peripheral.
@param  NewState: new state of the TIM peripheral Main Outputs.
This parameter can be: ENABLE or DISABLE.
@retval None
@brief Enables or disables the TIM peripheral Main Outputs . @param TIMx : where x can be 1 8 15 16 or 17 to select the TIMx peripheral . @param NewState : new state of the TIM peripheral Main Outputs . This parameter can be : ENABLE or DISABLE . @retval None
void TIM_CtrlPWMOutputs(TIM_TypeDef* TIMx, FunctionalState NewState)
{
  assert_param(IS_TIM_LIST2_PERIPH(TIMx));
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  if (NewState != DISABLE)
  {
    TIMx->BDTR |= TIM_BDTR_MOE;
  }
  else
  {
    TIMx->BDTR &= (uint16_t)(~((uint16_t)TIM_BDTR_MOE));
  }  
}
void TIM_CtrlPWMOutputs ( TIM_TypeDef * TIMx , FunctionalState NewState ) { assert_param ( IS_TIM_LIST2_PERIPH ( TIMx ) ) ; assert_param ( IS_FUNCTIONAL_STATE ( NewState ) ) ; if ( NewState != DISABLE ) { TIMx -> BDTR |= TIM_BDTR_MOE ; } else { TIMx -> BDTR &= ( uint16_t ) ( ~ ( ( uint16_t ) TIM_BDTR_MOE ) ) ; } }
@brief  Enables or disables the TIM peripheral Main Outputs.
@brief Enables or disables the TIM peripheral Main Outputs .
/* Check the parameters */ /* Enable the TIM Main Output */ /* Disable the TIM Main Output */