[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/msp430/usart
Msp430SpiDmaP.nc, 1.5, 1.6
dmm
rincon at users.sourceforge.net
Thu Feb 28 09:28:14 PST 2008
Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/msp430/usart
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv27165
Modified Files:
Msp430SpiDmaP.nc
Log Message:
Roman Lim's fix:
"i noticed that my application (running on tmotes) using dma on spi does not go to the lowest possible sleep mode but only to LPM1.
i managed to find out, that in McusleepC when calculating the lowpower mode, ME1 had the USPIE bit set. this is, because in Msp430SpiDmaP the unconfigure command does nothing. I don't know, if this is done on purpose, but if not, the same code as in Msp430SpiNoDmaP would do the job (see follwing diff)
roman"
Index: Msp430SpiDmaP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/msp430/usart/Msp430SpiDmaP.nc,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Msp430SpiDmaP.nc 8 Nov 2007 21:34:42 -0000 1.5
--- Msp430SpiDmaP.nc 28 Feb 2008 17:28:12 -0000 1.6
***************
*** 33,36 ****
--- 33,37 ----
* @author Jonathan Hui <jhui at archedrock.com>
* @author Mark Hays
+ * @author Roman Lim
* @version $Revision$ $Date$
*/
***************
*** 90,93 ****
--- 91,97 ----
async command void ResourceConfigure.unconfigure[ uint8_t id ]() {
+ call Usart.resetUsart(TRUE);
+ call Usart.disableSpi();
+ call Usart.resetUsart(FALSE);
}
More information about the Tinyos-2-commits
mailing list