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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c5f189513e1f5f8a X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,CP1252 Path: g2news2.google.com!postnews.google.com!p11g2000yqe.googlegroups.com!not-for-mail From: rolf.ebert_nospam_@gmx.net Newsgroups: comp.lang.ada Subject: Re: Ada as a first language Date: Mon, 23 Mar 2009 09:59:15 -0700 (PDT) Organization: http://groups.google.com Message-ID: <75c2748d-353d-427b-8b74-7f9d8da75601@p11g2000yqe.googlegroups.com> References: <01d59695$0$20632$c3e8da3@news.astraweb.com> NNTP-Posting-Host: 217.89.139.138 Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1237827555 25597 127.0.0.1 (23 Mar 2009 16:59:15 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 23 Mar 2009 16:59:15 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p11g2000yqe.googlegroups.com; posting-host=217.89.139.138; posting-account=-RRRjAkAAAAGFvmHqTCN-L7gNQ7lRGfd User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 www-proxy-mozilla.vi.vector.int:8080 (squid/2.7.STABLE4), 1.0 vistrem1.vector-informatik.com:8080 (squid/2.6.STABLE18) Xref: g2news2.google.com comp.lang.ada:5208 Date: 2009-03-23T09:59:15-07:00 List-Id: > For example if you are interested in robotics you may wish to develop for > embedded processors, e.g. to read position sensors and control stepper mo= tors > (or BLDC or induction motors, depending how serious you are!) > Of all the small embedded controllers, only one family (the Atmel AVR) ha= s an > Ada compiler targetting it. (google AVR Ada) > I had used AVR-Ada on the Asuro, a very cheap (<40=80) toy robot (http:// www.arexx.com/arexx.php?cmd=3Dgoto&cparam=3Dp_asuro). My Ada equivalent of the Asuro-lib (http://sourceforge.net/projects/asuro) covers about 60 - 80%. > As it happens the AVR is quite a good choice - there are low-cost boards, > programmers, and peripherals (sensors, steppers) for it (www.arduino.cc) = , and > it is used in a number of popular robotics projects (http://www.reprap.or= g) I happen to got started on the Arduino as well. There will be growing support for it in AVR-Ada. (not in the short term) > HOWEVER I can't find ANY tutorial on putting these (AVR Ada and Arduino) > together. > > It can't be too hard. > No, it isn't hard. But still, someone has to do it. > And it looks like an ideal match. > > But ... no, I haven't tried it either. > > One piece of good news is that Ada interfaces to C fairly easily. Assumin= g that > works in the AVR-Ada compiler (can anyone confirm that?) you can use any = C > libraries (e.g. to talk to peripherals) on a "fit and forget" basis, from= Ada. > Accessing C functions from Ada works well with AVR-Ada. If you need small code you cannot profit from inlining, however. It might be useful if you want to access complete libraries, e.g. a TCP/IP stack. But then quite a number of peripherals are already directly available in Ada (e.g. 1-wire, I2C, UART, LCD, EEPROM, timers) R