]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
This change is required to remove async warnings in the phase2 app. release/2.1.0-1
authorsmckown <smckown@4bc1554a-c7f2-4f65-a403-e0be01f0239c>
Sun, 10 May 2009 00:00:32 +0000 (00:00 +0000)
committerR. Steve McKown <rsmckown@gmail.com>
Tue, 1 Dec 2009 03:01:33 +0000 (20:01 -0700)
Need to look into this closer.  This doesn't make sense, as the sporian0010_02
platform, which uses the usart SPI peripheral, doesn't generate these errors
and that peripheral's SpiPacket.sendDone() doesn't specifically signal
atomically.

tos/chips/msp430/usci/Msp430SpiP.nc

index b4a25436232a75d2e5010ce30edac84395a8c8db..6d8e9f4cea8eb6fa26960f90c17f5dfe4bbbe165 100644 (file)
@@ -166,7 +166,7 @@ implementation {
     error_t error = (m_pos == m_len) ? SUCCESS : FAIL;
 
     m_len = 0;
-    signal SpiPacket.sendDone(m_txBuf, m_rxBuf, m_pos, error);
+    atomic signal SpiPacket.sendDone(m_txBuf, m_rxBuf, m_pos, error);
   }
 
   async command void ResourceConfigure.unconfigure()