TI-RTOS例程问题
时间:12-23
整理:3721RD
点击:
请问,这段TI-RTOS的例程代码是设置优先级的吧,函数里面的参数填什么呢,新手求问啊,谢谢啦
/* Construct writer/reader Task threads */
Task_Params_init(&taskParams);
taskParams.stackSize = TASKSTACKSIZE;
taskParams.stack = &task1Stack;
taskParams.priority = 1; 这个是配置优先级
Task_construct(&task1Struct, (Task_FuncPtr)task1Fxn, &taskParams, NULL);
taskParams.stack = &task2Stack;
taskParams.priority = 2;
Task_construct(&task2Struct, (Task_FuncPtr)task2Fxn, &taskParams, NULL);
http://software-dl.ti.com/lprf/simplelink_academy/modules/tirtos_01_basic/tirtos_01_basic.html