Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: jonnydedwards on November 10, 2014, 09:06:42 PM

Title: GPIO interrupts
Post by: jonnydedwards on November 10, 2014, 09:06:42 PM
Hi Folks,
just a quick question, is it possible to use interrupt driven gpio's rather than polling?
thanks in advance,
Jonny Edwards
Title: Re: GPIO interrupts
Post by: Gerrit on November 11, 2014, 12:49:00 AM
https://www.olimex.com/forum/index.php?topic=3836
Title: Re: GPIO interrupts
Post by: kantal on November 11, 2014, 09:57:55 AM
Python example on https://github.com/kantal/PythonGPIO
See the poll_in_python.py, which uses the C poll() call.
In contrary the name, your code will not poll, this is done by the kernel.