Hello everyone,
I am a newbie with the launchpad and trying to run FREERTOS with a few tasks. One of my tasks is to get triggered by an interrupt on portE, pin 5. Then start a task which signals it's ready on portA, pin6.
The problem I´m having is that the interrupt doesn´t seem to be firing. I have put a breakpoint in my ISR to check if the code reaches that point, but it doesn´t.
Below is my code for setting the interrupt on port E pin 5. Can anyone tell me what I'm missing?
SysCtlPeripheralEnable( SYSCTL_PERIPH_GPIOA | SYSCTL_PERIPH_GPIOE ); //enable clocks for port A and E GPIOPinTypeGPIOOutput( GPIO_PORTA_BASE, GPIO_PIN_6 ); // Set direction for pins in port A (pin 6 output) GPIOPinTypeGPIOInput( GPIO_PORTE_BASE, GPIO_PIN_5 ); // Set direction for pins in port E (pin 5 input) GPIOPortIntRegister( GPIO_PORTE_BASE, &vPortEISRHandler ); // Enable interrupt for port E and point to handler GPIOPinIntClear( GPIO_PORTE_BASE, GPIO_PIN_5 ); // Clear any pending interrupts GPIOIntTypeSet( GPIO_PORTE_BASE, GPIO_PIN_5, GPIO_RISING_EDGE ); // Setup pin to trigger on rising edge GPIOPinIntEnable(GPIO_PORTE_BASE, GPIO_PIN_5); // Enable pinint, portint and master int IntEnable(INT_GPIOE); IntMasterEnable();