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 BusyWait<TMilli,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 > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
