Skip to main content
Explorer
June 17, 2024
Question

Disable interrupt for PB8

  • June 17, 2024
  • 0 replies
  • 686 views

Hi all,

I'm working with STM32F4 disc board, I'm using PB8 and PB9 as interrupt input, those pin shared same irq handler

 

 

EXTI9_5_IRQHandler

 

 

I would like to know if it is possible to only deactivate the interrupt on PB8 before STOP mode but leave the interrupt on PB9, here is what I've tried but it's not working

 

 

 __HAL_GPIO_EXTI_CLEAR_IT(GPIO_PIN_8);
 EXTI->IMR &= ~EXTI_IMR_MR8;
go to stop mode

 

 

 

I need to do this because I wake up my board via PB9 but if an interrupt occurs on PB8 the board also wakes up...

    This topic has been closed for replies.