[Top][All Lists]

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

Re: [gforth] problem with gforth7 and serial access

From: Bernd Paysan
Subject: Re: [gforth] problem with gforth7 and serial access
Date: Thu, 22 Mar 2012 16:02 +0100
User-agent: KMail/4.7.2 (Linux/3.1.9-1.4-desktop; KDE/4.7.2; x86_64; ; )

Am Donnerstag, 22. März 2012, 09:32:03 schrieb David Kuehling:
> Have you had a look at contrib/serial.fs in the gforth distribution?
> .fs?rev=1.2;content-type=text%2Fplain
> while this may not be the same API as you're using, porting your code
> over to using it will reduce some of the headaches that come with
> providing your own serial port code?

The other tested serial interface code is that in arch/r8c/terminal.fs.  What
was changed in 0.7 is that key_avail no longer uses ioctl with FIONREAD to
check, but select, because ioctl(... FIONREAD ...) breaks under some
circumstances.  Maybe, however, select breaks on serial lines.  The code in
terminal.fs uses ioctl, by having its own C binding to it.

Bernd Paysan
"If you want it done right, you have to do it yourself"

Attachment: signature.asc
Description: This is a digitally signed message part.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]