Hi everyone,
I am looking for a way to enable a GPIO interrupt on core VPSS-M3.
If it is possible, could someone point me to some documentation that would explain how to enable such interrupt?
I am using EZSDK 5.04.00.11 with overlay.
regards,
Simon
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi everyone,
I am looking for a way to enable a GPIO interrupt on core VPSS-M3.
If it is possible, could someone point me to some documentation that would explain how to enable such interrupt?
I am using EZSDK 5.04.00.11 with overlay.
regards,
Simon
Both irqs from GPIO 0/1/2 are directly available to the media controller subsystem (ducati), while those for GPIO 3 are available at the crossbar and can be mapped to any available irq (in range 7-63). See also this spreadsheet I made (specifically the Ducati sheets) listing all IRQs.
Other than that, you need to enable the IRQs in the GPIO controller (see chapter 10 of the TRM) and the cortex-M3. There's probably tons of info on web regarding interrupt handling on the cortex-M3, but basically: put a function pointer in the relevant vector table entry (offset is listed in my spreadsheet) and enable the IRQ, the function gets called when the interrupt is signalled. Make sure the IRQ line is low again before returning from the handler function since otherwise it will get called again of course.
Hi Matthijs,
I found the relevant section in the TRM.
Thank you for answering,
Simon