AnsweredAssumed Answered

How to know if interrupt was triggered by Falling or Rising edge?

Question asked by baseline on May 2, 2012
Latest reply on Sep 11, 2014 by hwang.chiyeong

Hi,


If while configuring the EXTI line I use:

EXTI_InitStructure.EXTI_Trigger = EXTI_Trigger_Rising_Falling


how can I know in my interrupt if a rising of falling triggered it?


void EXTI1_IRQHandler(void)
{
  if ( RisingEdge )
  {...}
  else if ( FallingEdge )
  { ....
   }
}


How can I do anything similar to this?

Thank you for your time

Outcomes