Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => iMX233 => Topic started by: omav on December 06, 2012, 03:14:16 PM

Title: Cleaner way to read interrupts from GPIO?
Post by: omav on December 06, 2012, 03:14:16 PM
Hey,

We are working on a robot with a few students, using the OlinuXinO Maxi as our heart. On our motors we have encoders to measure the RPM of the wheels, so we can reasonably accurately calculate the distance, however, we can't really seem to find a nice and clean way to read the interrupts from the GPIO ports that the encoders are hooked up to.

we can read it perfectly with:
/proc/interrupts | grep gpio

But is there a more clean way to do this? preferably in C++?

Thanks!
Title: Re: Cleaner way to read interrupts from GPIO?
Post by: jeroends on December 06, 2012, 07:39:01 PM
read https://www.olimex.com/forum/index.php?topic=429.msg1625#msg1625 (https://www.olimex.com/forum/index.php?topic=429.msg1625#msg1625)