cancel
Showing results for 
Search instead for 
Did you mean: 

Disable interrupt for PB8

SBaro.11
Associate III

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...

0 REPLIES 0