[Tinyos-devel] msp spi dma driver prevents lowpower mode 3

Roman Lim rlim at ee.ethz.ch
Tue Jan 22 08:03:30 PST 2008


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

cvs diff: Diffing .
Index: Msp430SpiDmaP.nc
===================================================================
RCS file: 
/cvsroot/tinyos/tinyos-2.x/tos/chips/msp430/usart/Msp430SpiDmaP.nc,v
retrieving revision 1.5
diff -r1.5 Msp430SpiDmaP.nc
91a92,94
 >     call Usart.resetUsart(TRUE);
 >     call Usart.disableSpi();
 >     call Usart.resetUsart(FALSE);


More information about the Tinyos-devel mailing list