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.

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

Reply via email to