WakeUp GPIO features is missing

105 views
Skip to first unread message

Patrick Schmelzer

unread,
Nov 7, 2016, 9:22:56 AM11/7/16
to BeagleBoard
Hi there

I want to use a GPIO interrupt wakeup for my BBB, unfortunately (and also in contrary what some people postet) i dont have the wakeup folder when i export pins.
I know that only the first pin bank GPIO0_x is usable for the wakeup.

Does anyone know what to initialize it and what to change in the kernel code?
The controller omap is definetly loaded because i can check the values of the pin and also change them.

Regards,

William Hermans

unread,
Nov 7, 2016, 2:24:47 PM11/7/16
to beagl...@googlegroups.com
william@beaglebone:~$ ls /sys/class/gpio/gpio3
active_low  device  direction  edge  power  subsystem  uevent  value

Set the "edge" file to "rising", "falling:, or "both". You can then perform a blocking read on the value file. Using poll(), select(), etc. This is about as close as it gets for interrupts in user space.

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/b6cb8a48-627d-41f7-b9ae-d39825fd922b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Davide Aguiari

unread,
Feb 16, 2017, 11:43:29 AM2/16/17
to BeagleBoard
Did you resolve? I'm looking for a solution.
@William: I don't think that you can use select() or poll() while your system is sleeping.

William Hermans

unread,
Feb 16, 2017, 2:47:29 PM2/16/17
to beagl...@googlegroups.com

On Thu, Feb 16, 2017 at 9:43 AM, Davide Aguiari <gorg...@gmail.com> wrote:
Did you resolve? I'm looking for a solution.
@William: I don't think that you can use select() or poll() while your system is sleeping.

You can't do *anything* on a Linux system while it is sleeping. Except perhaps bring it out of sleep.

Davide Aguiari

unread,
Feb 16, 2017, 2:51:59 PM2/16/17
to BeagleBoard
Exactly, but I think the OP wanted a way to put the BB into a (deep) sleep mode instead of a wait_for_interrupt.  Don't you agree with me?
Reply all
Reply to author
Forward
0 new messages