From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a3a6e22918dc31c7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-30 14:21:35 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "David C. Hoos" Newsgroups: comp.lang.ada Subject: Re: Ada serial Communication packages Date: Fri, 30 May 2003 16:21:30 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:38158 Date: 2003-05-30T16:21:30-05:00 List-Id: "Stephen Leake" 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 >