I have created a static SEM as follows:
var ti_sysbios_knl_Semaphore = xdc.useModule('ti.sysbios.knl.Semaphore');
var instti_sysbios_knl_Semaphore0Params0 = new ti_sysbios_knl_Semaphore.Params();
instti_sysbios_knl_Semaphore0Params0.instance.name = "OsSem";
Program.global.OsSem = ti_sysbios_knl_Semaphore.create(null, instti_sysbios_knl_Semaphore0Params0);
and am attempting to use its address in an EDMA3 LLD driver initialization as follows:
initCfg.drvSemHandle = &OsSem; // OsSem added statically in the .tcf file with an initial count of 1
However, I get the following error message during compilation:
"C:/PROGRA~2/TEXASI~1/bios_6_30_02_42/packages/ti/sysbios/knl/Semaphore.h")
"../edma_arm.c", line 300: error: a value of type "const ti_sysbios_knl_Semaphore_Handle *" cannot be assigned to an entity of type "void *"
Plus a whole raft of these:
"C:/PROGRA~2/TEXASI~1/bios_6_30_02_42/packages/ti/sysbios/ipc/Semaphore__prologue.h", line 33: warning: #warn "The ti.sysbios.ipc.Semaphore module is being deprecated. Please switch to ti.sysbios.knl.Semaphore."
"C:/PROGRA~2/TEXASI~1/bios_6_30_02_42/packages/ti/sysbios/ipc/Event__prologue.h", line 33: warning: #warn "The ti.sysbios.ipc.Event module is being deprecated. Please switch to ti.sysbios.knl.Event."
"C:/PROGRA~2/TEXASI~1/bios_6_30_02_42/packages/ti/sysbios/ipc/Semaphore.h", line 599: warning: incompatible redefinition of macro "Semaphore_Instance" (declared at line 596 of "C:/PROGRA~2/TEXASI~1/bios_6_30_02_42/packages/ti/sysbios/knl/Semaphore.h")
"C:/PROGRA~2/TEXASI~1/bios_6_30_02_42/packages/ti/sysbios/ipc/Semaphore.h", line 600: warning: incompatible redefinition of macro "Semaphore_Handle" (declared at line 597 of "C:/PROGRA~2/TEXASI~1/bios_6_30_02_42/packages/ti/sysbios/knl/Semaphore.h")
........
Can someone give me a hand figuring out what is wrong?
Thx,
MikeH