Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1550 → Rev 1549

/demos/trunk/pci6025e/test_bms.c
100,7 → 100,7
 
if(!reMap()){
sys = 11;
exit(1);
sys_end();
}
 
soft_task_default_model(show_val_mod);
112,7 → 112,7
if( (show_val_pid = task_create("Show task", show_val_body, &show_val_mod, NULL))
== NIL ){
sys = 20;
exit(1);
sys_end();
}
 
hard_task_default_model(gate_action_model);
121,7 → 121,7
if( (gate_action_pid = task_create("Gate Action", gate_action_body, &gate_action_model, NULL))
== NIL ){
sys = 22;
exit(1);
sys_end();
}
 
drawInterface();
155,7 → 155,7
{
closeEvent(NULL);
 
exit(1);
sys_end();
}
 
void showEvent(KEY_EVT *k)
/demos/trunk/pci6025e/wave.c
91,7 → 91,7
hard_task_def_group(wave0, TASK_GROUP);
if( (wave0_pid = task_create("Wave 0", wave_body, &wave0, NULL)) == NIL ){
sys = 10;
exit(1);
sys_end();
}
 
hard_task_default_model(wave1);
101,7 → 101,7
hard_task_def_group(wave1, TASK_GROUP);
if( (wave1_pid = task_create("Wave 1", wave_body, &wave1, NULL)) == NIL ){
sys = 11;
exit(1);
sys_end();
}
 
hard_task_default_model(video);
111,12 → 111,12
if( (video_pid = task_create("Video task", video_body, &video, NULL))
== NIL ){
sys = 12;
exit(1);
sys_end();
}
 
if(!reMap()){
sys = 21;
exit(1);
sys_end();
}
 
createWaves();
153,7 → 153,7
{
close_event(NULL);
 
exit(1);
sys_end();
}
 
void close_event(void *arg)
/demos/trunk/pci6025e/initfile.c
120,7 → 120,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");
exit(1);
sys_end();
}
 
}
147,7 → 147,7
cprintf("Error: Cannot open graphical mode\n");
KEYB26_close();
INPUT26_close();
exit(1);
sys_end();
}
FB26_use_grx(FRAME_BUFFER_DEVICE);
191,6 → 191,8
 
sys_shutdown_message("-- S.Ha.R.K. Closed --\n");
 
sys_abort_shutdown(0);
 
return NULL;
 
}
/demos/trunk/pci6025e/test_mes.c
100,7 → 100,7
 
if(!reMap()){
sys = 11;
exit(1);
sys_end();
}
 
soft_task_default_model(show_model);
112,7 → 112,7
if( (show_pid = task_create("Show task", show_body, &show_model, NULL))
== NIL ){
sys = 20;
exit(1);
sys_end();
}
 
hard_task_default_model(gating);
121,13 → 121,13
hard_task_def_arg(gating, C0);
if( (c0_gate_pid = task_create("C0 Gate task", gate_body, &gating, NULL)) == NIL ){
sys = 21;
exit(1);
sys_end();
}
 
hard_task_def_arg(gating, (void *)C1);
if( (c1_gate_pid = task_create("C1 Gate task", gate_body, &gating, NULL)) == NIL ){
sys = 22;
exit(1);
sys_end();
}
 
drawInterface();
250,7 → 250,7
{
closeEvent(NULL);
exit(1);
sys_end();
}
 
void gateEvent(KEY_EVT *k)
/demos/trunk/pci6025e/test_dac.c
110,7 → 110,7
pid_m = task_create("Voltage", Voltage_body, &m, NULL);
if(pid_m == NIL){
sys = 30;
exit(1);
sys_end();
}
 
hard_task_default_model(d);
120,13 → 120,13
pid_d = task_create("DAC Check", DAC_Check_body, &d, NULL);
if(pid_d == NIL){
sys = 31;
exit(1);
sys_end();
}
 
//Check if a NI board is on PCI bus
if(!reMap()){
sys = 11;
exit(1);
sys_end();
}
 
drawInterface();
302,7 → 302,7
close_event(NULL);
 
exit(1);
sys_end();
}
 
/*
/demos/trunk/pci6025e/test_ec.c
116,7 → 116,7
soft_task_def_wcet(show_aper_mod, 60000);
if( (show_aper_pid = task_create("Show aperiodic task", show_aper, &show_aper_mod, NULL)) == NIL ){
sys = 10;
exit(1);
sys_end();
}
 
k.flag = 0;
142,12 → 142,12
soft_task_def_period(show_per_mod, 10000);
if( (show_per_pid = task_create("Show periodic task", show_per, &show_per_mod, NULL)) == NIL){
sys = 11;
exit(1);
sys_end();
}
 
if(!reMap()){
sys = 21;
exit(1);
sys_end();
}
 
drawInterface();
303,7 → 303,7
{
close_event(NULL);
 
exit(1);
sys_end();
}
 
void show_evt(KEY_EVT *k)
/demos/trunk/pci6025e/test_ppi.c
72,13 → 72,13
pid_m = task_create("TEST PPI", test_ppi, &m, NULL);
if(pid_m == NIL){
system = 10;
exit(1);
sys_end();
}
 
//Look for a National board on PCI bus
if(!reMap()){
system = 21;
exit(1);
sys_end();
}
 
//Start configuring DIO module
171,7 → 171,7
close_event(NULL);
 
exit(1);
sys_end();
}
 
/*end of file: test_ppi.c*/
/demos/trunk/pci6025e/test_bec.c
108,7 → 108,7
soft_task_def_wcet(show_aper_mod, 60000);
if( (show_aper_pid = task_create("Show aperiodic task", show_aper, &show_aper_mod, NULL)) == NIL ){
sys = 10;
exit(1);
sys_end();
}
 
k.flag = 0;
134,12 → 134,12
soft_task_def_period(show_per_mod, 10000);
if( (show_per_pid = task_create("Show periodic task", show_per, &show_per_mod, NULL)) == NIL){
sys = 11;
exit(1);
sys_end();
}
 
if(!reMap()){
sys = 21;
exit(1);
sys_end();
}
 
drawInterface();
275,7 → 275,7
{
close_event(NULL);
 
exit(1);
sys_end();
}
 
void show_evt(KEY_EVT *k)
/demos/trunk/pci6025e/test_dio.c
73,13 → 73,13
pid_m = task_create("TEST DIO", test_DIO, &m, NULL);
if(pid_m == NIL){
system = 10;
exit(1);
sys_end();
}
 
//Look for a National board on PCI bus
if(!reMap()){
system = 21;
exit(1);
sys_end();
}
 
//Start configuring DIO module
166,6 → 166,6
close_event(NULL);
 
exit(1);
sys_end();
}