Andy, your clearly cheated before posting this and read my repo ;)
Am 03.12.2012 um 16:01 schrieb andy pugh: > On 3 December 2012 14:52, Kenneth Lerman <[email protected]> wrote: > >> It's not at all clear to me how we get there from here. My guess is that >> if we want to use the PRUs, we will need to develop some sort of >> hardware driver abstraction layer to achieve portability. (That's if we >> don't want to have two independent sets of drivers.) > > Could it not be a HAL component style of driver? > It can't be any more complicated than the Hostmot2 driver and all > those firmwares and boards. > > loadrt beaglebone_pru config="firmware=...." the actual command line of the current hal_pru component is: loadrt hal_pru pru=0|1 prucode="<PRU binary>" [disabled=1] what it does is: - load a PRU binary code - start it - communicate values to it via shared memory between the component and memory accessible by the PRU it also can: - break, continue, reset, singlestep - register dump the PRU and some status registers The debugging stuff is purely my exploratory safari, there is no need for it - a simple Glade panel and some Python code accessing the PRU's through mmap() can achieve the same thing I'll post some more detailed pointers in reply to Kenneth -m for further cheating, look here ;): http://git.mah.priv.at/gitweb/emc2-dev.git/blob/refs/heads/arm335x-hal-pru-module:/src/hal/components/hal_pru.c the minimum PRU program to wiggle a GPIO pin looks so: http://git.mah.priv.at/gitweb/emc2-dev.git/blob/refs/heads/arm335x-hal-pru-module:/src/hal/components/maxrate.p (yes, assembly only) a not quite so minimum but still useless led blinker code is here: http://git.mah.priv.at/gitweb/emc2-dev.git/blob/refs/heads/arm335x-hal-pru-module:/src/hal/components/blinkleds.p - this also shares variables with the HAL component > > -- > atp > If you can't fix it, you don't own it. > http://www.ifixit.com/Manifesto > > ------------------------------------------------------------------------------ > Keep yourself connected to Go Parallel: > BUILD Helping you discover the best ways to construct your parallel projects. > http://goparallel.sourceforge.net > _______________________________________________ > Emc-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-developers ------------------------------------------------------------------------------ Keep yourself connected to Go Parallel: BUILD Helping you discover the best ways to construct your parallel projects. http://goparallel.sourceforge.net _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
