From owner-freebsd-hackers Fri Oct 27 7:32:37 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.osd.bsdi.com (adsl-63-202-178-14.dsl.snfc21.pacbell.net [63.202.178.14]) by hub.freebsd.org (Postfix) with ESMTP id 9767B37B4CF for ; Fri, 27 Oct 2000 07:32:35 -0700 (PDT) Received: from mass.osd.bsdi.com (localhost [127.0.0.1]) by mass.osd.bsdi.com (8.11.0/8.11.1) with ESMTP id e9REZHF00426; Fri, 27 Oct 2000 07:35:17 -0700 (PDT) (envelope-from msmith@mass.osd.bsdi.com) Message-Id: <200010271435.e9REZHF00426@mass.osd.bsdi.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: Alexander Maret Cc: "'Poul-Henning Kamp'" , "'freebsd-hackers@freebsd.org'" Subject: Re: Accessing the tty structure of an opened device In-reply-to: Your message of "Fri, 27 Oct 2000 15:29:50 +0200." <58A002A02C5ED311812E0050044517F00D2614@erlangen01.atrada.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 27 Oct 2000 07:35:17 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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? You will need to write your own. Even then, polling an inbound signal is not going to be reliable. Use a UART or some other appropriate hardware decoder. -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message