]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/cc2420/CC2420CsmaC.nc
Update of the default CC2420 to the low power listening stack. The "acknowledgement...
[tinyos-2.x.git] / tos / chips / cc2420 / CC2420CsmaC.nc
index 34620ba8a4f687bbc86c5ad7c216c23e053b961d..5f052a5c7fc7c270ba4e07891769cd884ab8aa63 100644 (file)
 configuration CC2420CsmaC {
 
   provides interface SplitControl;
-
   provides interface Send;
   provides interface Receive;
-
-  uses interface AMPacket;
+  provides interface RadioBackoff[am_id_t amId];
 
 }
 
 implementation {
 
   components CC2420CsmaP as CsmaP;
-
+  RadioBackoff = CsmaP;
   SplitControl = CsmaP;
   Send = CsmaP;
-  AMPacket = CsmaP;
 
+  components MainC;
+  MainC.SoftwareInit -> CsmaP;
+  
+  components CC2420ActiveMessageC;
+  CsmaP.AMPacket -> CC2420ActiveMessageC;
+  
   components CC2420ControlC;
-  AMPacket = CC2420ControlC;
   CsmaP.Resource -> CC2420ControlC;
   CsmaP.CC2420Power -> CC2420ControlC;
 
   components CC2420TransmitC;
-
   CsmaP.SubControl -> CC2420TransmitC;
   CsmaP.CC2420Transmit -> CC2420TransmitC;
-  CsmaP.CsmaBackoff -> CC2420TransmitC;
+  CsmaP.SubBackoff -> CC2420TransmitC;
 
   components CC2420ReceiveC;
   Receive = CC2420ReceiveC;
   CsmaP.SubControl -> CC2420ReceiveC;
 
+  components CC2420PacketC;
+  CsmaP.CC2420Packet -> CC2420PacketC;
+  
   components RandomC;
   CsmaP.Random -> RandomC;
 
   components LedsC as Leds;
   CsmaP.Leds -> Leds;
-
-  components MainC;
-  MainC.SoftwareInit -> CsmaP;
-  MainC.SoftwareInit -> CC2420ControlC;
-  MainC.SoftwareInit -> CC2420TransmitC;
-  MainC.SoftwareInit -> CC2420ReceiveC;
+  
 }