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=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable 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!.POSTED!not-for-mail From: Simon Clubley Newsgroups: comp.lang.ada Subject: Re: Raspberry Pi, Real-Time and Ada Date: Fri, 7 Feb 2014 00:26:07 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <5e8fad3a-94e6-4517-af54-db8b4146803e@googlegroups.com> <858uto3cj3.fsf@stephe-leake.org> <1lg4oeejbp1e5$.h5mrspzez74h$.dlg@40tude.net> <05af11ec-d8bf-49e0-9d16-67afbba7423e@googlegroups.com> Injection-Date: Fri, 7 Feb 2014 00:26:07 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="e458ff8b81bc0c159989eb0e36c6e372"; logging-data="25510"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19YVZDrXycD/smIXxErsCuOiTyvvwTg4cc=" User-Agent: slrn/0.9.8.1 (VMS/Multinet) Cancel-Lock: sha1:0EDbZHubVrPycC574ZQ9dAnBEbc= Xref: news.eternal-september.org comp.lang.ada:18414 Date: 2014-02-07T00:26:07+00:00 List-Id: On 2014-02-06, Rego, P. wrote: > Hello Simon, > On Thursday, February 6, 2014 10:16:40 AM UTC-3, Simon Clubley wrote: >> I've seen a number of reports about how much overhead there is within >> Linux when trying to drive the GPIO lines on the Raspberry Pi, so I can >> easily believe that it _is_ a OS level issue. > Maybe these reports are available on the internet? It would be very good to take a look on them if possible. > > Thanks. I went back and had a closer look at this. (I've never actually used Linux to drive GPIO lines as I either use a dedicated RTOS or just write the code for bare metal mode). It appears there are two ways of accessing the GPIO lines on the Raspberry Pi under Linux: either via the /sys/class/gpio interface or directly via memory mapped I/O. It looks like all the types of performance comments I remember come from the first access method and that you can get far better access times using the second method. Which method are you using ? Simon. -- Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP Microsoft: Bringing you 1980s technology to a 21st century world