So, capturing events using the eCAP module in the PRU is absolutely perfect for my application. And thanks to TI's newer "pru_ecap.h" header and (very thorough) Technical Reference Manual, it doesn't seem that hard to use. I only wish I could get that far.
It looks like you can trigger event capture on BBB via P9_42 in mode 3 (and maybe also P8_15 in mode 5, too?). I've been using beaglebone-universal-io, but it doesn't expose the "pr1_ecap0_ecap_capin_apwm_o" pinmux on either of those pins. Hoping that it wouldn't be too hard to add myself, this is what I've come up with so far: http://pastebin.com/TAH2GHFT That dts compiles, but the config-pin call fails with something like "/bin/bash error on line 0" (not exact; I'm away from that machine right now). My new hope is that I'm missing something trivial and by changing one more line all of this will be up and running. :D If anyone can spot what I'm missing, I would be grateful! Once this is up and running, ideally it can be rolled back into beaglebone-universal-io so everyone has easier access to a really powerful peripheral. Thanks! Nicholas -- 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]. For more options, visit https://groups.google.com/d/optout.
