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.

Interrupt GPIO

Other Parts Discussed in Thread: TSC2007, TSC2004

 Hello,

 I am trying to configure one of the general purpose I/O pins under Linux to be interrupt driven on the C6A816x (example GPO_IO4).  I understand how to configure this pin as an input or output using the provided GPIO routines (gpio_set_value/gpio_get_value), but not clear how I would configure it to be interrupt driven and connect an ISR or call back routine to it.  We are developing a custom driver and want to use one of the GPIO pins to generate a interrupt to our  driver code.

 Can you provide or point me to some example that does something like this on the integra.

 

Thanks,

Craig

 

  • Hi Craig,

    Nothing specific to C6A816X device, follow the same way as how GPIO interrupts are handling in other devices like OMAP, etc.

    For reference you can go through touchscreen driver.

    drivers/input/touchscreen/tsc2004.c or drivers/input/touchscreen/tsc2007.c

    Regards

    Anilkumar

    Does this help with your question? If not, please send back more information. If it answers your question, please click the  Verify Answer  button below.