Subversion Repositories shark

Compare Revisions

Regard whitespace Rev 1158 → Rev 1159

/demos/trunk/orbit/orbit.c
18,11 → 18,11
 
/*
------------
CVS : $Id: orbit.c,v 1.3 2003-01-07 17:10:17 pj Exp $
CVS : $Id: orbit.c,v 1.4 2003-05-01 19:44:07 pj Exp $
 
File: $File$
Revision: $Revision: 1.3 $
Last update: $Date: 2003-01-07 17:10:17 $
Revision: $Revision: 1.4 $
Last update: $Date: 2003-05-01 19:44:07 $
------------
*/
 
215,10 → 215,8
hard_task_def_usemath (m);
pid = task_create("massa", massa, &m, NULL);
if (pid == NIL) {
grx_close();
perror("Could not create task");
c = keyb_getch(BLOCK);
sys_abort(1);
sys_shutdown_message("Could not create task");
sys_end();
}
task_activate(pid);
}
/demos/trunk/fsdemo/mplay.c
36,11 → 36,11
*/
 
/*
* CVS : $Id: mplay.c,v 1.2 2002-11-11 08:17:31 pj Exp $
* CVS : $Id: mplay.c,v 1.3 2003-05-01 19:44:07 pj Exp $
*
* File: $File$
* Revision: $Revision: 1.2 $
* Last update: $Date: 2002-11-11 08:17:31 $
* Revision: $Revision: 1.3 $
* Last update: $Date: 2003-05-01 19:44:07 $
*/
 
#include "config.h"
146,7 → 146,7
 
root_device=bdev_scan_devices(choose_root_callback);
if (root_device<0) {
cprintf("can't find root device to mount on /!!!\n");
sys_shutdown_message("can't find root device to mount on /!!!\n");
sys_end();
return -1;
}
/demos/trunk/base/sched.c
34,7 → 34,7
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*
* CVS : $Id: sched.c,v 1.2 2003-01-07 17:10:15 pj Exp $
* CVS : $Id: sched.c,v 1.3 2003-05-01 19:44:07 pj Exp $
 
This demo is derived from the cbsmouse.c Hartik's example.
 
376,7 → 376,7
}
 
if (grx_init() == -1) {
cprintf("Error initing GraphLib!!!\n");
sys_shutdown_message("Error initing GraphLib!!!\n");
sys_end();
}
modenum = grx_getmode(640, 480, 8);
383,7 → 383,7
cprintf("Modenum :%d\n", modenum);
 
if (grx_setmode(modenum) == -1) {
cprintf("No SetMode!!!\n");
sys_shutdown_message("No SetMode!!!\n");
sys_end();
}
 
434,8 → 434,7
hard_task_def_group(m_per, 1);
//task_def_wcet(m, ptime[0] * sys_tick);
if (task_create("verde", color, &m_per, NULL) == -1) {
grx_close();
perror("Edf.C(main) Could not create <green>:");
sys_shutdown_message("Edf.C(main) Could not create <green>:");
sys_end();
}
hard_task_def_arg(m_per, (void *)1);
442,8 → 441,7
hard_task_def_wcet(m_per, ptime[1]*PERIODSCALE);
hard_task_def_mit(m_per,period[1]*PERIODSCALE);
if (task_create("red", color, &m_per, NULL) == -1) {
grx_close();
perror("Edf.C(main) Could not create <red>:");
sys_shutdown_message("Edf.C(main) Could not create <red>:");
sys_end();
}
hard_task_def_arg(m_per, (void *)2);
450,8 → 448,7
hard_task_def_wcet(m_per, ptime[2]*PERIODSCALE);
hard_task_def_mit(m_per,period[2]*PERIODSCALE);
if (task_create("yellow", color, &m_per, NULL) == -1) {
grx_close();
perror("Edf.C(main) Could not create <yellow>:");
sys_shutdown_message("Edf.C(main) Could not create <yellow>:");
sys_end();
}
starttime = sys_gettime(NULL) / PERIODSCALE;