/* Enables or disables the TIMx's Hall sensor interface.  */
void TIM_SelectHallSensor(TIM_Module *TIMx, FunctionalState Cmd)
/* Enables or disables the TIMx's Hall sensor interface.  */
void TIM_SelectHallSensor(TIM_Module *TIMx, FunctionalState Cmd)
{
    assert_param(IsTimList6Module(TIMx));
    assert_param(IS_FUNCTIONAL_STATE(Cmd));
    if (Cmd != DISABLE)
    {
        TIMx->CTRL2 |= TIM_CTRL2_TI1SEL;
    }
    else
    {
        TIMx->CTRL2 &= (uint32_t) ~((uint32_t)TIM_CTRL2_TI1SEL);
    }
}