This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Canonical tty (termios) and nonblocking


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]