/advdemos/trunk/chimera/initfile.c |
---|
103,7 → 103,7 |
shutdown_task_PID = task_create("Shutdown Task",shutdown_task_body,&nrt,NULL); |
if (shutdown_task_PID == NIL) { |
sys_shutdown_message("Error: Cannot create shutdown task\n"); |
sys_end(); |
exit(1); |
} |
} |
161,8 → 161,6 |
sys_shutdown_message("-- S.Ha.R.K. Closed --\n"); |
sys_abort_shutdown(0); |
return NULL; |
} |
/advdemos/trunk/chimera/calibrate.c |
---|
166,7 → 166,7 |
st_pid = task_create("Calibration task",calibrate,&st,NULL); |
if (st_pid == NIL) { |
cprintf("Error creating calibration task\n"); |
sys_end(); |
exit(1); |
} |
task_activate(st_pid); |
/advdemos/trunk/chimera/chimera.c |
---|
31,7 → 31,7 |
kern_printf("Task Name : %s - Max Time : %d\n", proc_table[i].name, (int)tmp); |
} |
sys_end(); |
exit(1); |
} |
251,7 → 251,7 |
pid_walk = task_create("Walk_Task", walk_auto_3, &ms, NULL); |
if (pid_walk == NIL) { |
perror("Could not create task <Walk_Auto>"); |
sys_end(); |
exit(1); |
} else |
task_activate(pid_walk); |
} |
/advdemos/trunk/chimera/send.c |
---|
268,7 → 268,7 |
servo_pid = task_create("Servo_Task", servo_send, &ms, NULL); |
if (servo_pid == NIL) { |
perror("Could not create task <Send_Task>"); |
sys_end(); |
exit(1); |
} else |
task_activate(servo_pid); |
280,7 → 280,7 |
if (init_serial()) { |
perror("Could not initialize serial port."); |
sys_end(); |
exit(1); |
} |
for (i=0; i<6;i++) { |