Tool/software: TI-RTOS
Our application has a statically-created SWI. Is there any way to dynamically change a SWI argument, so that I can pass a value to the Swi just before calling Swi_post()?
Currently, when I attempt to change arg0, I get a compiler error (" ... pointer to incomplete class type ..." when I try somthing like this:
swi_oncePerCycle ->arg0 = var1; // COMPILER ERROR here
Swi_post(swi_oncePerCycle );
It appears to not have the stuct info about the SWI object, and the compiler can't find it.
Here is the SWI setup in the configuration file:
var swi1Params = new Swi.Params();
swi1Params.instance.name = "oncePerCycle";
swi1Params.priority = 12;
Program.global.swi_oncePerCycle = Swi.create("&swiFunction", swi1Params);
Thanks for any suggestions.
Chuck S.