Question
Help to add EXTI to a port already in use as ETR input for counter/timer (PA0).
I'm struggling to find a solution to this by searching.
I have an existing system running using PA1 as an EXTI set up through Cube MX. I just need to add an exrernal interrupt to PA0
As far as I can see the following code is all I should need to add:
HAL_NVIC_SetPriority(EXTI0_IRQn, 0, 0); // IRQ Line0 for new IRQ (Port PA0)
HAL_NVIC_EnableIRQ(EXTI0_IRQn); //Enable IRQ
EXTI->RTSR |= 1; // Enable Rising IRQ Line 0
EXTI->IMR |= 1; //Unmask IRQ Line 0.My existing callback should suffice for the new IRQ but it doesn't get triggered because the HAL_GPIO_EXTI_IRQHandler() in stm32f1xx_hal_gpio.c doen't run
Could someone let me know what I'm missing?
