|
|
|
Re: How to access the GPIO pins in AT91SAM9260-EK under Linux | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
|
Felipe Balbi wrote:> On Mon, Dec 22, 2008 at 02:54:58PM +0100, ext Erik Mouw wrote:> >> On Sun, 21 Dec 2008 12:15:43 +0800 "弓雷" <freshpassport@xxxxxxxxx>>> wrote:>>>> >>> I think you shuld in kernel space to access GPIO pins, such as a kernel module.>>> >> Oh, I agree that in most cases you would need a proper GPIO module. But>> if you only have a single GPIO pin user in userland (i.e.: a single>> process) you could access the pins from userland as well.>> >> There's gpiolib under drivers/gpio and that's the standard way to access> gpios on kernel space. If you wanna access it through userland, you> Here is an alternative solution to have raw GPIOs config.
http://svn.openmoko.org/developers/werner/poke/
Matt> could write a simple module using gpiolib to export the control of a> gpio via sysfs entry.>>
-------------------------------------------------------------------List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-armFAQ: http://www.arm.linux.org.uk/mailinglists/faq.phpEtiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
[Linux ARM] [Linux ARM MSM] [Linux ARM Kernel] [Fedora ARM] [IETF Annouce] [Security] [Bugtraq] [Linux] [Linux OMAP] [Linux MIPS] [ECOS] [Asterisk Internet PBX] [Linux API]
![]() |
![]() |