Hi,

I'm currently building library "on top of TinyOS". That means, my module 
in TinyOS must be able to call functions in my library (which works and 
is no problem). The other way around (calling TinyOS functions from my 
library) does not work.

For example, my component has got the following function:
   void register_sth(void)
   {
     dbg("Test", "Registered!\n");
   }

Now I want to call this function from outside, e.g. some file test.cpp:
   extern "C" {
     void BlinkToRadioC$register_sth(void);
   }

   // can be called from my TinyOS component
   extern "C" void test_func(void)
   {
     // this one can not be called
     BlinkToRadioC$register_sth();
   }

Then, BlinkToRadioC$register_sth() is an undefined synmbol, also when I 
make sure that it is present in the object file. I think, the problem is 
that nesc makes it to
   static inline void BlinkToRadioC$register_sth(void);
in the temporarily app.c

Can I either make sure that nesc does not create the "static" keywords 
or is there another approach of "using" a TinyOS from the outside?


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

Reply via email to