AnsweredAssumed Answered

iMX6SL GPIO Interrupt latency (Yocto Project)

Question asked by Induk Kim on Sep 25, 2014
Latest reply on Sep 26, 2014 by igorpadykov

Hi All,

 

I want to use the GPIO Interrupt, but the interrupt response time is too long (20us more)

How do you feel about the following statements?

 

iMX6SL, Yocto Project, linux kenel 3.10.17

Please help me......

 

gpio_request(97,"test1"); //GPIO4 1 Intertup source

gpio_request(26,"test2"); //GPIO0 26 Out Control

gpio_direction_input(97);

gpio_direction_output(26,0);

int irq = gpio_to_irq(97);

int ret = request_irq(irq,test_isr,IRQF_TRIGGER_FALLING|IRQF_TRIGGER_RISING, "gpiodev", NULL);

 

irqreturn_t test_isr(int irq, void *dev_id)

{

  gpio_set_value(26,1);

  gpio_set_value(26,0);

  gpio_set_value(26,1);

  gpio_set_value(26,0);

  return IRQ_HANDLED;

}

scope_5.bmp

Outcomes