polling a UART vs. interrupt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I'm writing a driver for a UART that, as is currently intended, will not 
use interrupts.  Everything I've found online about the serial core, and 
using the many functions such as uart_*(), all assume that the UART is 
interrupt driven.  I will agree that this is probably the way it should 
be but I don't have visibility into these decisions presently.  It 
doesn't use interrupts and I've got to implement a method for polling.

Is there something in the serial core that does this?  I see the poll*() 
functions listed in Documentation/serial/driver, but these seem to be 
relating to a console.  There isn't a console at play in this case.  The 
expected usage is through minicom, or something similar. 
uart_update_timeout(port,cflag,baud) seems to be relating with the 
serial core and not with the hardware.  (Is this true?)  Am I simply 
going to have to instrument some sort of rudimentary polling through 
kernel timers or kernel threads?


Andy��.n��������+%������w��{.n�����{��ǫ����{ay�ʇڙ���f���h������_�(�階�ݢj"��������G����?���&��




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux