[Tinyos-help] Help: Calling TinyOS from C
Philip Levis
pal at cs.stanford.edu
Mon Aug 4 09:18:41 PDT 2008
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
More information about the Tinyos-help
mailing list