This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
Re: accessing serial port
- To: Akkala Naidu Paidi <naidupa at usa dot net>
- Subject: Re: [ECOS] accessing serial port
- From: Jonathan Larmour <jlarmour at redhat dot co dot uk>
- Date: Tue, 02 May 2000 07:20:48 +0100
- CC: ecos-discuss at sourceware dot cygnus dot com
- Organization: Red Hat UK Ltd.
- References: <20000502060220.5246.qmail@nwcst323.netaddress.usa.net>
Akkala Naidu Paidi wrote:
>
> hai all,
> While i am trying to access serial port
> with cyg_io_lookup() API in eCos
> to send some message to the device.
> i got the fallowing error...
>
> contacting serial device... -2 ( ENOENT- no such entry)
>
> actually i am sending name of the device as "/dev/com1".
You didn't mention your target. Anyway, look at the configuration for your
target (either in the ecos.ecc or the Configuration Tool) and look at the
I/O serial package. In there should be options that tell you what the real
name is that you should use with cyg_io_lookup().
Jifl
--
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow." || These opinions are all my own fault