libraries/mbed/targets/cmsis/TARGET_STM/TARGET_NUCLEO_F103RB/stm32f10x_tim.c
void TIM_SelectCOM(TIM_TypeDef* TIMx, FunctionalState NewState)
{
  /* Check the parameters */
  assert_param(IS_TIM_LIST2_PERIPH(TIMx));
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  if (NewState != DISABLE)
  {
    /* Set the COM Bit */
    TIMx->CR2 |= TIM_CR2_CCUS;
  }
  else
  {
    /* Reset the COM Bit */
    TIMx->CR2 &= (uint16_t)~((uint16_t)TIM_CR2_CCUS);
  }
}
/**
  * @brief  Selects the TIM peripheral Commutation event.
  * @param  TIMx: where x can be  1, 8, 15, 16 or 17 to select the TIMx peripheral
  * @param  NewState: new state of the Commutation event.
  *   This parameter can be: ENABLE or DISABLE.
  * @retval None
  */
@brief  Selects the TIM peripheral Commutation event.
@param  TIMx: where x can be  1, 8, 15, 16 or 17 to select the TIMx peripheral
@param  NewState: new state of the Commutation event.
This parameter can be: ENABLE or DISABLE.
@retval None
@brief Selects the TIM peripheral Commutation event . @param TIMx : where x can be 1 8 15 16 or 17 to select the TIMx peripheral @param NewState : new state of the Commutation event . This parameter can be : ENABLE or DISABLE . @retval None
void TIM_SelectCOM(TIM_TypeDef* TIMx, FunctionalState NewState)
{
  assert_param(IS_TIM_LIST2_PERIPH(TIMx));
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  if (NewState != DISABLE)
  {
    TIMx->CR2 |= TIM_CR2_CCUS;
  }
  else
  {
    TIMx->CR2 &= (uint16_t)~((uint16_t)TIM_CR2_CCUS);
  }
}
void TIM_SelectCOM ( TIM_TypeDef * TIMx , FunctionalState NewState ) { assert_param ( IS_TIM_LIST2_PERIPH ( TIMx ) ) ; assert_param ( IS_FUNCTIONAL_STATE ( NewState ) ) ; if ( NewState != DISABLE ) { TIMx -> CR2 |= TIM_CR2_CCUS ; } else { TIMx -> CR2 &= ( uint16_t ) ~ ( ( uint16_t ) TIM_CR2_CCUS ) ; } }
@brief  Selects the TIM peripheral Commutation event.
@brief Selects the TIM peripheral Commutation event .
/* Check the parameters */ /* Set the COM Bit */ /* Reset the COM Bit */