This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: How to add a 4th termios driver?
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Tim Hatton <tim at coherent-tech dot co dot uk>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Fri, 16 Feb 2007 08:24:13 -0700
- Subject: Re: [ECOS] How to add a 4th termios driver?
- References: <9006150.post@talk.nabble.com>
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