Hi,

I am using TinyOS 1.1.6
I tried to call the SysTime.get32() in every Timer fired but I can't
get 32 bit long unsigned integer,It showed that the timer still
overflow when it reached the value 65536 and re-count again.Why this
could happen?

event result_t Timer0.fired(){
uint32_t localtime;
atomic {
                localtime = call SysTime.getTime32();
        }
       sprintf(SerialMsg,"%u abc \r\n",localtime);
      UARTOutput(DBG_ERROR,"%s",&SerialMsg);
    call Leds.redToggle();
    return SUCCESS;

}
_______________________________________________
Tinyos-users mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-users

Reply via email to