This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: serial ports on eCos...
- From: Andrew Lunn <andrew at lunn dot ch>
- To: sabine moulayes <moulayes_sabine at hotmail dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Fri, 28 May 2004 08:48:22 +0200
- Subject: Re: [ECOS] serial ports on eCos...
- References: <Sea1-F15J59J2W1gC7M0002bd58@hotmail.com>
On Fri, May 28, 2004 at 08:37:34AM +0200, sabine moulayes wrote:
> hello,
>
> I would like to communicate with the serial ports on eCos, but I don't know
> what are there names...
> On linux the names are /dev/ttyS0 or /dev/ttyS2 and so on...
The name depends on your hardware platform. Generally the device names
are based on what the label says on the hardware. Read the ecos.ecc
file. Look for CYGPKG_IO_SERIAL_*. Its also worth RTFMing to find out
about the layering of serial devices used by eCos.
> But what are they on eCos??
> Can I use the fonction fopen like on linux???
Yes.
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