Other Parts Discussed in Thread: 66AK2G12,
Tool/software: TI-RTOS
Hi,
I am using SYSBIOS v6.75.01.05 for 66AK2G12 DSP.
I have created a task dynamically. I would like to pass only one argument to the task function.
Would the task function still need to be declared with two arguments?
Example:
Task_Params params;
Error_Block eb;
Task_Params_init(¶ms);
Error_init(&eb);
params.arg0 = (UArg) MyArg;
Task_create((Task_FuncPtr) TaskFunc, ¶ms, &eb);
Now, can the Task Function definition be:
void TaskFunc(UArg arg0)
{
}
Or, does it need to be :
void TaskFunc(UArg arg0, UArg arg1)
{
}
Regards,
Amruta