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.
工具/软件:Code Composer Studio
我正在使用 TI RTOS 和最新版本的系统 BIOS。
我希望在任务创建期间将队列句柄作为参数传递,这是可行的吗?
我尝试过类似的方法、但不幸的是数据未正确传递:
void Lightening_UpdateSystem (UArg Q){
queue_handle* myQ;
myQ =(Queue_handle*) Q;
您好、Ahmed、
以下是一个示例:
空 Lightening_UpdateSystem (UARg arg0、UARg arg1) { Queue_handle queue =(Queue_handle) arg0; 。} main(){... Queue_handle myQueuueHandle = 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