This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: serial ports on eCos...


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]