Re: [Tinyos-help] Howto use wait in tossim..

2011-02-03 Thread Philip Levis
No -- as execution in TOSSIM is instantaneous (code runs infinitely fast) there 
is no way to have a busy wait. E.g., if you waited for 10s, then somehow the 
simulation would need to move forward 10 seconds even though lots of other 
things would happen in the meantime. This would require multithreading in the 
simulator.

Phil

On Feb 2, 2011, at 8:30 AM, Giuseppe Barbieri wrote:

 
 I did the following:
 
 ...
 interface BusyWaitTMilli,uint16_t;
 ...
 ...
 components new BusyWaitCounterC(TMilli, uint16_t);
 ...
 ...
 App.BusyWait-BusyWaitCounterC;
 BusyWaitCounterC.Counter-CounterMilli16C;
 ...
 
 
 
 But when I try to compile 
 
 
 : make micaz sim
 
 : cannot find `CounterMilli16C'
 make: *** [sim-exe] Error 1
 
 
 
 
 TinyOs 2.1.1 on Ubuntu 10.04 64bit
 
 
 
 
 I know that CounterMilli16C comes from msp4, but is there a way to use it in 
 tossim?
 
 
 
 
 
 
 
 Giuseppe
 ___
 Tinyos-help mailing list
 Tinyos-help@millennium.berkeley.edu
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Howto use wait in tossim..

2011-02-02 Thread Giuseppe Barbieri
I did the following:

...
interface BusyWaitTMilli,uint16_t;
...
...
components new BusyWaitCounterC(TMilli, uint16_t);
...
...
App.BusyWait-BusyWaitCounterC;
BusyWaitCounterC.Counter-CounterMilli16C;
...


But when I try to compile


: make micaz sim

: cannot find `CounterMilli16C'
make: *** [sim-exe] Error 1



TinyOs 2.1.1 on Ubuntu 10.04 64bit




I know that CounterMilli16C comes from msp4, but is there a way to use
it in tossim?



Giuseppe
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help