Part Number: TM4C123GH6PM
Tool/software: Code Composer Studio
I am using Ti Rtos and Latest version of Sys Bios.
I want to pass a queue handle as an argument during task creation is this possible ?
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.
Part Number: TM4C123GH6PM
Tool/software: Code Composer Studio
I am using Ti Rtos and Latest version of Sys Bios.
I want to pass a queue handle as an argument during task creation is this possible ?
Hi Ahmed,
Here's an example:
Void Lightening_UpdateSystem(UArg arg0, UArg arg1)
{
Queue_Handle queue = (Queue_Handle)arg0;
...
}
main() {
...
Queue_Handle myQueueHandle = Queue_create(NULL, Error_IGNORE);
Task_Params taskParams;
Task_Params_init(&taskParams);
taskParams.arg0 = (UArg)myQueueHandle;
myTaskHandle = Task_create(Lightening_UpdateSystem, &taskParams, Error_IGNORE);
Todd