Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1264 → Rev 1263

/demos/trunk/loader/common/nload.c
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;
}
/demos/trunk/loader/shark/func.h
82,21 → 82,6
#define printf cprintf
/* Printf standard function */
 
/* TASK RUNTIME FUNCTIONS */
 
extern __inline__ void start_oneshot_task(void) {}
extern __inline__ void end_oneshot_task(void) {}
 
extern __inline__ void start_periodic_task(void) {}
extern __inline__ void start_job_periodic_task(void) {}
extern __inline__ void end_job_periodic_task(void) {}
extern __inline__ void end_periodic_task(void) {}
 
extern __inline__ void start_back_task(void) {}
extern __inline__ void start_job_back_task(void) {}
extern __inline__ void end_job_back_task(void) {}
extern __inline__ void end_back_task(void) {}
 
#endif