Why so complicated?

Dennis Bieber schrieb am Donnerstag, 4. März 2021 um 05:03:54 UTC+1:

> Your sleep() and loops would then include something like "while not 
> abortFlag". 
>

Replace

while not abortFlag

by

while pruio_gpio_Value(io, abortPIN)

and drop all that IRQ magic (which only makes sense when you can use the 
hardware debounce feature).

And drop all that device tree magic. Instead configure the abortPIN by 
libpruio as GPIO with pull-up resistor (PRUIO_GPIO_IN_1) and wire the other 
end of the button to ground.

Focus on your major target. Don't waste your time by reading and testing a 
bunch of documentations, which are too modern (or outdated) for your 
current system.

Regards

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/a1ab4004-4871-46c2-8fd3-be8fcb160206n%40googlegroups.com.

Reply via email to