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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a37:e408:: with SMTP id y8mr23876768qkf.39.1580238671011; Tue, 28 Jan 2020 11:11:11 -0800 (PST) X-Received: by 2002:a05:6808:b1c:: with SMTP id s28mr3946291oij.2.1580238670561; Tue, 28 Jan 2020 11:11:10 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!g89no8282960qtd.0!news-out.google.com!w29ni830qtc.0!nntp.google.com!g89no8282951qtd.0!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 28 Jan 2020 11:11:10 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=199.204.203.152; posting-account=XGCYegoAAADY19DGgU_zTfTSbVlfUJ_a NNTP-Posting-Host: 199.204.203.152 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: GNATCOLL-Mmap example From: Philip Munts Injection-Date: Tue, 28 Jan 2020 19:11:10 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:57975 Date: 2020-01-28T11:11:10-08:00 List-Id: Or better yet, use my libsimpleio: https://github.com/pmunts/libsimpleio The sysfs API for GPIO is now deprecated. Phil On Tuesday, January 28, 2020 at 12:25:25 AM UTC-8, Dmitry A. Kazakov wrote: > On 2020-01-25 22:52, Bob Goddard wrote: > > > I need to map the RPi's GPIO memory addresses so that I can do what I need to do. > > See files under: > > /sys/class/gpio > > You can use standard Ada I/O to read and set GPIO pins. E.g. > > /sys/class/gpio/gpio/XXX/value > > -- > Regards, > Dmitry A. Kazakov > http://www.dmitry-kazakov.de