(POLARITY) (((POLARITY) == TIM_ICPolarity_Rising) || \                                             ((POLARITY) == TIM_ICPolarity_Falling)|| \                                             ((POLARITY) == TIM_ICPolarity_