libraries/mbed/targets/cmsis/TARGET_STM/TARGET_NUCLEO_F103RB/stm32f10x_tim.c
/**
  * @brief  Enables or disables the TIMx's Hall sensor interface.
  * @param  TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
  * @param  NewState: new state of the TIMx Hall sensor interface.
  *   This parameter can be: ENABLE or DISABLE.
  * @retval None
  */
@brief  Enables or disables the TIMx's Hall sensor interface.
@param  TIMx: where x can be 1, 2, 3, 4, 5 or 8 to select the TIM peripheral.
@param  NewState: new state of the TIMx Hall sensor interface.
This parameter can be: ENABLE or DISABLE.
@retval None
@brief Enables or disables the TIMx ' s Hall sensor interface . @param TIMx : where x can be 1 2 3 4 5 or 8 to select the TIM peripheral . @param NewState : new state of the TIMx Hall sensor interface . This parameter can be : ENABLE or DISABLE . @retval None
void TIM_SelectHallSensor(TIM_TypeDef* TIMx, FunctionalState NewState)
{
  assert_param(IS_TIM_LIST6_PERIPH(TIMx));
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  if (NewState != DISABLE)
  {
    TIMx->CR2 |= TIM_CR2_TI1S;
  }
  else
  {
    TIMx->CR2 &= (uint16_t)~((uint16_t)TIM_CR2_TI1S);
  }
}
void TIM_SelectHallSensor ( TIM_TypeDef * TIMx , FunctionalState NewState ) { assert_param ( IS_TIM_LIST6_PERIPH ( TIMx ) ) ; assert_param ( IS_FUNCTIONAL_STATE ( NewState ) ) ; if ( NewState != DISABLE ) { TIMx -> CR2 |= TIM_CR2_TI1S ; } else { TIMx -> CR2 &= ( uint16_t ) ~ ( ( uint16_t ) TIM_CR2_TI1S ) ; } }
@brief  Enables or disables the TIMx's Hall sensor interface.
@brief Enables or disables the TIMx ' s Hall sensor interface .
/* Check the parameters */ /* Set the TI1S Bit */ /* Reset the TI1S Bit */