]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/msp430/usart/Msp430Spi1C.nc
Mark Hays repair the SPI code, unit testing demonstrates SPI0 w/ and w/out DMA works...
[tinyos-2.x.git] / tos / chips / msp430 / usart / Msp430Spi1C.nc
index 1c777d9c9c6b50c1b6dcc2a9e34761476d7f6711..61363f331b0e69ebd083a618c1f54636f20c4c94 100644 (file)
@@ -36,6 +36,7 @@
  * place of Msp430SpiNoDma0P.
  *
  * @author Jonathan Hui <jhui@archedrock.com>
+ * @author Mark Hays
  * @version $Revision$ $Date$
  */
 
@@ -56,7 +57,13 @@ implementation {
     CLIENT_ID = unique( MSP430_SPI1_BUS ),
   };
 
+#ifdef ENABLE_SPI1_DMA
+#warning "Enabling SPI DMA on USART1"
+  components Msp430SpiDma1P as SpiP;
+#else
   components Msp430SpiNoDma1P as SpiP;
+#endif
+
   Resource = SpiP.Resource[ CLIENT_ID ];
   SpiByte = SpiP.SpiByte;
   SpiPacket = SpiP.SpiPacket[ CLIENT_ID ];