Hi all.
I'm working with imx8mp CPU.
I want to know which pin makes an interrupt for GPIO1 controller.
I have the following in my device tree file:
Combined interrupt indication for GPIO1 signal 0throughout 15 |
Combined interrupt indication for GPIO1 signal16 throughout 31 |
Hi @den,
To read this interruption you will need to configure the pin via software.
To do that you can follow the iMX8MP Reference Manual in section Chapter 8 Chip IO and Pinmux > General Purpose Input/Output (GPIO) > Interrupt Control Unit.
Also, for iMX8MPlus there are no code samples for interrupt applications, but you can be based on the gpio driver for iMXRT SDK there are no big differences between gpio driver for both processors.
You can port a code sample of iMXRT SDK for interrupt control to iMX8M SDK, and make some changes:
1. You will need to change some macros to correctly port to iMX8M SDK.
2. Use the BOARD_RdcInit() and BOARD_InitMemory() instead of BOARD_ConfigMPU() used by iMXRT SDK.
I hope this information will be helpful.
Best regards, Brian.