From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22480 invoked by alias); 16 Feb 2007 15:24:38 -0000 Received: (qmail 22471 invoked by uid 22791); 16 Feb 2007 15:24:37 -0000 X-Spam-Check-By: sourceware.org Received: from 204-133-123-27.dia.static.slbbi.com (HELO mail.chez-thomas.org) (204.133.123.27) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 16 Feb 2007 15:24:32 +0000 Received: by mail.chez-thomas.org (Postfix, from userid 999) id 0EDAE19502C9; Fri, 16 Feb 2007 08:24:29 -0700 (MST) Received: from [192.168.1.101] (hermes_local [192.168.1.101]) by mail.chez-thomas.org (Postfix) with ESMTP id 8F90819502C7; Fri, 16 Feb 2007 08:24:15 -0700 (MST) Message-ID: <45D5CC9D.9000807@mlbassoc.com> Date: Fri, 16 Feb 2007 15:24:00 -0000 From: Gary Thomas User-Agent: Thunderbird 1.5.0.8 (X11/20061107) MIME-Version: 1.0 To: Tim Hatton CC: ecos-discuss@ecos.sourceware.org References: <9006150.post@talk.nabble.com> In-Reply-To: <9006150.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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] How to add a 4th termios driver? X-SW-Source: 2007-02/txt/msg00180.txt.bz2 Tim Hatton wrote: > Hi, > I am currently in the process of building an application witht eCos (2.0.43) > running on our own hardware which uses an ATMEL AT91RM9200 CPU. I am trying > to add a 4th termios tty driver (i.e. /dev/termios3) but haven't really > succeeded. > > I thought this would be a simple case of editing some CDL files but I can't > work out where the current CYGPKG_IO_SERIAL_TERMIOS_TERMIOSn and > CYGDAT_IO_SERIAL_TERMIOS_TERMIOSn_DEV definitions are. > > If anyone could provide some ideas I'd be grateful. > Best regards > Tim Hatton % find /work2/ecos/packages -name "*.cdl" -or -name "*.h" | xargs grep CYGPKG_IO_SERIAL_TERMIOS /work2/ecos/packages/io/serial/current/cdl/termios.cdl:cdl_component CYGPKG_IO_SERIAL_TERMIOS_TERMIOS0 { /work2/ecos/packages/io/serial/current/cdl/termios.cdl:cdl_component CYGPKG_IO_SERIAL_TERMIOS_TERMIOS1 { /work2/ecos/packages/io/serial/current/cdl/termios.cdl:cdl_component CYGPKG_IO_SERIAL_TERMIOS_TERMIOS2 { /work2/ecos/packages/io/serial/current/cdl/termios.cdl:cdl_component CYGPKG_IO_SERIAL_TERMIOS_TERMIOS3 { /work2/ecos/packages/io/serial/current/cdl/io_serial.cdl: cdl_component CYGPKG_IO_SERIAL_TERMIOS { You'll also need to change /work2/ecos/packages/io/serial/current/src/common/termiostty.c where the TERMIOS structures are [manually] enumerated. -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss