[Tinyos-help] Call external function of C in nesC

Chan kenniel kennielchan at gmail.com
Fri Sep 21 02:06:42 PDT 2007


Dear all,

We are about to make a nesc program testing application. The application
will insert some functions into the source code so that the running
environment can be recorded. Something like:
source:
While (i)
{
...
i++;
}
inserted:
while(i)
{
record(i) //inserted code
...
i++
}
The problem comes that current record() is written by c. And when I try to
compile the inserted code, and error of implicit declaration occurred. I am
wondering if there is any way I can make my function recognized by the
compiler, just like those familiar functions such as memcpy or printf, which
can be recognized by nesc compiler?

-- 
Best wishes,
Kenneth Chan

------------------------
Wish you have a good day!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070921/e8fae439/attachment.htm


More information about the Tinyos-help mailing list