Void ledToggle_Task (UArg UArg a0, a1) {
int i=0;
for(; i<10; I++) {
Sleep (1);
HWREGB (0 x00000007 x40022000 + 0)=0.
Sleep (1);
HWREGB (0 x40022000 + 0 x00000007)=1;
If (i> 2) {
Delete//not in the loop body, the test effect, must be on the task finally
//Task_delete (& amp; TaskHandle);//taskHandle Handle for this task as
}
}
//tasks to this end, delete what is the use?
Task_delete (& amp; TaskHandle1);
}
CodePudding user response:
Why do you want to delete the task?CodePudding user response:
To delete ah, of course, if you no longer use mission, delete in order to release this task when creating application stack space,