4

I need fast (>10 Khz) userland access to the GPIO pins.

Are there any options available? /sys/class/gpio based GPIO is too slow (I've tested it), and having to have your application run as root is violently stupid. I've looked at pigpio, but that has at minimum a client running as root (and then you get all the latency of having a socket connection)

It seems like there should be a ioctl-like interface to the GPIO. Is anyone working on such a thing? (it'll almost certainly be a kernel module of some sort).

Fake Name
  • 141
  • 2

1 Answers1

2

You can easily get up to 22kHz (I can't remember the source) using the Broadcom C library, in the benchmark results I looked at it was easily the fastest.

Also, in my opinion applications which access GPIO are even more suited to needing root permissions than others, since GPIO can access physical devices rather then just data on a drive.