LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-28-2009, 08:33 AM   #1
halidziya
LQ Newbie
 
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
Post Notify when GPIO pressed Embedded Linux


Hi all;

INFO:
We are Running Angstrom on the BeagleBoard. And we want make a
program to trigger an application when GPIO button pressed. Angstrom
generates /sys/class/gpio/gpio134/value file when we initialize the
system. So we want to watch this file. We use inotify. This api
provides event handling mechanism
with select() and poll() fuction interface.

PROBLEM IS:
sys file system is not regular system. The value changing
when button pressed but inotify unable the nofity it.When we force to
write with
$echo 1 > value
It is working and notifing there is write call. But when we press
button nothing happens where there is actually there is change in the
value in the file.

QUESTION:
Is there any way to get rid of this problem or do we have to
write a device driver for GPIO event trigger system ? I don't want to listen syncronusly
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to work on GPIO with AT91SAM9263-EK in Linux aemindia Linux - Newbie 0 05-12-2009 07:46 AM
Using GPIO (from kernel GPIO support) in MY application DannyGilbert Linux - Kernel 2 03-16-2009 08:52 AM
Gpio Twiddling In Embedded Linux? or How to access PCI memory space regs? jds-linux Programming 1 07-11-2004 03:17 AM


All times are GMT -5. The time now is 04:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration