This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Serial port problem
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- To: George Mathew <georgemathewkar at rediffmail dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Tue, 28 May 2002 15:15:31 +0200
- Subject: Re: [ECOS] Serial port problem
- References: <20020528123805.28269.qmail@webmail15.rediffmail.com>
On Tue, May 28, 2002 at 12:38:05PM -0000, George Mathew wrote:
> Hi all
> I'm trying to write a program to open a com port and write
> data to it.
> I tried with various combination
>
> cyg_io_lookup("COM1",handle);
> cyg_io_lookup("//./COM1",handle);
> cyg_io_lookup("COM1:",handle);
Try think Unix not M$
/dev/tty0
/dev/tty1
The exact name will depend on your target and configuration. Look in
the ecos.ecc file.
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss