i wrote a code for RGB LED blink using the switch interrupt...but the interrupt gets triggered at the wrong button.....i have selected the button of port f pin 4 but interrupt get triggered when i press the button at pin 0......i have checked the datasheet and schametics too......
heres the code for it...
#define SWITCH GPIO_PIN_4
ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOF);
ROM_IntMasterEnable(); // enable processor interrupts
GPIOPinTypeGPIOInput(GPIO_PORTF_BASE,SWITCH);
GPIOIntTypeSet(GPIO_PORTF_BASE,SWITCH, GPIO_RISING_EDGE);
GPIOPortIntRegister(GPIO_PORTF_BASE,SwitchIntHandler);
IntPrioritySet(INT_GPIOF, 0x00);
GPIOPinIntEnable(GPIO_PORTF_BASE,SWITCH);
help me...