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? > > http://www.complang.tuwien.ac.at/cvsweb/cgi-bin/cvsweb/gforth/contrib/serial > .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" http://bernd-paysan.de/
signature.asc
Description: This is a digitally signed message part.
