AnsweredAssumed Answered

GPIO Interrupt Newbie Question

Question asked by Mike Spenard on Jun 12, 2019
Latest reply on Jul 9, 2019 by Victor Jimenez

Hi Gents,

 New to interrupts on the iMXRT. How does one register a GPIO interrupt handler (say as you use to do with registerHandlerGPIO(x,y, my_handler) )? 
There are the double-weak functions...  So is the proper way to register a handler now by doing: ?
    #define my_handler GPIO5_Combined_0_15_IRQHandler

But, how do I register an interrupt handler that is variable?



Also, I assume that even though I EnableIRQ( GPIO5_Combined_0_15_IRQn) it doesn't trigger on an edge of any of those 0-15 pins, but only those specified by GPIO_Pinit(). Is this correct?


Thank you