[Tinyos-help] Platform specific code sections
Alex Mason
A.Mason at 2005.ljmu.ac.uk
Thu Mar 1 05:53:34 PST 2007
Hi,
I haven't been able to find the answer to this question in the
documentation, so here goes. Is it possible to define platform specific
code within TOS2.x applications? I for example:
If PLATFORM = Mica2 {
...
...
...
}
Else if PLATFORM = Micaz {
...
...
...
}
There are just a few subtle differences in how each platform handles some
operations, and so rather than having different application versions for
each, I would like to do this if it is possible. I remember seeing
something like:
#ifndef PLATFORM_PC
...
...
#endif
When I was working in TOS1.x, but iirc that was more for TOSSIM than
anything else.
Cheers,
Alex.
More information about the Tinyos-help
mailing list