From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22491 invoked by alias); 20 Jul 2007 19:29:10 -0000 Received: (qmail 22483 invoked by uid 22791); 20 Jul 2007 19:29:10 -0000 X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 20 Jul 2007 19:29:08 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1IBy9u-0007YM-00; Fri, 20 Jul 2007 21:29:02 +0200 Date: Fri, 20 Jul 2007 19:29:00 -0000 From: Andrew Lunn To: Rutger Hofman Cc: ecos-discuss@ecos.sourceware.org Message-ID: <20070720192902.GB28161@lunn.ch> Mail-Followup-To: Rutger Hofman , ecos-discuss@ecos.sourceware.org References: <469E9547.2020702@cs.vu.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <469E9547.2020702@cs.vu.nl> User-Agent: Mutt/1.5.16 (2007-06-11) X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] Canonical tty (termios) and nonblocking X-SW-Source: 2007-07/txt/msg00159.txt.bz2 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