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;
}
Hi Induk
since linux is not real time OS such time is normal,
you can refer to below context latencies (interrupts use
this context switching)
Context switching - times in microseconds
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------