Hello, I'm new here, but not so new to the Pi.
I'm trying to find a faster way to switch the GPIO pins on and off than what mmap can provide. For something that's supposed to give me direct control over the registers that set the GPIO values, it seems rather slow. 22-25 MHz vs the 1.0 GHz processor clock. That is 40-46 clock cycles where the GPIO pins are not being changed at all. I'm hoping to be able to get than down to 1 or 2 clock cycles, but when I try to create a pointer directly to the correct registers, I get a segmentation fault. Is there any way to achieve what I'm trying to achieve? mmap() just hides the fact that there are files being written to and I believe that's the reason the GPIO pins are so slow.