Hi,
I am trying to enable an interrupt for the GPIO on imx8qm.
SCU configuration:
config.pinDirection = kRGPIO_DigitalInput;
pad_force_mux(SC_P_SCU_GPIO0_00, 3, SC_PAD_CONFIG_NORMAL,
SC_PAD_ISO_OFF);
pm_force_resource_power_mode(SC_R_GPIO_0, SC_PM_PW_MODE_ON);
FGPIO_PinInit(FGPIOA, 0U, &config);
Tried to validate the GPIO by reading form GPIO offset memory
read_gpio0 = *(uInt32 *)0x5D080000;
Till here it is working but now i am trying to enable the interrupt for same
#define LSIO_GPIO0_ADDR (0x5D080000)
LSIO1 = (LSIO_GPIO_Type*)mapPhysicalAddress64(LSIO_GPIO0_ADDR, 1, userAccessNone, cachingOff);
LSIO1->ICR2 = (3 << 24);
LSIO1->IMR |= (1 << 28);
But above ICR and IMR are not working.
Need help to check where am i going wrong.
Hi Lakshmi
This code seems not from MQX 4.2.
I would suggest you contact local FAE for support
Regards
Daniel