lkml.org 
[lkml]   [2008]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateWed, 08 Oct 2008 11:00:11 -0600
From"Chris Friesen" <>
SubjectRe: Toggling GPIO at 38Khz
Jon Smirl wrote:

> The existing LIRC driver for a serial port is here:
> http://lirc.cvs.sourceforge.net/viewvc/lirc/lirc/drivers/lirc_serial/lirc_serial.c?view=markup

That driver basically does busy-wait bitbanging, using rdtsc on x86 if
available or udelay() if not.

Your best bet is probably to use hrtimers combined with high res
timestamps to correct for accumulated error.

Chris


\
 
 \ /
  Last update: 2008-10-08 19:03    [from the cache]
©2003-2010