[ECOS] Canonical tty (termios) and nonblocking

Andrew Lunn andrew@lunn.ch
Fri Jul 20 19:29:00 GMT 2007


On Thu, Jul 19, 2007 at 12:33:43AM +0200, Rutger Hofman wrote:
> Good evening list,
>
> I run into the following problem. I have a device that is attached to a 
> serial port (a BlueTooth thingy).
>
> This port is opened in my application as a file, /dev/ser0 or /dev/tty0 or 
> /dev/termios0 or /dev/... I want to control the line speed for the serial 
> connection from the application, so I want to use tcsetattr or 
> cfseti/ospeed. This interface only exists for termios devices 
> ("/dev/termios0"), as defined in 
> packages/io/serial/current/src/common/termiostty.c

There is an eCos way to set the line speed. Take a look at

cyg_io_set_config() and there should be a key to set the speed of the
device. You can apply this to the raw device.

        Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list