The tothreads implementation does this al over the place. Take a look
at tinyos-2.x/tos/lib/tosthreads/csystem/CLedsP.nc for an example of
how to wrap nesC code to make it callable from C. (In the CVS head).
Kevin
On Wed, Jul 9, 2008 at 7:28 AM, Antonio <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I would like to integrate my TinyOS application with C files (".c" or ".h"
> files),
> So I can use old pieces of programs in my TinyOS application.
>
> I did it and it works fine if my C modules are just functions and variables,
> something about the following code:
>
> ______________________________________
> static unsigned long count=0;
>
> unsigned long giveMe(void)
> {
> count++;
> return (count%3);
> }
> _____________________________________
>
> What if I want to call TinyOS functions from C files?
> What can I do if I need to switch a Led on from "giveMe" function?
>
>
> Regards,
> Antonio Guerrieri
>
>
>
> --
> Email.it, the professional e-mail, gratis per te: http://www.email.it/f
>
> Sponsor:
> RICCIONE FAMILY HOTELS:
> * Cerchi un hotel per famiglie a Riccione ? Visita il sito
> Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=8059&d=9-7
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
--
~Kevin
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help