From: smckown Date: Sun, 10 May 2009 00:00:32 +0000 (+0000) Subject: This change is required to remove async warnings in the phase2 app. X-Git-Tag: release/2.1.0-1 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=8f6aa105c7d5efe77267d06eb16ade8bd55832cc This change is required to remove async warnings in the phase2 app. 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. --- diff --git a/tos/chips/msp430/usci/Msp430SpiP.nc b/tos/chips/msp430/usci/Msp430SpiP.nc index b4a25436..6d8e9f4c 100644 --- a/tos/chips/msp430/usci/Msp430SpiP.nc +++ b/tos/chips/msp430/usci/Msp430SpiP.nc @@ -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()