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.6 required=5.0 tests=BAYES_00,DATE_IN_PAST_24_48 autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,4f9a2b7c164500f2 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.14.205.194 with SMTP id j42mr972095eeo.2.1355386700440; Thu, 13 Dec 2012 00:18:20 -0800 (PST) Path: l12ni77986wiv.1!nntp.google.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.81.MISMATCH!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newspeer1.nac.net!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.snarked.org!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Ada on Raspberry Pi: new article in MagPi issue 8 Date: Tue, 11 Dec 2012 12:34:23 +0000 Organization: A noiseless patient Spider Message-ID: References: <8ecc163c-7772-4528-a0d0-eb1ecfd67d98@googlegroups.com> Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="2a5d6fb105b6730bdbc5ec48c6e18f59"; logging-data="13254"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+EX4Ye21EXFzrZYBTnFUouCvYyo20xXOU=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (darwin) Cancel-Lock: sha1:TYqdlI1KRUZbFNonm+4Gn/qEKqc= sha1:75DnVen6S1mKGDt4cJa4LEwh0Bo= Content-Type: text/plain Date: 2012-12-11T12:34:23+00:00 List-Id: Simon Wright writes: > The "interrupt" changes will be based on WiringPi at > https://projects.drogon.net/raspberry-pi/wiringpi/ and will effectively > provide an Ada interface to GPIO - I'm trying to avoid too much direct > work with GPIO in case I let the magic smoke out. I see I've already got some early code up there: [1]. The reason for going with an interface like wiringPi, by the way, is that direct access to RPi GPIO requires root privilege. wiringPi provides a setuid-root program gpio; it lets you - for example - access the value on GPIO pin x at /sys/class/gpio/gpiox/value. [1] https://sourceforge.net/u/simonjwright/wiringpi-ada/code