I need to write a (receive only) lirc driver using a gpio interface that can
catch rising or falling edges but not both.
I could poll the pulse period, as lirc_parallel.c does. But I'd
prefer to avoid this polling. (What are typical pulse periods anyway?)
I was told that IR codes are a series of spikes and the timing between
the spikes is what's measured. But I haven't read lircd.c closely enough
to tell if that's an over-simplification.
I was wondering about just fudging the pulse period by always catching
the rising edge and sending space (time - X), then pulse (X).
FYI, I'm also looking at reversing the polarity of the edge detection
with each edge detected, in order to catch both rising & falling edges.