Hi,
On Mon, Nov 25, 2013 at 2:15 PM, <[email protected]> wrote: > > Hello Charles, Paul, Dave, Jack, ect. > > I'm also looking to make use of this style DRO with a BBB. I didn't know the LinuxCNC BBB used the PRU, very cool. I'm going to start looking over that code in more detail. > > I agree that the PRU is the way to go, and I tend to think a good approach is to write a fairly simple time stamping program that simply keeps a running list of pulses with time stamp, then the main processor decodes based on time stamps. If such a program existed, I could see it being used for a great many applications, not just the DRO. Does anyone know if there is PRU code that does time stamping of IO pulses? I wrote a generic gpio input driver I called gpio-event which timestamps gpio input events and delivers them to a userspace program. So while its not PRU based, if you're going to write a PRU based one, you may want to look at what was done for ideas. You can find the source code over here: https://github.com/dhylands/projects/tree/master/linux/gpio-event It consists of a kernel module, and a sample app that uses it. I originally wrote it for the gumstix, but its should be generic linux driver stuff and should work fine on the beagleboard. It's been a while since I've built it myself, so I'm not sure it builds on the newest kernels, but I'd be happy to help out getting it to build if you run into any problems. There is some documentation, along with a high-level overview of the various functions over here: http://wiki.gumstix.org/index.php?title=GPIO_Event_Driver -- Dave Hylands Shuswap, BC, Canada http://www.davehylands.com -- 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/groups/opt_out.
