How to enable GPIO EXTIx interrupts?
Hi,
I need to enable interrupts for pins PJ0, PJ3, PJ4 and PJ5. Why these pins? Because they are connected to the ARDUINO connector (CN5 and CN6) of the STM32H7474I-DISCO board and they all seem to be all free. I have the initialization code (Hopefully right) but I have no glue how enable and handle the interrupts. Can anybody help?
GPIO_InitTypeDef GPIO_InitStruct = {0};
__HAL_RCC_GPIOJ_CLK_ENABLE();
/*Configure GPIO pins : PJ0 PJ5 PJ3 PJ4 */
GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_5|GPIO_PIN_3|GPIO_PIN_4;
GPIO_InitStruct.Mode = GPIO_MODE_IT_RISING;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(GPIOJ, &GPIO_InitStruct);Thanks,
Louis
