Subversion Repositories shark

Compare Revisions

Regard whitespace Rev 1375 → Rev 1376

/demos/trunk/astro/rock.c
271,8 → 271,9
soft_task_def_usemath(ms);
pid_RC = task_create("RockCreator", rock_creator, &ms, NULL);
if (pid_RC == NIL) {
perror("Could not create task <RockCreator>");
sys_shutdown_message("Could not create task <RockCreator>\n");
shark_running = 0;
return;
} else
task_activate(pid_RC);
}
/demos/trunk/astro/asteroid.h
118,10 → 118,9
#define STAT_WCET 400
 
/* Statistic constants */
#define LOOK_PERIOD 2000
#define LOOK_WCET 400
#define LOOK_PERIOD 10000
#define LOOK_WCET 4000
 
 
typedef struct {
PID pid;
int x, y, r;
/demos/trunk/astro/astro.c
373,8 → 373,9
soft_task_def_usemath(ms);
pid = task_create("Astro", astro, &ms, NULL);
if (pid == NIL) {
perror("Could not create task <astro>");
sys_shutdown_message("Could not create task <astro>\n");
shark_running = 0;
return;
} else
task_activate(pid);
 
385,8 → 386,9
hard_task_def_usemath(mp);
pid = task_create("Taken", look, &mp, NULL);
if (pid == NIL) {
perror("Could not create task <Taken>");
sys_shutdown_message("Could not create task <Taken>\n");
shark_running = 0;
return;
} else
task_activate(pid);
 
400,8 → 402,9
hard_task_def_usemath(mp);
pid_TL = task_create("TurnLeft", turn, &mp, NULL);
if (pid_TL == NIL) {
perror("Could not create task <Turn L>");
sys_shutdown_message("Could not create task <Turn L>\n");
shark_running = 0;
return;
}
 
incr = - ASTRO_GRAD_INC;
414,8 → 417,9
hard_task_def_usemath(mp);
pid_TR = task_create("TurnRight", turn, &mp, NULL);
if (pid_TR == NIL) {
perror("Could not create task <Turn R>");
sys_shutdown_message("Could not create task <Turn R>\n");
shark_running = 0;
return;
}
 
incr = ASTRO_VEL_INC;
428,8 → 432,9
hard_task_def_usemath(mp);
pid_SU = task_create("SpeedUP", speed, &mp, NULL);
if (pid_SU == NIL) {
perror("Could not create task <Speed UP>");
sys_shutdown_message("Could not create task <Speed UP>\n");
shark_running = 0;
return;
}
 
incr = - ASTRO_VEL_INC;
442,8 → 447,9
hard_task_def_usemath(mp);
pid_SD = task_create("SpeedDOWN", speed, &mp, NULL);
if (pid_SD == NIL) {
perror("Could not create task <Speed DOWN>");
sys_shutdown_message("Could not create task <Speed DOWN>\n");
shark_running = 0;
return;
}
 
incr = 0;
456,8 → 462,9
hard_task_def_usemath(mp);
pid_SZ = task_create("SpeedZERO", speed, &mp, NULL);
if (pid_SZ == NIL) {
perror("Could not create task <Speed ZERO>");
sys_shutdown_message("Could not create task <Speed ZERO>\n");
shark_running = 0;
return;
}
 
hard_task_default_model(mp);
467,8 → 474,9
hard_task_def_usemath(mp);
pid = task_create("MoveAstro", move, &mp, NULL);
if (pid == NIL) {
perror("Could not create task <MoveAstro>");
sys_shutdown_message("Could not create task <MoveAstro>\n");
shark_running = 0;
return;
} else
task_activate(pid);
 
483,8 → 491,9
hard_task_def_usemath(mp);
pid_FL = task_create("FlipAstro", turn, &mp, NULL);
if (pid_FL == NIL) {
perror("Could not create task <Flip Astro>");
sys_shutdown_message("Could not create task <Flip Astro>\n");
shark_running = 0;
return;
}
#endif
}
/demos/trunk/astro/asteroid.c
150,6 → 150,8
 
device_drivers_close();
 
sys_shutdown_message("-- S.Ha.R.K. Closed --\n");
 
sys_end();
 
return 0;
/demos/trunk/astro/stat.c
130,8 → 130,9
soft_task_def_usemath(ms);
pid = task_create("StatWrite", stat_write, &ms, NULL);
if (pid == NIL) {
perror("Could not create task <StatWrite>");
sys_shutdown_message("Could not create task <StatWrite>\n");
shark_running = 0;
return;
} else
task_activate(pid);
}