This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Arguments passed to a task

Part Number: SYSBIOS
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(&params);

Error_init(&eb);

params.arg0 = (UArg) MyArg;

Task_create((Task_FuncPtr) TaskFunc, &params, &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