This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Canonical tty (termios) and nonblocking
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Rutger Hofman <rutger at cs dot vu dot nl>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Fri, 20 Jul 2007 21:29:02 +0200
- Subject: Re: [ECOS] Canonical tty (termios) and nonblocking
- References: <469E9547.2020702@cs.vu.nl>
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