Changes

Jump to: navigation, search

Fitlet GPIO SDK for Linux

377 bytes added, 16:31, 26 October 2015
== fitlet GPIO SDK for Linux ==
* [http://fit-pc.com/download/fitlet/sw/fitlet-gpio-sdk-for-linux.zip fitlet GPIO SDK for Linux]
 
== Installation ==
1. * Download the custom [http://www.fit-pc2.com/download/fitlet/Linux/mint/17/linux-image-3.16.7-generic.fitlet_2015.09.27_amd64.deb kernel image ] and [http://www.fit-pc2.com/download/fitlet/Linux/mint/17/linux-headers-3.16.7-generic.fitlet_2015.09.27_amd64.deb kernel headers ''<LINK_TO_DEB_FILES_HERE>'' ] to the fitlet.
2. * Open the terminal and install the new linux-*.deb packages:
$ sudo dpkg -i /path/to/linux-*.deb
3. * Reboot the system:
$ sudo reboot -f
=== fitlet GPIO ===(based * GPIO interface on http:fitlet consists of 9 I//droid/mirror/mediawiki/index.php/CM-iGTOs provided by AMD FCH (Fusion Controller Hub)* The responsible kernel module is gpio_fch* The kernel modules uses the following pin naming convention:_Linux:_Mint#GPIO)
1. GPIO interface on fitlet consists of 9 I/Os provided by AMD FCH (Fusion Controller Hub) <br>
2. The responsible kernel module is '''gpio_fch''' <br>
3. The kernel modules uses the following pin naming convention: <br>
P-{| cellpadding="3" border="1" style="border: 1px solid rgb(85, 85, 85); border-collapse: collapse;"|+ GPIO pin naming convention on fitlet|-| GPIO name| HW source| Pin on GPIO Connector| Notes|-| GPIO89 | FCH| P-2, 1| |-| GPIO132 | FCH| P-3, 2| |-| GPIO65 | FCH| P-4, 3| |-| GPIO66 | FCH| P-5, 4| |-| GPIO29 | FCH| P-5| Vout 1.5V |-| GPIO73| FCH| P-8, GPIO73 | |-| GPIO27| FCH| P-9, GPIO27 | Vout 1.5V |-| GPIO28| FCH| P-10, GPIO28 | Vout 1.5V |-| GPIO12| FCH| P-11, GPIO12| |-|}
4. * The GPIO sysfs interface allows users to manipulate any GPIO from userspace dynamically. <br>5. * A basic example of GPIO usage (as root user): <br>
$ modprobe fch_gpio
$ echo 89 > /sys/class/gpio/unexport
6. * The source code of '''gpio_fch''' driver ''<LINK_TO_DIFF_FILE_HERE>'' <br>7[http://www. fit-pc2.com/download/fitlet/Linux/mint/17/fitlet.gpio.3.16.diff fitlet.gpio.3.16.diff]* The GPIO framework and GPIO sysfs interface are documented in [https://www.kernel.org/doc/Documentation/gpio/gpio.txt Linux Kernel Documentation <br>:: GPIO]
[[category:fitlet]]