This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Serial Port , Raw Mode using cyg_io_read
- From: Edgar Grimberg <edgar dot grimberg at rms dot ro>
- To: Annamalai Prakash <aprakash at tataelxsi dot co dot in>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Wed, 06 Jul 2005 12:02:00 +0300
- Subject: Re: [ECOS] Serial Port , Raw Mode using cyg_io_read
- References: <200507061412.33468.aprakash@tataelxsi.co.in>
Hi,
Did you tried to open the /dev/ser0 , /dev/ser1 ? Something like:
err = cyg_io_lookup( "/dev/ser1", &fd );
Edgar
Annamalai Prakash wrote:
Hi List,
I am working on ARM920T (Integrator) and ecos. I have configured my kernel
with posix and Serial device drivers. following options are enabled in my
config file.
CYGOPT_IO_SERIAL_SUPPORT_NONBLOCKING
CYGPKG_IO_SERAIL_TTY
CYGPKG_IO_SERIAL_TTY_TTY1
CYGPKG_IO_SERIAL_DEVICES
CYGPKG_IO_SERIAL_ARM_INTEGRATOR_SERIAL1
I want to configure my serial port in RAW mode. i think ecos supports
two serial port drivers (raw and tty driver). Is there any explicit option to
specify for RAW drivers. I tried to disable (CYGPKG_IO_SERAIL_TTY_TTY1)
option, i wasnot able to read/write anything from serial port even opened
successfully.
I tried to use OPEN call also. i got compilation error due to
unresolved symbols `O_NDELAY' ,`B115200' ,`CLOCAL' ,`CREAD' . i have
decleared terminos.h ..
Any lights to move furthur..
Thanks
Prakash
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss