On Wed, Sep 7, 2016 at 2:28 PM, Charles Steinkuehler <
char...@steinkuehler.net> wrote:

>
> IMHO it works best if you setup the GPIO banks with Linux, then use
> the PRU to twiddle the output bits using the set and clear registers
> in the GPIO bank.  That way you don't have to worry about any sort of
> locking to insure consistent updates.  Note the Linux side also needs
> to use the set/clear registers for output updates (and not a
> read-modify-write sequence) to insure no updates get lost.
>
> --
> Charles Steinkuehler
> char...@steinkuehler.net
>
> I agree with Charles with one exception. I personally prefer to use
DATAOUT directly instead of using SETDATAOUT / CLEARDATAOUT.

I'd actually recommend that people also let the OS setup stuff like the ADC
as well. Then just read form the FIFO buffer.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CALHSORra_zbyps%3D0hiGxCLTkPiQR-R6kGimgwkuwCV37Q_uKnw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to