Thanks Joseph for sharing your code.

I am working on a project involving real-time closed loop control with the 
adc of the beaglebone, using the PRUs in c:
https://github.com/l4m4re/SoakageTester

I found a pretty nice base for programming the adc's and some other 
examples, which I forked and updated the adc example:

https://github.com/l4m4re/bbb-pru

Currently, that example uses a dual buffer strategy, but one can also 
implement a ring buffer (as I have done in my project above). I will 
probably add that to these examples at some point, too. With this code, I 
can sample two channels at 800 kS/s each and hopefully do some control 
processing on the PRU, too. 

So far, I have only used one PRU for sampling, and the next step is to move 
the GPIO controls to the PRU(s) as well. When searching for examples on how 
to do this, how to do interrupts between the PRUs and/or how to work with 
the IEP timer, I found your code,  and thus I found out about the header 
files in the pru software support package (in /opt). 

So, all in all the info you shared will surely help a lot.

Best regards and thanks again for sharing,

Arend.


On Wednesday, April 26, 2017 at 10:02:47 AM UTC+2, Joseph Heller wrote:
>
> Updated link: http://catch22.eu/beaglebone/beaglebone-pru-c/
>

-- 
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/e74d1724-00e4-4927-985a-cfb19d3d42db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to