[ECOS] How to add a 4th termios driver?
Gary Thomas
gary@mlbassoc.com
Fri Feb 16 15:24:00 GMT 2007
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
More information about the Ecos-discuss
mailing list