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!feeder.eternal-september.org!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!85.12.16.68.MISMATCH!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.am4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Fri, 06 Jul 2018 21:30:50 -0500 From: Dennis Lee Bieber Newsgroups: comp.lang.ada Subject: Re: GNAT/Ada on Raspberry Pi 3 Date: Fri, 06 Jul 2018 22:30:52 -0400 Organization: IISS Elusive Unicorn Message-ID: References: <39e66beb-921e-492c-b24f-0d9b281edc65@googlegroups.com> User-Agent: ForteAgent/8.00.32.1272 X-No-Archive: YES MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-U0BDt882CeiY960/yPZhFkKXijJJvc7+hY9T8VVYBuIyVCo/VBUfgkScULUidcJZoUkbiV0w6osW3OJ!uf/iNjQQawETDUT1GAaRPsC+SMsnXavLvwJMKS6gz0UWwuce0ydFK4taYsLQ3pANK1oa850i X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2132 X-Received-Bytes: 2343 X-Received-Body-CRC: 646834455 Xref: reader02.eternal-september.org comp.lang.ada:53712 Date: 2018-07-06T22:30:52-04:00 List-Id: On Fri, 6 Jul 2018 14:15:42 -0700 (PDT), "dontspam@dontspam.no" declaimed the following: > >From Python it is very convenient to operate the GPIOs but I haven't found something for Ada. Does it exists some package/library that can do this from Ada? It is not very important if it requires a different distro. > The basic GPIO access method is via the "sysfs" http://www.auctoris.co.uk/2012/07/19/gpio-with-sysfs-on-a-raspberry-pi/ http://www.auctoris.co.uk/2012/08/23/gpio-with-sysfs-on-raspberry-pi-part-2/ (Part 2 is the C language example -- you would map the I/O calls [fopen, fwrite, fclose, etc.] to Ada I/O [probably textio]) The Python library /might/ incorporate logic to map to the actual hardware registers -- though that likely requires root privileges, whereas sysfs typically just requires the user to be a member of the GPIO (as I recall) group. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/