I am learning the Beaglebone Black PRU tools and I would like to know if there are any examples of using mixed language C and assembly out there.
Currently I have a main.c with the entry point in C language. I have an assembly module linked into my project with the .asm extension. At the top of main.c I have an extern to an assembly function and I can successfully call and pass data and return data from the assembly function.
Most of the examples I've found are in pasm. I am trying to learn from these examples and do it in CCS.
The big question I have is:
" Is there a way to replace the functionality of .setcallreg from pasm in the v2.1.1 compiler/assembler? "
I can do .macros but I would prefer to do calls with a return. The .macros don't seem to play nice if they are nested. I am working with the Blackhawk USB100v2 emulator.
Any pointers to more information would be much appreciated.
Thanks,