comp.lang.ada
 help / color / mirror / Atom feed
From: philip.munts@gmail.com
Subject: Re: Interfacing Ada With Full Runtime Directly to Electronic Chips
Date: Mon, 2 Jan 2017 23:55:50 -0800 (PST)
Date: 2017-01-02T23:55:50-08:00	[thread overview]
Message-ID: <d57d3454-bf18-4718-af32-48c9764508cc@googlegroups.com> (raw)
In-Reply-To: <9ca07b79-db85-4d4a-b082-61cd75fcc1c8@googlegroups.com>

On Monday, January 2, 2017 at 3:42:06 AM UTC+1, pat...@spellingbeewinnars.org wrote:
> Hi Everyone
> 
> Happy New Year!
> 
> Ada-AVR is a neat project and I am not knocking it. It doesn't have tasking support yet but this is of course a huge job.
> 
> If I want to connect any sort of computer running Linux directly to a circuit using "full Ada" with tasking support what are my options?
> 
> By circuit, I mean a variety of electronic components and in this case with no microcontroller, an A/D chip is a simple example.
> 
> I am thinking that single board computers like BeagleBone are my best bet, they have plenty of GPIO lines.
> 
> Has anyone interfaced directly with chips via SPI or IC2 via a GPIO PCI card or GPIO-USB adapter ?
> 
> Is there any other options?
> 
> Thanks-Patrick

I suggest my own Linux Simple I/O Library (http://git.munts.com/libsimpleio).  It provides Pascal calling sequence wrappers around the Linux system calls for I2C, SPI, UART, and raw HID devices and includes some shim packages for GNAT.

I have tested it with both native and cross compilers on the BeagleBones Black and Green and Raspberry Pi 2 and 3.  I use it mostly with the Raspberry Pi 2 cross toolchain (which also works fine for the BeagleBone family) from AdaCore and targeted to my own embedded Linux distribution called MuntsOS (http://git.munts.com/arm-linux-mcu).

I also have a collection of packages and example programs for various Mikroelektronika click boards and Raspberry Pi hats that are not published yet.  I am in the middle of writing a paper about this very topic.

Phil

      parent reply	other threads:[~2017-01-03  7:55 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-02  2:42 Interfacing Ada With Full Runtime Directly to Electronic Chips patrick
2017-01-02  9:14 ` Dmitry A. Kazakov
2017-01-02 13:28   ` patrick
2017-01-02 17:19     ` Dmitry A. Kazakov
2017-01-03  2:41       ` patrick
2017-01-03  5:33     ` Shark8
2017-01-03 10:34       ` Dmitry A. Kazakov
2017-01-03 18:02         ` Shark8
2017-01-03 20:34           ` Dmitry A. Kazakov
2017-01-03 20:50             ` Shark8
2017-01-03 21:41               ` Dmitry A. Kazakov
2017-01-02 14:02 ` Brian Drummond
2017-01-02 15:02 ` Dennis Lee Bieber
2017-01-02 16:25 ` Simon Wright
2017-01-02 16:46   ` patrick
2017-01-04 19:29   ` antispam
2017-01-04 20:51     ` Simon Wright
2017-01-04 22:05       ` antispam
2017-01-03  7:55 ` philip.munts [this message]
replies disabled

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