]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/cc2420/CC2420SpiC.nc
Fixed SPI bus crashing issue by adding in a SplitControl interface to shut it down...
[tinyos-2.x.git] / tos / chips / cc2420 / CC2420SpiC.nc
index 97885031ea37818c6367fde9611aef06e0172145..6e4cb2176e9f14db5b67d71b2d383b381cb47c09 100644 (file)
@@ -38,6 +38,7 @@
 
 generic configuration CC2420SpiC() {
 
+  provides interface SplitControl;
   provides interface Resource;
 
   // commands
@@ -85,7 +86,8 @@ implementation {
   components CC2420SpiP as Spi;
   
   Resource = Spi.Resource[ CLIENT_ID ];
-
+  SplitControl = Spi.SplitControl;
+  
   // commands
   SFLUSHRX = Spi.Strobe[ CC2420_SFLUSHRX ];
   SFLUSHTX = Spi.Strobe[ CC2420_SFLUSHTX ];