[ECOS] eCos application using USART

Gary Thomas gary@mlbassoc.com
Wed Jan 21 15:00:00 GMT 2004


On Wed, 2004-01-21 at 07:47, Ali Rodgo wrote:
> Thanks both
> but Gary when you say POSIX compatible termios what does refer to? For example,
> if i want to configure the USART to operate with 9600 baud rate, what functions 
> and where and how can i do that? I have seen software API to do that in the Atmel 
> web site. Where is this POSIX software?Any example?
> 
> Sorry maybe i am a bit lost on this

POSIX is a standard API that's used all over.  For example, Linux is a 
POSIX compliant system, so you would write a program using termios on 
eCos just like you would on Linux.

There are some examples of using termios in the eCos source base.  Look
at .../packages/services/gfx/mw/current/src/drivers/mou_mt.c
This is a mouse driver for MicroWindows.  This particular piece of code 
sets the mouse port (serial device) to run at 9600 baud, etc.

To learn more, try "man termios" on Linux :-)

> 
> Thanks in advance
> 
> 
> Gary Thomas <gary@mlbassoc.com> schrieb am 21.01.04 14:01:35:
> > 
> > On Wed, 2004-01-21 at 05:44, Jani Monoses wrote:
> > > On Wed, 21 Jan 2004 11:30:00 +0100
> > > "Ali Rodgo" <alirodgo@web.de> wrote:
> > > 
> > > > Hello,
> > > > I want to programm a new serial protocol (ecos application) to
> > > > communicate a device with the AT91EB40A using the USART. Can anyone
> > > > tell me where can i find (in the ecos repository) the files
> > > > necessaries to use the Usarts? Access to registers, USART predefined
> > > > software, examples etc..
> > > 
> > > devs/serial/arm/at91
> > 
> > More importantly, the point of having a standard driver structure is 
> > that one can write applications *without* needing to know the details
> > of the actual hardware.  We have a [fairly] complete POSIX compatible
> > "termios" layer which allows for high utilization of the device, 
> > including control over things like baud rates, etc.  I'd certainly
> > suggest that you (Ali) try to use it.
> > 
> > -- 
> > Gary Thomas <gary@mlbassoc.com>
> > MLB Associates
> > 
> > 
> > -- 
> > Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
> > and search the list archive: http://sources.redhat.com/ml/ecos-discuss
> > 
> 
> 
> ______________________________________________________________________________
> Erdbeben im Iran: Zehntausende Kinder brauchen Hilfe. UNICEF hilft den
> Kindern - helfen Sie mit! https://www.unicef.de/spe/spe_03.php
-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates


-- 
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