Hi!
I'm looking to into the source code of hal_pru_generic to modify it to load 
the pru code using python with py-uio (so it can work on BBX15), but I'm 
having some trouble understanding the source code of the pru 
driver/component. My plan is to first make it work with step/dir.

First: the component called hal_pru.c 
in 
https://github.com/jadonk/machinekit/blob/master/src/hal/components/hal_pru.c 
has to do with HAL_PRU_GENERIC. (and also, how are the files in machinekit 
<https://github.com/jadonk/machinekit>/src 
<https://github.com/jadonk/machinekit/tree/master/src>/hal 
<https://github.com/jadonk/machinekit/tree/master/src/hal>/support 
<https://github.com/jadonk/machinekit/tree/master/src/hal/support>/pru/ 
used?)

Second: it says in the code that stepgen.bin is loaded onto pru, is this 
the compiled pru_generic.p compiled? (It cant be stepgen.c uploaded to pru 
since it is not pru code, right?)  And how is stepgen.c code used in 
HAL_PRU_GENERIC?

Maybe you could tell me what parts of the code I might want to keep? I 
guess I can keep the .p code and have to tinker a bit with the memory 
sharing, and make the c-code run python program to load the pru code onto 
the pru. 

(Excuse me if these are stupid questions, but I'm new to programming in C, 
especially in larger projects. :) )

Best,
Magnus

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to