Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A13 => Topic started by: lionel_c on October 12, 2013, 09:23:29 PM

Title: A13 GPIO interrupt source
Post by: lionel_c on October 12, 2013, 09:23:29 PM
hello !
I need some help about the configuration of my GPIO's  as interrupt source.( A13 olinuxino)
I work on Debian using language C.
Usually I work with microchip PIC  but I try to understand how does it work with embebbed linux.

I just found  a tutorial using cat and echo to read and write gpios status but i need more information about interrupt working.

thank you
Title: Re: A13 GPIO interrupt source
Post by: lionel_c on October 14, 2013, 04:56:36 PM
someone to give me methodology or a tutorial about that? :-\
Title: Re: A13 GPIO interrupt source
Post by: JohnS on October 14, 2013, 06:46:31 PM
The only doc I know for these chips is all on the website...

There's not much if anything else (for these boards / chips).

John
Title: Re: A13 GPIO interrupt source
Post by: lionel_c on October 15, 2013, 01:14:05 PM
everyone who want read gpio's port use a while loop ???
Title: Re: A13 GPIO interrupt source
Post by: vinifr on November 17, 2013, 05:04:30 PM
You can use that code: https://www.dropbox.com/s/3svplzr1nxg0pcu/gpio.c (https://www.dropbox.com/s/3svplzr1nxg0pcu/gpio.c)

For interrupts search 'edge gpio linux'. You can use gpio_set_edge()  ;)
Title: Re: A13 GPIO interrupt source
Post by: lionel_c on November 24, 2013, 03:11:01 PM
thank you vinifr :D