Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

How to use GPIOs

350 bytes removed, 15:32, 9 January 2012
no edit summary
= Install binaries via IGEP<br> =
Log with root user to install binaries.
=== Install module ===
Check that user-gpio-drv.ko is currently loaded with the following command:
<pre>lsmod</pre>
The result will be similar than this:<pre>root@localhost:~/svn.hylands.org/linux/gpio/module# lsmod
Module Size Used by
user_gpio_drv 1639 0
rtc_core 11187 1 rtc_twl
twl4030_keypad 2970 0
</pre>
The module is loaded until system halt.
libc.so.6 =&gt; /lib/libc.so.6 (0x401a0000)
/lib/ld-linux.so.3 (0x4008a000)
</pre>
Now you can execute example program gpio.
 
=== Execute app<br> ===
 
Go to:$/svn.hylands.org/linux/gpio/app, gpio will be found here.
 
To make sure that libgpio.so can be founded as a dependency of gpio program use the following command:
<pre> ldd gpio
</pre>
See if libgpio.so is found it. If you execute program in bash without linking library dependencies, bash give you a error message.
= Testing driver =
4,199
edits