comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Raspberry Pi, Real-Time and Ada
Date: Thu, 6 Feb 2014 09:44:03 +0100
Date: 2014-02-06T09:44:03+01:00	[thread overview]
Message-ID: <1lg4oeejbp1e5$.h5mrspzez74h$.dlg@40tude.net> (raw)
In-Reply-To: 858uto3cj3.fsf@stephe-leake.org

On Thu, 06 Feb 2014 01:50:40 -0600, Stephen Leake wrote:

> "Rego, P." <pvrego@gmail.com> writes:
> 
>> Is it possible to run Real-Time applications on Raspberry Pi
>> (specially in Ada)? Yesterday I began to read the RPi documentation,
>> and discovered that several (actually all that I found) I/O libraries
>> available to access GPIOs (mostly written in C and Python) are not
>> Real-Time, and even the Raspbian Debian distribution is not intended
>> to run RT applications, so it's not built for it.
> 
> You seem to be using "Real-Time" in some special technical way, as
> opposed to the general definition "meeting the application timing
> deadlines".
> 
> Using the general definition, if your application has deadlines with
> tolerances on the order of 0.1 seconds, then the answer is clearly
> "yes".
> 
> For tighter tolerances, you'd have to measure the actual performance,
> and possibly use an enhanced kernel as you discussed.

Absolutely.

Last time I checked there were ARM GPIO drivers for Linux, so I see no
problem with RT except for possibly poor performance of the GPIO.

It really depends rather on the hardware than the OS. In particular on how
many AD/DA converters are physically present (to be shared between analogue
inputs).

Note that if you have, say, one AD multiplexed to four inputs, then no
matter how RT your OS is, the latency between 1st and 4th inputs will be no
less than 4 conversion times. Taking typical values 40us * 4 = 0.8ms. Now
if inputs considered synchronous, this is also the jitter.

BTW, many boards do not even have all GPIO pins soldered. You should check
if Raspberry Pi has ones you wanted to use.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

  reply	other threads:[~2014-02-06  8:44 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-06  0:53 Raspberry Pi, Real-Time and Ada Rego, P.
2014-02-06  7:50 ` Stephen Leake
2014-02-06  8:44   ` Dmitry A. Kazakov [this message]
2014-02-06 13:16     ` Simon Clubley
2014-02-06 21:12       ` Rego, P.
2014-02-07  0:26         ` Simon Clubley
2014-02-07 11:44           ` Rego, P.
2014-02-06 21:09     ` Rego, P.
2014-02-06 21:04   ` Rego, P.
2014-02-07  8:28     ` Stephen Leake
2014-02-07 12:09       ` Rego, P.
2014-02-08  8:28         ` Stephen Leake
2014-02-08  9:06           ` Dmitry A. Kazakov
2014-02-10 18:18           ` Rego, P.
2014-02-13 15:23             ` Stephen Leake
2014-02-07  8:42     ` Dmitry A. Kazakov
2014-02-07 12:34       ` Rego, P.
2014-02-07 12:59         ` Dmitry A. Kazakov
2014-02-07 13:25           ` Rego, P.
2014-02-07 23:11       ` Rego, P.
2014-02-08  8:56         ` Dmitry A. Kazakov
2014-02-10 18:29           ` Rego, P.
2014-02-10 20:38             ` 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