[Tinyos-help] (no subject)
Paul Stickney
pstickne at gmail.com
Tue May 27 22:55:12 PDT 2008
In short: you can NOT use any-old standard C function. These depend on
the C lib/rt.
(This isn't entirely true and some C ``functions'' are really macros, etc....)
You should use one of the supplied Random components (RandomC,
RandomMlcgC, RandomLfsrC).
However, nesC is a super-set of C that converts nesC code into C
(which is compiled by say, avr-gcc)-- that is, all the operators and C
syntax work exactly as you expect. (And of course, make sure to follow
the C specs, e.g. NULL is not necessarily a "integer of all zero
bits").
HTH,
Paul
More information about the Tinyos-help
mailing list