This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: How to add extra serial ports
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Eduardo Sabaj <esabaj at hasar dot com>
- Cc: eCos Disuss <ecos-discuss at ecos dot sourceware dot org>
- Date: Fri, 30 Nov 2007 21:26:22 +0100
- Subject: Re: [ECOS] How to add extra serial ports
- References: <47503142.4040002@hasar.com> <20071130162842.GD593@lunn.ch> <475065E5.3000304@hasar.com>
On Fri, Nov 30, 2007 at 04:35:01PM -0300, Eduardo Sabaj wrote:
> Andrew, thank you for your answer.. I made the changes that you suggested,
> I added two more serial ports, but what happens with the
> CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS macro? Is it enough to change its
> limit to 5 or should I change any other file?
So long as you don't need to use the serial ports from RedBoot, this
is all you need to do. You should now have /dev/ser[0-3] which you can
open with fopen() etc. If you need to layer tty or termio on top, you
will also need to extend the number of tty & termio devices, but it is
a very similar change which im sure you can work out for yourself with
a bit of grep'ing.
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