[ECOS] port opening and createfile
paul thomas
paulthomas520@hotmail.com
Thu May 30 21:43:00 GMT 2002
Hi,
i'm trying to write a program to open the COM1 port and write data to
it.iused the function cyg_io_lookup().i tried specifying the device name in
many ways..
cyg_io_lookup("/dev/serial0",handle)
cyg_io_lookup("/dev/Ser0",handle)
cyg_io_lookup("/dev/ttyS0",handle)
cyg_io_lookup("COM1",handle)
cyg_io_lookup("//./COM1",handle)
but i cudn't open the port.Error -2 is shown..
Can anybody help me...
Also is there any function in eCos equiivalent to CREATEFILE()..CAn anybody
help me in this regard too...
Thanking in advance..
Paul.
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
More information about the Ecos-discuss
mailing list