Hi Daniele,
You can write something like that
/*** module ***/
module theModule {
uses interface Timer as Timer1;
uses interface Timer as Timer1;
uses interface Timer as Timer1;
}
implementation {
/* ... */
}
/*** Configuration ***/
configuration theConfig { /* ... */ }
implementation {
components new TimerMilliC() as TimerC1;
components new TimerMilliC() as TimerC2;
components new TimerMilliC() as TimerC3;
components theModule;
theModule.Timer1 -> TimerC1;
theModule.Timer2 -> TimerC2;
theModule.Timer3 -> TimerC3;
}
Hope it helps,
Romain
On 5/21/07, Daniele Frosali <[EMAIL PROTECTED]> wrote:
Hi to everyone,
I would need an information. I have to use in the same applications, three
different timers. How I should write the "Implementation part" and the
"uses interface part"?? Do I have to use something like
Application.Timer -> TimerC.Timer[unique("Timer")];
If yes, how do I have to repeat it???
Thanks a lot for your help.
Daniele
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help