So, how to set rising edge detection in pruio-lib without the following
while-loop:
pruIo *io = pruio_new(PRUIO_DEF_ACTIVE, 0x98, 0, 1);
int gpiovalue;
while(1) {
gpiovalue = pruio_gpio_Value(io, PIN);
if (gpiovalue == 1) {
///capturedatacode...
}
I have a device and it sends simple binary data which I have to capture.
But the above code uses CPU a lot (is it normal for PRU if it causes 40%
CPU usage, I thought it is independent from the main CPU?). Any help is
appreciated.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.