This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Serial Port
- From: "amassa at san dot rr dot com" <amassa at san dot rr dot com>
- To: ggillon at ulb dot ac dot be
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Mon, 15 Mar 2004 15:32:42 -0500
- Subject: [ECOS] Re: Serial Port
- Reply-to: amassa at san dot rr dot com
It depends on what device you are trying to configure (serial port 1,
serial port 2, Ethernet, etc.) and what the device is named in your
configuration.
I think it is probably something like /dev/ser1 for a serial port.
So, I believe you would make the call as follows:
error = cyg_io_lookup( "dev/ser1", &handle );
if (error)
{
/* Process error here. */
}
--Anthony
>cyg_io_lookup( "XXXXX", &handle );
>What do I put in here XXXX to get my second serial port on my AT91EB55
board
?
----- Original Message -----
From: <amassa@san.rr.com>
To: <ggillon@ulb.ac.be>
Cc: <>
Sent: Monday, March 15, 2004 7:15 PM
Subject: [ECOS] Re: Serial Port
You could try looking at the test code under
packages\io\serial\current\tests.
I believe there is code there that reconfigures the serial port and sends
out a string.
Hope this helps.
--Anthony
>could someone send me an exemple source code on how to set the serial port
>and send a string
Thanks in adavance
----- Original Message -----
From: "Andrew Lunn" <andrew@lunn.ch>
To: "Gatien Gillon" <ggillon@ulb.ac.be>
Cc: <ecos-discuss@sources.redhat.com>
Sent: Monday, March 15, 2004 5:44 PM
Subject: Re: [ECOS] Serial Port
> On Mon, Mar 15, 2004 at 05:45:38PM +0100, Gatien Gillon wrote:
> > How do you chenge the serial ports settings ...
> >
> > I need to use the folowing settings : 2400 no parity 1 stop bit
>
> http://ecos.sourceware.org/docs-latest/ref/io-serial-driver-details.html
>
> Andrew
>
> --
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss