Changes

Jump to: navigation, search

Fitlet GPIO SDK for Linux

12 bytes added, 09:03, 24 January 2016
/* Overview */
__TOC__== GPIO Overview ==* '''NOTE!''' Not supported in mainline Linux kernel. * [[Fitlet:_Linux:_Kernel | Linux Kernel for Fitlet]] should must be installed to make this feature work
* GPIO interface on fitlet consists of 9 GPIOs provided by AMD FCH (Fusion Controller Hub)
* The responsible kernel module is gpio_fch
| GPIO29
| 1.5V
| SocSoC
|
|-
|}
== Usage ==
* The GPIO sysfs interface allows users to manipulate any GPIO from userspace dynamically.
* A basic example of GPIO P-1 (Brown) usage (as root user):
$ modprobe fch_gpiogpio_fch
$ echo 89 > /sys/class/gpio/export
$ echo out > /sys/class/gpio/gpio89/direction
$ echo 89 > /sys/class/gpio/unexport
== Documentation ==
* The GPIO framework and GPIO sysfs interface are documented in https://www.kernel.org/doc/Documentation/gpio/gpio.txt
[[category:fitlet]]
[[category:gpio]]
1,916
edits