]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/msp430/usart/Msp430SpiDma0P.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 / Msp430SpiDma0P.nc
index 005201d0ba780b65198a35b914eeb63ab15b0929..c1c24d243c19cb24564a4260f62728c36a35994d 100644 (file)
@@ -31,6 +31,7 @@
 
 /**
  * @author Jonathan Hui <jhui@archedrock.com>
+ * @author Mark Hays
  * @version $Revision$ $Date$
  */
 
@@ -49,7 +50,15 @@ configuration Msp430SpiDma0P {
 
 implementation {
 
-  components new Msp430SpiDmaP() as SpiP;
+#include "Msp430Dma.h"
+
+  components new Msp430SpiDmaP(IFG1_,
+                              U0TXBUF_,
+                              UTXIFG0,
+                              (uint16_t) DMA_TRIGGER_UTXIFG0,
+                              U0RXBUF_,
+                              URXIFG0,
+                              (uint16_t) DMA_TRIGGER_URXIFG0) as SpiP;
   Resource = SpiP.Resource;
   ResourceConfigure = SpiP.ResourceConfigure;
   Msp430SpiConfigure = SpiP.Msp430SpiConfigure;