1 Scope of Document This document describes how to export gpio interface under gpio-export driver 2 Requiremen 2.1 Function Requirement We can pull up and pull down gpio under /sys/class/gpio dir 2.2 Performance Requirement NA 3 …
为什么有些GPIO可以在/sys/class/gpio中控制,而有些不行呢? 先来看一看普通不需要C程序而是使用脚本的控制方法(Linux普遍适用): First step is making GPIO available in Linux: " > /sys/class/gpio/export then you need to decide if it will be input or output, as we will use it as a switch so we need ou…
转自:http://blog.csdn.net/drivermonkey/article/details/20132241 1.1.References 1.2.GPIO Usage from a Linux Application 1.2.1Overview 1.2.2.Configure the kernel for GPIO support in sysfs 1.2.3.Enable GPIO access from user space 1.2.4.GPIO interrupts fro…