On Feb 6, 2006, at 4:57 AM, Martin Gercke wrote:

Thanks,

so what is the deal with this:
typedef u_int16_t uint16_t      (tos\system\tos.h)

In addition what is the difference between unsigned int and uint32_t?
Is unsigned int the same and always 32bit long?

I don't see why we need 2 types. "Just" for convenience?


Look more closely:

// Earlier cygwins do not define uint8_t & co
#ifndef _STDINT_H
#ifndef __uint8_t_defined
#define __uint8_t_defined
typedef u_int8_t uint8_t;
#endif

The issue is that some early Cygwins define u_int8_t rather than uint8_t. So this tests for it and if so, #defines them to the standard names.

Phil
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to