On gen 14 22:30, Rocky Hotas wrote:
>
> I never used ioctl(2) and maybe it's not immediate to integrate it with
> gpio(4). If you have some piece of code performing even a trivial
> operation like turning ON a pin, and you are OK with sharing it, it
> would be welcome.
It's easier than I
Thanks to all for your very useful hints and suggestions.
On gen 14 12:12, Greg Troxel wrote:
>
> Benny Siegert writes:
>
> > NetBSD uses the gpio(4) device to talk to the GPIO pins:
> > http://man.netbsd.org/gpio.4
> >
> It is really straightforward in C. I wrote a program to watch a pin and
Benny Siegert writes:
> On Thu, Jan 14, 2021 at 3:19 PM Rocky Hotas wrote:
>> As an alternative, are there some C libraries available for NetBSD, to
>> manage the GPIO pins?
>
> NetBSD uses the gpio(4) device to talk to the GPIO pins:
> http://man.netbsd.org/gpio.4
>
> So your program opens
On 14 Jan 2021, at 15:22, Benny Siegert wrote:
On Thu, Jan 14, 2021 at 3:19 PM Rocky Hotas
wrote:
As an alternative, are there some C libraries available for NetBSD,
to
manage the GPIO pins?
NetBSD uses the gpio(4) device to talk to the GPIO pins:
http://man.netbsd.org/gpio.4
So your
On Thu, Jan 14, 2021 at 3:19 PM Rocky Hotas wrote:
> As an alternative, are there some C libraries available for NetBSD, to
> manage the GPIO pins?
NetBSD uses the gpio(4) device to talk to the GPIO pins:
http://man.netbsd.org/gpio.4
So your program opens /dev/gpio and uses ioctl to do things.
Hello!
I successfully installed NetBSD 9.1 evbarm (arm64.img) on a Raspberry Pi
3 B+. In the Raspberry documentation, several example regarding the
handling of GPIO pins are available as Python programs:
https://www.raspberrypi.org/documentation/usage/gpio/python/README.md
They use a module