Re: [beagleboard] GPIO Edge

2014-04-15 Thread Teknoman117
I actually tried using the sysfs gpio interrupts before writing the eQEP driver. They just weren't fast enough for my application. The motors I have generate a 4096 ticks per revolution and rotate at like 120 rpm. The gpio interrupts just couldn't keep up. They stopped working (as in

Re: [beagleboard] GPIO Edge

2014-03-05 Thread Jason Kridner
On Tue, Mar 4, 2014 at 5:56 PM, Dorian Levy dorianal...@gmail.com wrote: If setting /sys/class/gpio/gpioxx/edge creates an interrupt in the /proc/interrupts file, why is there no event file associated with it? What is the best way to use a gpio pin to count the number of times a switch is

Re: [beagleboard] GPIO Edge

2014-03-05 Thread Dorian Levy
I tried the gpio-keys driver. I was able to count the interrupts, but was not able to determine which pin. I tried the following code, but when I hooked up switches to two pins the first switch I triggered would give the correct code, but when I triggered the second switch it would give the

Re: [beagleboard] GPIO Edge

2014-03-05 Thread Jack Mitchell
libsoc has an implementation that will allow you to count interrupts by using poll on the sysfs standard GPIO implementation. You can take a look to see if that would help you. https://github.com/jackmitch/libsoc Cheers, Jack. On 05/03/14 15:08, Dorian Levy wrote: I tried the gpio-keys

[beagleboard] GPIO Edge

2014-03-04 Thread Dorian Levy
If setting /sys/class/gpio/gpioxx/edge creates an interrupt in the /proc/interrupts file, why is there no event file associated with it? What is the best way to use a gpio pin to count the number of times a switch is toggled? I really need to do it on two separate pins in order to ensure two