For a small project, I needed to be able to control some GPIO with Linux. I
had some experience with the raspberry pi, but I wanted something more open
(hardware wise). I tried the beaglebone black wireless, and was pleased with the
experience. I had a minor issue, is that accessing GPIO with sysfs was slow
(like 3Khz), and I wanted much faster GPIO.
I toyed a bit with it, and found a lower level solution I explain in this post. It's in rust because I am learning the language, but it's low level, so you should be able to do it in C.