I am struggling to get to grips with a simple GPIO interrupt. I see this issue has come up numerous times, but no adequate solution for my specific application.
I have an ATUC3A0512 cpu device on my own PCB. I am wanting to use port pin PX33 to create an interrupt when a radio module receives data.
Now to use
void INTC_register_interrupt (__int_handler handler, uint32_t irq, uint32_t ,int_level)
I need to know "˜irq' as would be applicable to pin PX33.
Datasheet refers to groups by nowhere can I find any suitable documentation regards the "group" PX33 interrupt would be associated to.
As an example, the USART example provided for EVK1105 uses "EXAMPLE_USART_IRQ" which equates to a value of 192.
So far, I have the USART interrupt working, but cannot get a simple GPIO interrupt working via INTC. I have tried a few values for IRQ such as 71 (GPIO pin number is 71), but none have resulting in a working interrupt.
Anybody have any idea as to the correct value to be used for IRQ
// Disable all interrupts
// Register GPIO Pin Change Interrupt
INTC_register_interrupt(&DR_int_handler, 71, AVR32_INTC_INT2);
// Enable pin change interrupt for GPIO_PIN
// Enable all interrupts
} :( :(