Hi Dave,

                Thanks very much for the info,It is working fine,
                Thanks once again,

Best regards,



--- On Thu, 2/12/10, Hemanth Kumar <[email protected]> wrote:

From: Hemanth Kumar <[email protected]>
Subject: Re: gpio rising edge
To: "Dave Hylands" <[email protected]>
Cc: [email protected]
Date: Thursday, 2 December, 2010, 2:17 PM

Hi Dave,

               Thanks for the info and example Dave .I am new to gpio,Sorry for 
asking basics questions,I am trying to write interrupt handler for 1 sec, Below 
is gpio-events,Right now I am going through your code gpio-event-drv.c,My 
Question's are

  1. How do I implement irq handler should be raised 1 sec
  2. Does I need to consider the raising edge and falling edge 
  3. From the o/p Can I implement the 1 sec irq handler,Please Correct if I am 
wrong

./daveuser 156:b:2000
# cat /proc/gpio-event/pins
GPIO: 156 Edge: Both    Debounce: 208 msec

./daveuser 156:f:2000
# cat /proc/gpio-event/pins
GPIO: 156 Edge: Falling Debounce: 208 msec

# ./daveuser 156:r:2000
# cat /proc/gpio-event/pins
GPIO: 156 Edge: Rising  Debounce:
 208 msec
               

   Thanks once again,


Best Regards,






--- On Thu, 2/12/10, Dave Hylands <[email protected]> wrote:

From: Dave Hylands <[email protected]>
Subject: Re: gpio rising edge
To: "Hemanth Kumar" <[email protected]>
Cc: [email protected]
Date: Thursday, 2 December, 2010, 12:23 PM

Hi guys,

On Wed, Dec 1, 2010 at 9:30 PM, Hemanth Kumar <[email protected]> wrote:
>
> Hi All,
>          I tried with gpio-event 
> from http://svn.hylands.org/linux/gpio-event/module/gpio-event-drv.c which is 
> provide by Dave Hylands , it gives me the put
> ./daveuser 156:b:2000
> # cat /proc/gpio-event/pins
> GPIO: 156 Edge: Both    Debounce: 208 msec

There is some documentation on how to use the code, and how the code
works, over here:
<http://www.gumstix.net/wiki/index.php?title=GPIO_Event_Driver>

And if you have any questions, feel free to ask.

--
Dave Hylands
Shuswap, BC, Canada
http://www.DaveHylands.com/

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ




Reply via email to