Dear Giuseppe, Reading this TEP will be very helpful. http://www.tinyos.net/tinyos-2.x/doc/html/tep102.html. BTW You can also create new timers yourself too.
best regards, -- Faisal Aslam University of Freiburg http://cone.informatik.uni-freiburg.de/people/aslam/ Marcus Autenrieth wrote: > Hi, > > Am Sat, 28 Nov 2009 15:35:58 +0000 > schrieb Giuseppe Aiello <[email protected]>: > > >> i'd like to set the period of a timer<TMilli> to a floating value >> like 5.5 ms. Is possible to do that? >> > That depends on the architecture you are using. Some chips cannot do > floating point computations. > > >> the command startPeriodic(dt) >> takes as argument an uint32_t and so it cuts off the value to 5. Is >> there a way to store a floating value in a uint32? >> > Well, in C many things are possible, but most are deep dark magic, so > prepare to be excommunicated if you give it a try ;-) > > >> Or use a timer with Microsec. resolution? I havent't found an >> implementation for the interface Timer<TMicro>. I'd like to use it >> with an atm128 microcontroller with tinyos 2. >> > Then there possibly is none such timer. But, depending on your > hardware, you might find a Timer operating in a suitable frequency. > On the TelosB platform, for example, you have access to a 32kHz Timer. > > Cheers,... > -- > Marcus. > > ------------------------------------------------------------------------ > > _______________________________________________ > 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
