cancel
Showing results for 
Search instead for 
Did you mean: 

a problem about interrupt enable after the interrupt happened

Yang Yang
Associate II

Hello, ST expert

E.g. GPIO PD4 functions as falling edge interrupt pin on STM32F407. Before the falling edge this interrupt is disabled by HAL_NVIC_DisableIRQ(EXTI4_IRQn).  What happened if HAL_NVIC_EnableIRQ(EXTI4_IRQn) is executed after the falling edge? The interrupt will be ignored or be captured immediately after HAL_NVIC_EnableIRQ?

 

Best Regards

Yang

1 ACCEPTED SOLUTION

Accepted Solutions
Pavel A.
Evangelist III

After HAL_NVIC_EnableIRQ the interrupt handler will be called immediately.

 

View solution in original post

1 REPLY 1
Pavel A.
Evangelist III

After HAL_NVIC_EnableIRQ the interrupt handler will be called immediately.