On Jul 26, 2008, at 5:14 PM, Faisal Aslam wrote: > Thanks for your reply. If I cannot call TinyOS from my C code then > can I > call my C from NecC code? > That might also work although I prefer calling TinyOS.
Yes. nesC is simply a C dialect. You can put all of your C code inside a component and just run it from there. The one problem you might run into, though, is TinyOS is an operating system. Therefore, it assumes it controls hardware resources, and most drivers use its abstractions (e.g., timers). If your C code assumes it can start messing with random control and data registers, you might run into some problems. Phil _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
