This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
ecos port x86
- From: baljeet singh <baljeet45 at yahoo dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Mon, 23 Feb 2004 09:51:32 -0800 (PST)
- Subject: [ECOS] ecos port x86
All,
I am trying to get serial port to work on my target
system.
My settings in the config (.ecc) file are
Number of comm channels 3
Debug serial port 0
Default console channel 1
Diagnostic serial port 1
Output to PC screen is checked.
My setup is as follows:
My host is connected to one of the serial ports of the
target. Other serial port of the target is connected
to 2nd PC. I am using the Hyper terminal of 2nd PC to
talk to this other channel of the target.
I am using the serial.c program from ecos.
I have added the code to check for any of the
following devices
;
/dev/serial0, dev/serial1, dev/ser0, dev/ser1 ,
dev/haldiag (similar to /dev/haldiag in the serial.c
example) to get the handle.
err = cyg_io_lookup( "/dev/ser1", &handle );
if (ENOERR == err) {
printf("Found /dev/ser1. Writing
string....\n");
err = cyg_io_write( handle, test_string,
&len );
}
Only handle it can find is for /dev/haldiag.
Am I missing something in the setup?
Thanks,
Baljeet
__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss