]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/net/Deluge/DelugeC.nc
Address the comments from Phil Levis about burn and burn-net. The availability for...
[tinyos-2.x.git] / tos / lib / net / Deluge / DelugeC.nc
index 4759e4da596dc6cf4c5646c500e2877dc51e9d4f..50adc25f59f4e7953f6cab95c76ad13faa35c1cd 100644 (file)
 #include "Deluge.h"
 #include "StorageVolumes.h"
 
-configuration DelugeC {}
+configuration DelugeC
+{
+  uses interface Leds;
+}
 
 implementation
 {
@@ -52,13 +55,13 @@ implementation
   ObjectTransferC.BlockWrite[VOLUME_DELUGE0] -> DelugeStorageC.BlockWrite[VOLUME_DELUGE0];
   ObjectTransferC.BlockRead[VOLUME_DELUGE1] -> DelugeStorageC.BlockRead[VOLUME_DELUGE1];
   ObjectTransferC.BlockWrite[VOLUME_DELUGE1] -> DelugeStorageC.BlockWrite[VOLUME_DELUGE1];
+  ObjectTransferC.Leds = Leds;
   
   components new DisseminatorC(DelugeDissemination, 0xDE00), DisseminationC;
   components ActiveMessageC;
   components NetProgC, DelugeP;
   components new TimerMilliC() as Timer;
-  components LedsC, NoLedsC;
-  DelugeP.Leds -> LedsC;  
+  DelugeP.Leds = Leds;  
   DelugeP.DisseminationValue -> DisseminatorC;
   DelugeP.DisseminationUpdate -> DisseminatorC;
   DelugeP.StdControlDissemination -> DisseminationC;