lsio interrupt configuration

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

lsio interrupt configuration

1,499件の閲覧回数
Lakshmi_AG
Contributor III

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. 

  

 

タグ(1)
0 件の賞賛
返信
1 返信

1,478件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi Lakshmi

 

This code seems not from MQX 4.2. 

I would suggest you contact local FAE for support

 

Regards

Daniel

 

0 件の賞賛
返信