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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Raspberry Pi, Real-Time and Ada Date: Thu, 6 Feb 2014 09:44:03 +0100 Organization: cbb software GmbH Message-ID: <1lg4oeejbp1e5$.h5mrspzez74h$.dlg@40tude.net> References: <5e8fad3a-94e6-4517-af54-db8b4146803e@googlegroups.com> <858uto3cj3.fsf@stephe-leake.org> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: I5Na6+WsEzT8WoegI0VZTA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:18397 Date: 2014-02-06T09:44:03+01:00 List-Id: On Thu, 06 Feb 2014 01:50:40 -0600, Stephen Leake wrote: > "Rego, P." 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