This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: question about serial ports program?
- To: "li hui" <lhbyron at yahoo dot com>,<ecos-discuss at sources dot redhat dot com>
- Subject: RE: [ECOS] question about serial ports program?
- From: "Ravi Kumar B S" <ravikbs at mindtree dot com>
- Date: Fri, 9 Nov 2001 14:08:42 +0530
now I want to program with serial port.And in my
target machine there are two serial ports, one is used
for GDB, how can I get the handle of the second serial
port.And how shall I cnonfig my ECOS?
(I am working on i386 target)
you have to add the io package and the serialio package using the ecosconfig
tool.
see the ecos.ecc for the details of the configuration.
then use the ecos native cyg_io_lookup/read/write calls to open, read, write
to the serial port.
hope this helps
/Ravi b-s.