37,9 → 37,6 |
#endif |
#endif |
|
start_oneshot_task(); |
|
/* to avoid problem if the task start inside the create function */ |
if (l->act_current == 0) l->act_current = 1; |
#ifdef TASK_OUTPUT |
#ifdef OS_SHARK |
56,8 → 53,6 |
"cpuid\n\t" |
:::"eax","ebx","ecx","edx"); |
|
end_oneshot_task(); |
|
return NULL; |
|
} |
82,14 → 77,10 |
#endif |
#endif |
|
start_periodic_task(); |
|
if (l->act_current == 0) l->act_current = 1; |
|
while(1) { |
|
start_job_periodic_task(); |
|
#ifdef TASK_OUTPUT |
#ifdef OS_SHARK |
sprintf(tmp,"C[%06d]",act); |
105,15 → 96,11 |
"cpuid\n\t" |
:::"eax","ebx","ecx","edx"); |
|
end_job_periodic_task(); |
|
generic_task_endcycle(); |
|
act++; |
|
} |
|
end_periodic_task(); |
|
return NULL; |
|
137,14 → 124,10 |
#endif |
#endif |
|
start_back_task(); |
|
if (l->act_current == 0) l->act_current = 1; |
|
while(1) { |
|
start_job_back_task(); |
|
#ifdef TASK_OUTPUT |
#ifdef OS_SHARK |
sprintf(tmp,"B[%06d]",act); |
160,14 → 143,9 |
"cpuid\n\t" |
:::"eax","ebx","ecx","edx"); |
|
end_job_back_task(); |
|
act++; |
|
} |
|
end_back_task(); |
|
} |
return NULL; |
|
} |