Enable Interrupt on edge transitions - PA10 input

Moderator: nferre

sjcchuma
Posts: 17
Joined: Tue Oct 07, 2014 11:05 pm

Enable Interrupt on edge transitions - PA10 input

Thu Jan 15, 2015 12:18 am

I want to enable PA10 as an Input with Interrupt on Edge transitions. How do I do this, any examples? Thanks.
blue_z
Location: USA
Posts: 1692
Joined: Thu Apr 19, 2007 10:15 pm

Re: Enable Interrupt on edge transitions - PA10 input

Fri Jan 16, 2015 2:02 am

sjcchuma wrote:I want to enable PA10 as an Input with Interrupt on Edge transitions.
In userspace as events or in a kernel device driver?
sjcchuma
Posts: 17
Joined: Tue Oct 07, 2014 11:05 pm

Re: Enable Interrupt on edge transitions - PA10 input

Fri Jan 16, 2015 2:11 am

In kernel.

I believe in userspace I can use "export" gpio.
blue_z
Location: USA
Posts: 1692
Joined: Thu Apr 19, 2007 10:15 pm

Re: Enable Interrupt on edge transitions - PA10 input

Fri Jan 16, 2015 10:07 pm

sjcchuma wrote:How do I do this, any examples?
For a kernel driver there are dozens of examples in the kernel source code, e.g. spi-atmel.c.
Also read my comments regarding "interrupt numbers" in this post.

Regards

Return to “SAMA5-based”

Who is online

Users browsing this forum: No registered users and 2 guests