I am adding an interrupt for a touch screen and am using the TM4C1294XL launch board.
I have connected the touch screen interrupt line to Port P5.
I added an hwi instance linking the interrupt to my handler function and set the interrupt number to 97. (Port P5)
My code follows the GPIO interrupt example and I changed the callback and enable functions as follows:
GPIO_SetCallback(GPIOTiva_PP_5, INT_GPIOTouch); (INT_GPIOTouch is the handler of course)
GPIO_enableInt(GPIOTiva_PP_5);
It compiles fine but when the program gets to the enableInt function it crashes.
I tried adding GPIO_PP_5 | GPIO_CFG_IN_PU | GPIO_CFG_INT_FALLING, to the GPIO_PinConfig array in the EK_TM4C1294XL.c file but it didn't help.
Is there some other value that needs to be added?