Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: newmiracle on October 27, 2013, 03:12:29 AM

Title: GPIO and MIDI Performance in linux
Post by: newmiracle on October 27, 2013, 03:12:29 AM
Hi,

I'm interested in buying an A20. The amount of GPIOs makes it perfect for a project I'm trying to realize. I would be using them for input of MIDI messages, output of LEDs, maybe some other ideas..

Linux is going to be necessary for what I am thinking. I wanted to know how GPIO support was for Linux implementations. How fast is it? Is it significantly more difficult than Android? Is there a preferred distro (ie; does the new Ubutntu image handle it better than the standard Debian)? Any quirks, problems, or issues I should be aware of?

Then also, the same questions for MIDI implementation and performance.

Any experiences with doing things like this?

Thanks for any input you may have.
Title: Re: GPIO and MIDI Performance in linux
Post by: Tom on October 27, 2013, 04:43:22 PM
Hi,

If you want to use GPIO, you should consider, that there is no interrupt driven gpios on the a20 at the moment...
Ask XFer here in the forum about midi, he has a running implementation.

Good luck
Title: Re: GPIO and MIDI Performance in linux
Post by: newmiracle on October 28, 2013, 03:56:24 AM
I'm not entirely clear on all of the terminology for embedded/EE stuff. The lack of interrupt driven GPIOs would mean that I would have to be constantly "polling" or "scanning" the inputs programmatically, correct?
Title: Re: GPIO and MIDI Performance in linux
Post by: Tom on October 28, 2013, 03:16:08 PM
Quote from: newmiracle on October 28, 2013, 03:56:24 AM
I'm not entirely clear on all of the terminology for embedded/EE stuff. The lack of interrupt driven GPIOs would mean that I would have to be constantly "polling" or "scanning" the inputs programmatically, correct?

Yes, you would need to do that. Problem is, that this is a performance killer or you have to live with a delay (and i don't think you want that for midi).
Hope one day the a20 will receive better support.