Hello,

I have a C project that uses different "backends" than just nesC.
I'd rather keep a single file and use a mechanism to interface with the
different backends.
>From inside my code I use a macro named OUTPUT, which is the single point
that has to be redefined for each "backend".
For nesC I would like the following to work:

#define OUTPUT(id, size, buf)    signal IO.output(id, size, buf)

This of course does not work, as the right part is nesC specific.
I examined the generated app.c in the build directory, and came up with
this:

#define OUTPUT(id, size, buf)    MYPRJC$IO$output(id, size, buf)

Now it complains about the '$' character:

../myprj.c:156: stray $ in program

Is there a solution for this?

Thanks,
Francisco
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to