AnsweredAssumed Answered

the doubt in M4-Discovery input capture library

Question asked by peihua.zhang on Apr 19, 2012
Latest reply on Feb 13, 2013 by Amor.Ben_amor
like this: I don't know why selecting opposite polarity !
     /* Select the Opposite Input Polarity */
  if (TIM_ICInitStruct->TIM_ICPolarity == TIM_ICPolarity_Rising)
  {
    icoppositepolarity = TIM_ICPolarity_Falling;
  }
  else
  {
    icoppositepolarity = TIM_ICPolarity_Rising;
  }


wait for help .
thanks in advance!

Outcomes