The prototype in TinyOS should be annotated with the attributes @C() and @spontaneous(). The former prevents mangling the name of your event handler, the latter will tell the compiler that it's an entry point, and there are calls to it that are not visible from inside the source code.
You can compile your C code to an object file, and include the name of the object file in CFLAGS in the makefile of the TinyOS app. The TinyOS make system will take care of linking for you. Janos From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jack Travis Sent: Tuesday, April 15, 2008 8:43 AM To: tiny help Subject: [Tinyos-help] implementing an event in TinyOS that is triggered bylow level C functions hi all, The idea is to implement the body of an event in TinyOs. This event is signaled in low level C function. Is it possible? How should I setup my includes and where should I put the event prototype? Thanks,
_______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help