AnsweredAssumed Answered

Is calling EXTI_GetITStatus() sometimes unnecessary?

Question asked by MOSI on Feb 13, 2018
Latest reply on Feb 14, 2018 by Clive One

I wonder if I can delete the call to EXTI_GetITStatus() in the following example code?


The EXTI0_IRQHandler is not used for any other external interrupts. So the call to EXTI_GetITStatus() seems unnecessary?


  * @brief ISR for EXTI0 detects a rising edge.
  * This ISR is run when PE0 receives an rising edge. It will increment the counter variable.

void EXTI0_IRQHandler(void)
  if (EXTI_GetITStatus(EXTI_Line0) != RESET) // Make sure it is an External interrupt line 0 interrupt
    EXTI_ClearITPendingBit(EXTI_Line0); // Clear the pending bit