Dear Sirs
I'm using the user buttons, USR_SW1 and USR_SW2, on the EK-TM4C1294XL Launch Pad to trigger their separate ISRs. Please see initialization code below.
//*************************************************************************
// Enable and configure port J for use with user buttons on TIVA Launchpad.
//*************************************************************************
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOJ);
GPIOPinTypeGPIOInput(GPIO_PORTJ_BASE, GPIO_PIN_0 | GPIO_PIN_1);
GPIOPadConfigSet(GPIO_PORTJ_BASE, GPIO_PIN_0 | GPIO_PIN_1, GPIO_STRENGTH_4MA, GPIO_PIN_TYPE_STD_WPU);
GPIOIntTypeSet(GPIO_PORTJ_BASE, GPIO_PIN_0 | GPIO_PIN_1, GPIO_FALLING_EDGE);
//
// These interrupts are re-mapped to ISR functions
// found within this file.
//
GPIOIntRegister(GPIO_PORTJ_BASE, &UserButton1ISR);
GPIOIntRegisterPin(GPIO_PORTJ_BASE, GPIO_PIN_0, &UserButton1ISR);
GPIOIntRegister(GPIO_PORTJ_BASE, &UserButton2ISR);
GPIOIntRegisterPin(GPIO_PORTJ_BASE, GPIO_PIN_1, &UserButton2ISR);
When I push the USR_SW1 button, which should trigger UserButton1ISR, UserButton2ISR is triggered. USR_SW2 triggers UserButton2ISR as it should. Is my initialization code wrong? Below is my interrupt enable code.
IntMasterEnable();
IntEnable(INT_GPIOJ);
GPIOIntEnable(GPIO_PORTJ_BASE, GPIO_INT_PIN_0 | GPIO_INT_PIN_1);
Thank you for your time.