37,6 → 37,9 |
#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 |
53,6 → 56,8 |
"cpuid\n\t" |
:::"eax","ebx","ecx","edx"); |
|
end_oneshot_task(); |
|
return NULL; |
|
} |
77,10 → 82,14 |
#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); |
96,11 → 105,15 |
"cpuid\n\t" |
:::"eax","ebx","ecx","edx"); |
|
end_job_periodic_task(); |
|
generic_task_endcycle(); |
|
act++; |
|
} |
|
end_periodic_task(); |
|
return NULL; |
|
124,10 → 137,14 |
#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); |
143,9 → 160,14 |
"cpuid\n\t" |
:::"eax","ebx","ecx","edx"); |
|
end_job_back_task(); |
|
act++; |
|
} |
} |
|
end_back_task(); |
|
return NULL; |
|
} |