Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5216

C/C++ • Re: gpiod locks pins and can't have access with another app.

$
0
0
Not having output persistence makes 'libgpiod' not fit for purpose as I and others see it, and that is why I have such a negative view of 'libgpiod'.
Actually, libgpiod has nothing to do with the persistence issue. The choice as to what happens when a line is released by libgpiod is up to the kernel device driver. Recently the Pi driver was changed to do just that. So libgpiod now works as you want on the Pi. That has been in Pi kernels since late bullseye. Not sure it works for RPi5 since that must have a different driver, but again that is up to the Pi kernel devs, not libgpiod.

Wrt the access issue, if you want other processes to be able to access it then release it.

Statistics: Posted by warthog618 — Sun Jan 07, 2024 12:32 am



Viewing all articles
Browse latest Browse all 5216

Trending Articles