Re: How to access the GPIO pins in AT91SAM9260-EK under Linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


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 accessgpios on kernel space. If you wanna access it through userland, youcould write a simple module using gpiolib to export the control of agpio via sysfs entry.
-- balbi
-------------------------------------------------------------------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]

Add to Google Follow linuxarm on Twitter