Re: tty.cdl

Sergei Gavrikov <[email protected]>
Newsgroups gmane.os.ecos.devel
Message-ID <alpine.DEB.2.00.1103272357390.5121@sg-laptop>
On Sun, 27 Mar 2011, Ilija Kocho wrote:

> Sergei, I started this discussion in order to discuss this issue before
> I drop any code. Your proposal sounds rational. I shall open a Bug and
> reference this discussion.

Ilija and may be not :-) I've seen that io_serial.h has

#ifdef CYGDAT_IO_SERIAL_DEVICE_HEADER
# include CYGDAT_IO_SERIAL_DEVICE_HEADER
#endif

So, your issue can be managed on the target's side, as both and tty.c
and termios.c include this header. You can add CDL component in your HAL
config file which parent should be CYGPKG_IO_SERIAL_TTY and define extra
devices (TTY4, TTY5, ...) there. Also define/set your own value for the
CYGDAT_IO_SERIAL_DEVICE_HEADER in the HAL's config file.


Sergei
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.