Re: gpio rising edge

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

 



Hi Dave,

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

Best regards,



--- On Thu, 2/12/10, Hemanth Kumar <hemwire@xxxxxxxxxxx> wrote:

From: Hemanth Kumar <hemwire@xxxxxxxxxxx>
Subject: Re: gpio rising edge
To: "Dave Hylands" <dhylands@xxxxxxxxx>
Cc: kernelnewbies@xxxxxxxxxxxx
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 <dhylands@xxxxxxxxx> wrote:

From: Dave Hylands <dhylands@xxxxxxxxx>
Subject: Re: gpio rising edge
To: "Hemanth Kumar" <hemwire@xxxxxxxxxxx>
Cc: kernelnewbies@xxxxxxxxxxxx
Date: Thursday, 2 December, 2010, 12:23 PM

Hi guys,

On Wed, Dec 1, 2010 at 9:30 PM, Hemanth Kumar <hemwire@xxxxxxxxxxx> 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 ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux