On Nov 24, 2009, at 2:08 AM, Akankshu Dhawan wrote: > Hi All > I have to set the timer to periodically fire after every 12 minutes. > 12*60*1024=737280 should be the maximum value... but while compiling > i get overload warning. > > since its period can be unsigned 32 bit integer i expect it be able > to handle these values. > > Can someone tell me what is the max period that I can set ? > > Also > > Is there any difference in providing period as "12*60*1024" Vs > "737280" .... exact value Vs product of products ?? > > > I would be grateful to anyone who can help me with this
Note that on most microcontrollers an int defaults to 16, not 32 bits. So you need to explicitly declare 32 bits (e.g., 12L * 60L, etc.). Phil _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
