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.
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 ?
I Tried something like that but unfortuneately data isn't passed correctly:
void Lightening_UpdateSystem(UArg Q){
Queue_Handle* myQ;
myQ = (Queue_Handle*)Q;
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