comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: what does your Ada + hardware look like ?
Date: Wed, 07 Oct 2015 15:21:48 +0100
Date: 2015-10-07T15:21:48+01:00	[thread overview]
Message-ID: <ly612iyd1f.fsf@pushface.org> (raw)
In-Reply-To: 4c54c2a9-050c-41ba-82ef-8bedc1eb3416@googlegroups.com

halfmaddad@gmail.com writes:

> Do you run with an OS ? I know we can run without one but then we lose
> tasking, nested subprograms and exception handling, no?

Not at all.

The pure-GPL AdaCore offering for Cortex-M{3,4,7} comes with a 'full'
version that includes exception handling (but not Ada.Containers); the
'small footprint' version doesn't have exception handling (and obviously
other features, can't recall what).

I have an RTS[1] which currently targets Cortex-M{4,3} (STM32F429I,
Arduino Due), without exception handling but wth some Containers, based
on FreeRTOS. The Arduino port has 13 board-specific files (startup and
interrupts, mainly).

All the above use Ravenscar tasking[2].

> I was wondering about using SPI with a GPIO card but I have not done
> this before. I know there are also USB-GPIO adapters.

You could do a lot worse than the RPi as a controller. I made an I2C
interface[3], particularly for the MCP23017 I/O multiplexer. I never got
round to simulating interrupts (which you'd do via /proc, I think). I
found the Pi didn't offer enough of a challenge, because it runs Debian
(Raspbian) and Ada "just works".

[1] http://sourceforge.net/projects/cortex-gnat-rts/
[2] http://www.ada-auth.org/standards/12rm/html/RM-D-13.html
[3] https://sourceforge.net/projects/raspi-i2c-ada/

  parent reply	other threads:[~2015-10-07 14:21 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-06 22:18 what does your Ada + hardware look like ? halfmaddad
2015-10-06 23:40 ` Luke A. Guest
2015-10-07  7:23 ` Dmitry A. Kazakov
2015-10-07 11:40   ` halfmaddad
2015-10-07 11:50     ` halfmaddad
2015-10-07 12:40       ` Jacob Sparre Andersen
2015-10-07 13:22       ` Dmitry A. Kazakov
2015-10-07 14:21       ` Simon Wright [this message]
2015-10-07 16:07         ` brbarkstrom
2015-10-07 17:22         ` Jeffrey R. Carter
2015-10-07 17:17       ` Luke A. Guest
2015-10-07 17:17     ` Luke A. Guest
2015-10-07 19:42 ` Tero Koskinen
2015-10-07 21:19 ` Björn Lundin
2015-10-07 23:38   ` halfmaddad
2015-10-10  1:35 ` justin%jsquirek.info
2015-10-10  8:41   ` Dmitry A. Kazakov
replies disabled

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