Re: rotary encoder linux driver
From: Johan Hovold
Date: Tue Oct 14 2014 - 04:46:08 EST
On Sun, Oct 12, 2014 at 06:29:03PM -0700, tecfacet wrote:
> I am interested in the rotary encoder kernel driver. I am very new to
> this linux kernel driver thing.
> How do I pass the gpio and interrupt stuff to the kernel module.. I
> think it is thru the rotary_encoder.h file.. am I correct?
That should be done through the device tree these days. The binding is
in the kernel source tree.
> How does the information about encoder position etc get back to my
> user space program? How is debounce handled?
> I am a little confused. Is there an example of a complete working
> implementation? I need to figure this out for school.
Have a look at the evtest program for an example:
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/