Device Tree vs. Device drivers
    Thomas Charron 
    twaffle at gmail.com
       
    Fri Jul 18 16:13:18 EDT 2014
    
    
  
On Fri, Jul 18, 2014 at 4:01 PM, Bruce Dawson <jbd at codemeta.com> wrote:
> Thanks for replying Thomas!
>
> Basically, I need to store the time (to the sub-nanosecond) on the first
> serial interrupt. (Don't need it for every byte, just the first in a
> stream.)
>
> I'm not really interested in speeding up the UART code or serial
> transfer; I just need to know *exactly* when the first byte comes in (or
> goes out).
>
  Oh, in that case, it's much easier.  The UART drivers allow for 'sub
drivers'.
  I actually had an example I used for such a thing bookmarked:
http://www.cs.fsu.edu/~baker/devices/lxr/http/source/linux/drivers/serial/uartlite.c
  I don't know if you'll find it helpfull, but it's a functioning example
which is relatively strait forward.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20140718/4b846631/attachment.html 
    
    
More information about the gnhlug-discuss
mailing list