Re: Threaded interrupts for synaptic touchscreen in HTC dream

David Brownell
2009-07-22T22:15:06Z

On Wednesday 22 July 2009, Arve Hjønnevåg wrote:
> It would also be useful to mask an edge triggered interrupt until the
> thread handler has finished. The touchscreen on the G1 is connected to
> an edge triggered interrupt, and the touchscreen may toggle the
> interrupt line while reading its registers.

To clarify: if it does toggle, do you want that event to be
queued up so the IRQ is re-issued -- or not? That "oneshot"
mechanism does some of that, though it's for level triggers.

Parts of that might be appropriate to handle in the threaded
IRQ handler itself. It seems a bit device-specific.

- Dave