18,11 → 18,11 |
|
/** |
------------ |
CVS : $Id: eli.c,v 1.1.1.1 2002-09-02 09:37:45 pj Exp $ |
CVS : $Id: eli.c,v 1.3 2003-01-07 17:10:16 pj Exp $ |
|
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-09-02 09:37:45 $ |
Revision: $Revision: 1.3 $ |
Last update: $Date: 2003-01-07 17:10:16 $ |
------------ |
|
This file is similar to the configuration of Hartik 3.3.1 |
50,6 → 50,7 |
|
#include "eli.h" |
|
#include <time.h> |
|
//######################################## |
// Definizione variabili globali |
121,8 → 122,14 |
} |
|
TASK pulisci(int i) |
{ int x,y,dim; |
while (1) |
{ |
int x,y,dim; |
struct timespec delay; |
|
delay.tv_sec=0; |
delay.tv_nsec=3000000; |
|
while (1) |
{ |
|
if(i==1) |
139,7 → 146,7 |
} |
|
|
task_delay(3000); |
nanosleep(&delay, NULL); |
PULISCI(x,y,dim); |
|
sem_post(&pu); |
690,8 → 697,6 |
// Sezione esecutiva del main ## |
//#################################### |
|
set_exchandler_grx(); |
|
// Inizializzazione dei parametri hartik |
sem_init(&mutex,0,1); |
sem_init(&pu,0,1); |