Thankfully the raspberry Pi RPi.GPIO is open source so I have access to the source code.
I have just tried to rewrite the R64/RP64.GPIO python wrapper using a C library i wrote that replaces python writes to /sys/class/gpio with c writes.
The best I could get was 190us SPI Clock of 5.26KHz
it is more than twice as fast but nowhere near the raspberry pi performance.
I will do some digging and see if there is a faster solution and avoid /sys/class/gpio completely.
I believe that the raspberry pi uses the linux kernel gpio.h library which I hope has been implemented on the RockPro.
watch this space!
I have just tried to rewrite the R64/RP64.GPIO python wrapper using a C library i wrote that replaces python writes to /sys/class/gpio with c writes.
The best I could get was 190us SPI Clock of 5.26KHz
it is more than twice as fast but nowhere near the raspberry pi performance.
I will do some digging and see if there is a faster solution and avoid /sys/class/gpio completely.
I believe that the raspberry pi uses the linux kernel gpio.h library which I hope has been implemented on the RockPro.
watch this space!