From: rolf.ebert_nospam_@gmx.net
Subject: Re: Ada as a first language
Date: Mon, 23 Mar 2009 09:59:15 -0700 (PDT)
Date: 2009-03-23T09:59:15-07:00 [thread overview]
Message-ID: <75c2748d-353d-427b-8b74-7f9d8da75601@p11g2000yqe.googlegroups.com> (raw)
In-Reply-To: hhics4h0pagtf9gcc6n9bsdfh0i64atb65@4ax.com
> 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 motors
> (or BLDC or induction motors, depending how serious you are!)
> Of all the small embedded controllers, only one family (the Atmel AVR) has an
> Ada compiler targetting it. (google AVR Ada)
>
I had used AVR-Ada on the Asuro, a very cheap (<40€) toy robot (http://
www.arexx.com/arexx.php?cmd=goto&cparam=p_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.org)
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. Assuming 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
next prev parent reply other threads:[~2009-03-23 16:59 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-22 2:26 Ada as a first language Chris
2009-03-22 10:36 ` mockturtle
2009-03-22 14:44 ` Brian Drummond
2009-03-23 11:03 ` Peter C. Chapin
2009-03-23 13:29 ` Brian Drummond
2009-03-25 10:51 ` Peter C. Chapin
2009-03-23 16:59 ` rolf.ebert_nospam_ [this message]
2009-03-24 19:22 ` Tim Rowe
2009-04-04 1:42 ` Brian Gaffney
2009-04-07 9:50 ` Alex R. Mosteo
2009-03-22 15:21 ` Gary Scott
2009-03-23 8:28 ` Brian
2009-03-23 9:05 ` Jacob Sparre Andersen
2009-03-23 22:02 ` Brian
2009-03-24 1:41 ` Gautier
2009-03-24 5:56 ` Jacob Sparre Andersen
2009-03-24 22:30 ` Brian
2009-03-25 9:41 ` rmoldskr+usenet
2009-03-25 22:27 ` Brian
2009-03-25 17:58 ` John McCormick
2009-03-25 23:20 ` Brian
2009-03-23 12:08 ` Chris
2009-03-25 21:10 ` John McCormick
2009-04-11 16:40 ` Mike Silva
2009-03-23 23:05 ` jpwoodruff
2009-03-25 0:16 ` Martin
2009-03-25 15:54 ` John McCormick
-- strict thread matches above, loose matches on Subject: below --
1997-07-03 0:00 Ada as a First Language RC
1997-07-03 0:00 ` Michael Feldman
1997-07-06 0:00 ` Alan Brain
1997-07-06 0:00 ` Robert Dewar
1997-07-16 0:00 ` Eric James DeArment
1997-07-07 0:00 ` Shmuel (Seymour J.) Metz
1992-12-29 15:40 agate!dog.ee.lbl.gov!hellgate.utah.edu!fcom.cc.utah.edu!vx9000.weber.edu!
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox