From 8f6aa105c7d5efe77267d06eb16ade8bd55832cc Mon Sep 17 00:00:00 2001 From: smckown Date: Sun, 10 May 2009 00:00:32 +0000 Subject: [PATCH] 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. --- tos/chips/msp430/usci/Msp430SpiP.nc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.39.2