SPI over GPIO

Alexandru Caramida alexandruc1723 at yahoo.com
Fri Mar 11 05:34:55 EST 2011


Hello everyone,

I am trying to emulate an SPI interface using four GPIO pins. This is a desktop 
computer with linux 2.6.28 kernel.

The problem is I don't know if the pins are working. I read that if I have the 
sysfs support for the kernel (which I do :D) all I have to do
is enable the respectiv pin using 

echo N > /sys/class/gpio/export

And I would get a gpioN directory 

But I always get: "write error : invalid argument."

Is there some other option i need to enable first? The people I am working with 
assured me that these pins are not used by any other device and they haven't 
found anything to suggest that they were turned off manualy.

Please help,


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110311/feb7773d/attachment.html 


More information about the Kernelnewbies mailing list