Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1236 → Rev 1235

/demos/trunk/loader/newloader.c
19,21 → 19,30
struct loader_task *l = (struct loader_task *)(arg);
char tmp[20];
 
#ifdef TASK_OUTPUT
sprintf(tmp,"X[%06d]",act);
printf_xy((get_current_exec_task() % 5) * 9 + 34,get_current_exec_task() / 5 + 5, GREEN, tmp);
#endif
while((l->act_number) > act) {
 
if (l->act_number > act+1) generic_set_next_activation(&l->act[act+1]);
#ifdef TASK_OUTPUT
sprintf(tmp,"X[%06d]",act);
printf_xy((get_current_exec_task() % 5) * 9 + 34,get_current_exec_task() / 5 + 5, GREEN, tmp);
#endif
 
exec_cycles = (long long)(TIMESPEC2USEC(&l->exec[act])) * CALIBRATION_DELTA / cal_cycles;
if (l->act_number > act+1) generic_set_next_activation(&l->act[act+1]);
 
exec_cycles = (long long)(TIMESPEC2USEC(&l->exec[act])) * CALIBRATION_DELTA / cal_cycles;
for (i=0;i<exec_cycles;i++) calibration_func();
#ifdef TASK_OUTPUT
sprintf(tmp,"X[%06d]",act);
printf_xy((get_current_exec_task() % 5) * 9 + 34, get_current_exec_task() / 5 + 5, GREEN, tmp);
#endif
for (i=0;i<exec_cycles;i++) calibration_func();
generic_task_endcycle();
generic_task_endcycle();
act++;
act++;
}
return NULL;
}