Alexander Maret wrote:
>
> > -----Ursprungliche Nachricht-----
> > From: Poul-Henning Kamp [mailto:[EMAIL PROTECTED]]
> > Subject: Re: Accessing the tty structure of an opened device
> >
> > You will need to do this in a device driver, there is no way you
> > can reliably measure that from userland.
> >
> > Trust me on this: I've tried.
>
> That's what I wanted to do. I wanted to write a character device
> which on read() passes the last IR-code.
>
> Well as Mike Smith told me: "you cannot poll the serial line at
> anything like a useful speed to perform IR decoding" my hopes are
> all gone to get a simple solution.
>
> Do I have to write my own serial driver to get what I want or
> is it possible to use functions of the "build in" serial
> device driver?
look at the pcaudio driver
it uses a 16KHz clock to poll out audio..
You can use a similar method to poll in data with little system load....
As for the 'build in' serial driver, it depends on wht your data will
look like....
Julian
>
> Alex
>
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-hackers" in the body of the message
--
__--_|\ Julian Elischer
/ \ [EMAIL PROTECTED]
( OZ ) World tour 2000
---> X_.---._/ presently in: Budapest
v
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message