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 09:45:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!logbridge.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Ada serial Communication packages Date: 30 May 2003 12:40:53 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1054313816 3838 128.183.235.92 (30 May 2003 16:56:56 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 30 May 2003 16:56:56 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Xref: archiver1.google.com comp.lang.ada:38117 Date: 2003-05-30T16:56:56+00:00 List-Id: 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. 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