Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: SNNAk3 on November 25, 2013, 08:22:29 AM

Title: A20 - UEXT2 pins used as GPIO
Post by: SNNAk3 on November 25, 2013, 08:22:29 AM
Good morning gentlemen,

I am trying to develop a serial protocol but unfortunately I am facing problems in controlling UEXT2 - PIN 10 (SPI1-CS0) as a GPIO in order to enable/disable transmission. Programming is done in Python and I cannot assign the corresponding PIN.
If you have any idea please reply.
Thanks in advance
Title: Re: A20 - UEXT2 pins used as GPIO
Post by: Mouchon on November 25, 2013, 08:48:07 PM
Hi,Normaly it should be possible using pya20 but:

- you need to modify the gpio_lib.h and c file to add PIN definition.
- you should not use the spi kernel module and if you want to use the i2c pin, you should not use the i2c kernel modules. You can disable usage of it by changing the fex file.

So this is not trivial.