Skip to content
Snippets Groups Projects
Commit 000cf1f6 authored by Tom Feng's avatar Tom Feng
Browse files

need to figure out how to pass paramters

parent b89b3a74
No related branches found
No related tags found
1 merge request!16Withtime
......@@ -30,11 +30,18 @@ int main()
TD* FirstUserTask= CreateTask(&Colonel, Prio4, (void *) (&firstUserTaskChildren));
pushToScheduler(&Colonel, FirstUserTask);
TD* Task;
int ReturnValue = 0;
FOREVER {
Task = getNextTaskScheduler(&Colonel);
if(Colonel.Active == NULL){
ReturnValue = 0;
Task = getNextTaskScheduler(&Colonel);
}else{
Task = Colonel.Active;
ReturnValue = Task->RetVal;
}
bwprintf(COM2,"task = %d\n\r",Task);
if(Task == NULL) break;
req = Activate(&Colonel,Task,0);
req = Activate(&Colonel,Task,ReturnValue);
Handle(&Colonel, req);
}
return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment