Hello everyone,
I'm having a very basic issue with the EK-TM4C123GXL kit. I simply want to be able to invoke an interrupt on a button SW2 push. This is the code I have:
IntMasterEnable();
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOF);
GPIODirModeSet(GPIO_PORTF_BASE, GPIO_PIN_0, GPIO_DIR_MODE_IN);
GPIOPadConfigSet(GPIO_PORTF_BASE, GPIO_PIN_0, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_STD_WPU);
GPIOIntRegister(GPIO_PORTF_BASE, myS2buttonISR);
GPIOIntTypeSet(GPIO_PORTF_BASE, GPIO_PIN_0, GPIO_BOTH_EDGES); // both edges will be changed later...
GPIOIntEnable(GPIO_PORTF_BASE, GPIO_PIN_0);
My code never jumps to the ISR when pushing the button. Note that I don't have any startup_css.c file like in the TivaWare examples but rather have my vtable in the interrupt.c file like this:
#pragma DATA_ALIGN(g_pfnRAMVectors, 1024)
#pragma DATA_SECTION(g_pfnRAMVectors, ".vtable")
void (*g_pfnRAMVectors[NUM_INTERRUPTS])(void);
Any ideas what might be wrong? Thanks to everyone.