Page 1 of 1

Re: GPIO development samples

Posted: Fri Sep 02, 2011 10:21 am
by kefir
Hi,

Can anyone give me a pointer to documentation/samples showing how to code for the GPIO-pins on the Raspberry Pi? I can imagine a few cool projects where I'd use the GPIO, but I've never done that sort of development in Linux before.

Re: GPIO development samples

Posted: Fri Sep 02, 2011 10:40 am
by jamesh
I'm afraid there isn't anything available yet about the RaspberryPi specifically.

Re: GPIO development samples

Posted: Fri Sep 02, 2011 10:49 am
by eggn1n3
Check out this URL: http://forum.sparkfun.com/view.....hp?p=52483. It shows an example of the memory-mapped-IO for ARM processors. As this is very platform depended, the R-Pi folks need to publish some details later....

Re: GPIO development samples

Posted: Fri Sep 02, 2011 11:59 am
by kefir
Thanks eggn1n3, the mmio example looks reasonable enough, provided all the magic numbers are documented somewhere.

Re: GPIO development samples

Posted: Fri Sep 02, 2011 2:17 pm
by ukscone
[Edit: Just been informed that the link below is not valid for teh ARM1176JZF-S core in the R-Pi -- oh well i'll keep looking]

I haven't yet been able to find a table in any technical doc for the ARM1176JZF-S but I found this and it looks like it's near enough.

http://infocenter.arm.com/help.....ihjaf.html

although it looks like in the ARM1176JZF-S the base address can be remapped so it might be different in the final device