Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

How to use GPIOs

59 bytes added, 14:15, 11 January 2012
no edit summary
This How-To is meant to be a starting point for people to learn use GPIOs for IGEP v2 devices as quickly and easily as possible. For this how-to i used [http://releases.linaro.org/platform/linaro-m/headless/final/linaro-m-headless-tar-20101108-2.tar.gz Linaro Headless] with [[Linux Kernel 2.6.35.y|Kernel 2.6.35.y]], Ubuntu 10.04 with Linaro Toolchain, IGEP v2 RC5 and GPIO driver ('''NOTE: Upload source code''').
There are more ways to use GPIOs in IGEP v2, but this one is very simple.<br>
= Feedback and Contributing =
Finally compile GPIO driver, go to main Makefile path and compile all source code using make command.
Send binaries created from Host to Igep v2. <br>
= Install binaries via IGEP<br> =
twl4030_keypad 2970 0
</pre>
The module is loaded until system halt.
=== Install shared library ===
/lib/ld-linux.so.3 (0x4008a000)
</pre>
The shared library is linked until system halt. Now you can execute gpio example program.
= Testing driver =
Link GPIO_136 and GPIO_137 with a wire, these pins are located in J990 connector with numbers 7 and 9. I use the next connector to join them:
[[Image:Connector used readwrite test.JPG|left|500x300px300x200px]][[Image:All connected readwrite test.JPG|right|500x300px300x200px]]<br>            
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
Now type next code:
4,199
edits