This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Gpio interrupt

Hi,

I am trying to set an irq on rising edge for gpio 3.

I can see that the gpio value is chainging from 0 to 1, but the isr function does not execute.

I believe I miss something in the initialization. Here it is:

  

gpio_direction_input(3);

 

gpio_free(3);

 

set_irq_type(51,IRQT_RISING);

 

request_irq(51,MyIrq,SA_INTERRUPT,"MyTask",NULL);

 

enable_irq(51);

Am I doing something wrong or missing something?

Thanks!