]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/mac/tkn154/RadioClientC.nc
- re-designed the radio driver interfaces, restructured/improved the CC2420 radio...
[tinyos-2.x.git] / tos / lib / mac / tkn154 / RadioClientC.nc
index 551679c22604e8b54fa9a153448e8e300e80dd72..4412d21a79de89b43efd5df59f8fc0a86e7fc737 100644 (file)
  * @author Jan Hauer <hauer@tkn.tu-berlin.de>
  * ========================================================================
  */
+
 #include "TKN154_MAC.h"
 generic configuration RadioClientC() 
 {
   provides
   {
+    interface RadioOff;
     interface RadioRx;
     interface RadioTx;
-    interface RadioOff;
+    interface SlottedCsmaCa;
+    interface UnslottedCsmaCa;
     interface Resource as Token;
     interface ResourceRequested as TokenRequested;
     interface ResourceTransfer;
@@ -60,6 +63,8 @@ implementation
   RadioRx = RadioControlP.RadioRx[CLIENT];
   RadioTx = RadioControlP.RadioTx[CLIENT];
   RadioOff = RadioControlP.RadioOff[CLIENT];
+  SlottedCsmaCa = RadioControlP.SlottedCsmaCa[CLIENT];
+  UnslottedCsmaCa = RadioControlP.UnslottedCsmaCa[CLIENT];
   Token = RadioControlP.Token[CLIENT];
   IsResourceRequested = RadioControlP.IsResourceRequested;
   TokenRequested = RadioControlP.TokenRequested[CLIENT];