Put an atomic section around the code that accesses these variables.

Eric


On Mon, Mar 31, 2008 at 8:21 AM, gaurav mathur <[EMAIL PROTECTED]> wrote:
>
> hi,
> I have modified blinkToRadio code to send a packet to base station whenever
> there is an interrupt on port 27 of msp430 (Tmote Sky).
> And if there is no interrupt then after 10000 ms node sends its battey
> voltage.
>
> I am getting following warnings
>
> /opt/msp430/msp430/include/msp430/gpio.h:141: warning: non-atomic accesses
> to shared variable `P2IFG':
> /opt/tinyos-2.x/tos/chips/msp430/pins/HplMsp430InterruptP.nc:202: warning:
> non-atomic r/w
> /opt/msp430/msp430/include/msp430/gpio.h:145: warning: non-atomic accesses
> to shared variable `P2IE':
> /opt/tinyos-2.x/tos/chips/msp430/pins/HplMsp430InterruptP.nc:186: warning:
> non-atomic r/w
>
>
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to