请问,有没有保护任务处理的函数?比如我正常接收蓝牙发送过来的函数,如何保证不被串口中断打断?
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.
void ProjectZero_createTask(void)
{
Task_Params taskParams;
// Configure task
Task_Params_init(&taskParams);
taskParams.stack = appTaskStack;
taskParams.stackSize = PZ_TASK_STACK_SIZE;
taskParams.priority = PZ_TASK_PRIORITY;
Task_construct(&pzTask, ProjectZero_taskFxn, &taskParams, NULL);
}
您好,结构体中有这样的参数代表任务优先级,taskParams.priority = PZ_TASK_PRIORITY;