2024-06-17 06:17 AM - edited 2024-06-17 06:18 AM
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...