Are you maybe converting the uint32_t into an int32_t? How do you know
it is negative? Because a uint32_t is never negative, per definition,
except if you cast it into a different signed type.

Cheers,

Thomas

On Fri, Nov 13, 2009 at 7:25 AM, Robert Smith <[email protected]> wrote:
> Hi,
>
> I am currently using TinyOS2.x, and tyring to use microseconds in mica
> platform.
> I used CounterMicro32C to get microsec counter, and after awhile, the return
> value becomes negative value.
> CounterMicro32C provides interface Counter with uint32_t format, but why am
> I getting negative values from this?
>
> Best Regards,
> Rob
>
>
> _______________________________________________
> 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

Reply via email to