/* Enables or disables the TIMx's Hall sensor interface.  */
void TIM_SelectHallSensor(TIM_TypeDef *TIMx, FunctionalState NewState)
/* Enables or disables the TIMx's Hall sensor interface.  */
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);
  }
}