Greetings, i'm trying to find a way to use several buttons as an interrupt, for example:
Use the PA6 and PA7 as diferent interrupts.
My problem is, in the startup how should i define them? i only have GPIO Port A and not GPIO Port A6 or 7.
Is there a way or i have to define the interruption several times as the example of onebuttonup, onebuttondown?
I'm using Tm4C123GXL
Interruptions maybeare better, but if i can use them as Rising edge GPIOPinInput without interruption its good to.
i already tried like this:
ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA);
GPIOPinTypeGPIOInput(GPIO_PORTA_BASE, GPIO_PIN_6 | GPIO_PIN_7);
GPIOPadConfigSet(GPIO_PORTA_BASE,GPIO_PIN_6 | GPIO_PIN_7, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_STD_WPU);
GPIOIntTypeSet(GPIO_PORTA_BASE, GPIO_PIN_6 | GPIO_PIN_7, GPIO_FALLING_EDGE);
if (!GPIOPinRead(GPIO_PORTA_BASE, GPIO_PIN_6)){
UARTprintf("\nReceived: %d\n ", count);
GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3, 2);
count++;
}