Is there a blocking (rather than callback) GPIO / RPIO edge detection call?
I ask because it may be quicker than my current method: the MPU6050 provides a data ready register, and also a configurable interrupt pin to notify when there's new data available. Currently my code loops reading the data ready register, sleeping for a short while (0.5ms) between reads.
I want to see if I can discard this sleep by just blocking on the interrupt pin instead, but looking at the GPIO & RPIO docs, both only offer callbacks but not a blocking call; I could use the callback method to trigger a fresh sensor read and store it for when it's next needed, but it'd be much simpler and more efficient to simply block in the read sensor code pending the interrupt.
Advice appreciated.
Thanks,
Andy