> On Jan 5, 2016, at 5:19 PM, William Hermans <yyrk...@gmail.com> wrote: > > OK, you have several options on how to implement this. First, look in > drivers/iio or drivers/staging/iio for example drivers that use SPI. If you > use the RT kernel, you will see latency of less than 1mS, but if this isn’t > good enough, then I recommend using the PRU to program the McSPI. For > examples of how to program the McSPI natively, look at Starterware for > example code. If you look on Github, the Starterware examples have been > ported to the PRU. > Regards, > John > > I'd actually recommend using the PRUs *OR* /dev/mem/ + mmap() if you need > anything better than 100-200ms. The RT kernels are pretty good at reducing > latency from what I've seen, but they still are not "perfect”. /dev/mem/ + mmap() is always going to have more latency than kernel module because kernel code is executed at a higher priority that user space app.
Regards, John > > -- > For more options, visit http://beagleboard.org/discuss > <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 > <mailto:beagleboard+unsubscr...@googlegroups.com>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- 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. For more options, visit https://groups.google.com/d/optout.