AnsweredAssumed Answered

imx6sl gpio can't enter interruput function

Question asked by wei yang on Oct 17, 2016
Latest reply on Oct 17, 2016 by wei yang

Hello

   I use imx6sololite's gpio interrupts in our custom board. I meet some probloms as follow:

  configuration:

  PIN: GPIO2_16 :

temp = 0;
temp = readl(GPIO2_GDIR);
temp &= (~(1 << 16));
writel(temp, GPIO2_GDIR);

 

temp = 0;
temp = readl(GPIO2_ICR2);
temp |= (1 << 0) | (1 << 1);
writel(temp, GPIO2_ICR2);

 

temp = readl(GPIO2_IMR);
temp |= (1 << 16);
writel(temp, GPIO2_IMR);

 

 

PIN:GPIO3_15

temp = 0;
temp = readl(GPIO3_GDIR);
temp &= (~(1 << 15));
writel(temp, GPIO3_GDIR);

 

temp = 0;

temp = readl(GPIO3_ICR1);
temp |= (1 << 31) | (1 << 30);
writel(temp, GPIO3_ICR1);

 

temp = 0;
temp = readl(GPIO3_IMR);
temp |= (1 << 15);

writel(temp, GPIO3_IMR);

 

GPIO3_15 can enter interrupt funcution,working normal,but GPIO2_16 not working,could you give me some advice...

 

 

Thanks........

Outcomes