From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Ada / Automation fellows
Date: Sun, 29 Mar 2015 11:52:06 +0200
Date: 2015-03-29T11:52:06+02:00 [thread overview]
Message-ID: <8w3c2aqts200.1k223teddlba0.dlg@40tude.net> (raw)
In-Reply-To: mf8eli$b6r$1@dont-email.me
On Sun, 29 Mar 2015 10:56:07 +0200, Björn Lundin wrote:
> On 2015-03-28 15:55, Dmitry A. Kazakov wrote:
>
>>>>
>>>> A short question. How do you access GPIO on Raspberry Pi? Over the text
>>>> file devices?
>>>>
>>>> We access GPIO, analogue inputs and PWM output through text files. It looks
>>>> crazy to me. Is there a better way?
>
> I forgot to mention 'Mastering the Raspberry Pi'
> by Warren Gay.
> http://www.apress.com/9781484201824
>
> He describes the Pi in *great* detail.
> And there is a chapter (12) on GPIO where he explores
>
> * GPIO via sysfs
> * GPIO events/interupts. Also via sysfs - get a notification/callback
> when an IO-port changes state
>
> and
> * GPIO via memory mapped file
>
>
> a short c-module to map the GPIO part of memory and then
> * set_bit
> * get_bit
>
> functions to manipulate the IO-ports without sysfs
Thanks. We considered most of this, I believe, and decided for device tree.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2015-03-29 9:52 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-26 10:37 Ada / Automation fellows slos
2015-03-26 15:11 ` Dmitry A. Kazakov
2015-03-27 21:19 ` slos
2015-03-28 9:05 ` Dmitry A. Kazakov
2015-03-28 22:36 ` slos
2015-03-29 9:30 ` Dmitry A. Kazakov
2015-03-29 2:06 ` David Botton
2015-03-29 9:44 ` Dmitry A. Kazakov
2015-03-29 14:37 ` David Botton
2015-03-26 21:05 ` Randy Brukardt
2015-03-27 21:46 ` slos
2015-03-27 15:34 ` Björn Lundin
2015-03-27 21:59 ` slos
2015-03-28 9:20 ` Dmitry A. Kazakov
2015-03-28 11:52 ` Simon Wright
2015-03-28 14:53 ` Dmitry A. Kazakov
2015-03-28 12:03 ` Björn Lundin
2015-03-28 14:55 ` Dmitry A. Kazakov
2015-03-29 8:56 ` Björn Lundin
2015-03-29 9:52 ` Dmitry A. Kazakov [this message]
2015-03-28 22:05 ` slos
2015-03-29 9:49 ` Dmitry A. Kazakov
2015-03-28 11:43 ` Björn Lundin
2015-03-28 22:47 ` slos
2015-03-29 8:57 ` Björn Lundin
2015-03-30 21:57 ` lgrphotography84
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox