I'm sorry... but I'm using Tmote Sky, with the MSP430 microcontroller...
You may see the "math.h" file to check the functions prototipes, like "mod" or "pow". In my case (Tmote Sky), I have the file in "C:\cygwin\opt\msp430\msp430\include".
I've not found the "mod" function...

       extern double modf _PARAMS((double, double *));
       extern double fmod _PARAMS((double, double));
       extern float modff _PARAMS((float, float *));
       extern float fmodf _PARAMS((float, float)); ...


El 16/06/2010 19:04, Sam Azzaro escribió:
yes i did in my .nc file , and i'm just trying to simulate on TOSSIM2 with micaz.



------------------------------------------------------------------------
Date: Wed, 16 Jun 2010 18:14:05 +0200
From: [email protected]
To: [email protected]
Subject: Re: [Tinyos-help] arithmetic in NesC ??

Have you included "math.h" in your code ?
Which mote are you working on?

El 16/06/2010 17:54, Sam Azzaro escribió:

    Hello,

    i have a nesc application, in wich i have to use addition modulo 2^w
    i defined:
    #define (a + b)  mod((a + b),pow(2, w))

    but pow is not working like in C
    have you any idea to fix that please?
    thanks,

    Sam

    ------------------------------------------------------------------------
    Hotmail : un service de messagerie gratuit, fiable et complet
    Profitez-en <https://signup.live.com/signup.aspx?id=60969>


    _______________________________________________
    Tinyos-help mailing list
    [email protected]  
<mailto:[email protected]>
    https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

--
Jose A.
Seville, Spain

------------------------------------------------------------------------
Hotmail : une messagerie fiable avec la protection anti-spam performante de Microsoft Inscrivez-vous <https://signup.live.com/signup.aspx?id=60969>

--
Jose A.
Seville, Spain

<<attachment: jostargal.vcf>>

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

Reply via email to