A20 - UEXT2 pins used as GPIO

Started by SNNAk3, November 25, 2013, 08:22:29 AM

Previous topic - Next topic

SNNAk3

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

Mouchon

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.