comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos" <david.c.hoos.sr@ada95.com>
Subject: Re: Ada serial Communication packages
Date: Fri, 30 May 2003 16:21:30 -0500
Date: 2003-05-30T16:21:30-05:00	[thread overview]
Message-ID: <vdfiqsgospska8@corp.supernews.com> (raw)
In-Reply-To: uznl4mlpm.fsf@nasa.gov


"Stephen Leake" <Stephe.Leake@nasa.gov> wrote in message
news:uznl4mlpm.fsf@nasa.gov...
> robin-hall@utvinternet.com (AdaNewbie) writes:
>
> > Stephen,
> >
> > Thanks very much for the reply and the low down on licensing issues.
> > Your code is very interesting but based on an OS. I had hope to see a
> > pure Ada implementation,any ideas?
>
> Since the phrase "Serial port" is not in the Ada Reference Manual, it
> is by definition not Pure Ada, so I don't understand what you want :).
>
> To be less pedantic:
>
> Serial ports are hardware; on most computers, the only way to talk to
> hardware is thru an operating system.
>
> Perhaps there is some standard that defines an operating system API
> for serial ports. If that is true, then an Ada binding for that
> standard would be useful, and might be what you are looking for. There
> is an Ada binding to Posix; I don't know if it covers serial ports.

FWIW, the Posix/Ada binding does cover Serial Ports, but it's limited
to 38,400 baud, so hasn't kept up with reality.
Also, it's been several years since I wrote serial port code using the
Posix/Ada bindings, but if I remember correctly, there was some problem
with setting port modes -- e.g., Canoinical, Raw, Cooked, etc.

>
> It would also be possible to treat my Com_Ports Ada spec as a
> standard, and provide a different body for a different operating
> system. So far, I haven't had to do that.
>
> On a hard-core embedded system, with no operating system, a package
> that dealt with serial ports would do direct port IO. That could be
> done with machine-code insertions in Ada; it would be CPU and serial
> port controller chip specific (which is part of the reason operating
> systems were invented :).
>
> Hope this helps,
>
> -- 
> -- Stephe
> _______________________________________________
> comp.lang.ada mailing list
> comp.lang.ada@ada.eu.org
> http://ada.eu.org/mailman/listinfo/comp.lang.ada
>





      parent reply	other threads:[~2003-05-30 21:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-22 19:39 Ada serial Communication packages AdaNewbie
2003-05-22 20:22 ` Stephen Leake
2003-05-30 14:32   ` AdaNewbie
2003-05-30 16:40     ` Stephen Leake
2003-05-30 19:19       ` Martin Dowie
2003-05-30 21:21       ` David C. Hoos [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox