05-05-2016, 11:54 AM
If you look at that thread, you will see that python pyA20 library is now working with an easy fix.
There are some others too, such RPi.GPIO. But since you wish to use plain C, you can still look at the code of pyA20, the GPIO accesses are done via memory-map.
But I doubt in any cases that you will be statisfied with the speed, because the range of 10Mhz to 100Mhz is almost impossible, at least in user-space, since the kernel still needs seom CPU cycles.
What do you wish to achieve ? Maybe an hardware solution can fit better your needs...
There are some others too, such RPi.GPIO. But since you wish to use plain C, you can still look at the code of pyA20, the GPIO accesses are done via memory-map.
But I doubt in any cases that you will be statisfied with the speed, because the range of 10Mhz to 100Mhz is almost impossible, at least in user-space, since the kernel still needs seom CPU cycles.
What do you wish to achieve ? Maybe an hardware solution can fit better your needs...