]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/iris/chips/rf230/HplRF230C.nc
Merge TinyOS 2.1.1 into master.
[tinyos-2.x.git] / tos / platforms / iris / chips / rf230 / HplRF230C.nc
index 2e48b54ff4e762ab1f6c84d9350aa8dee515f7a0..dd4285a4dfcd6010b16dd48bf20bb7b989f1f624 100644 (file)
@@ -21,7 +21,7 @@
  * Author: Miklos Maroti
  */
 
-#include <HplRF230.h>
+#include <RadioConfig.h>
 
 configuration HplRF230C
 {
@@ -29,15 +29,14 @@ configuration HplRF230C
        {
                interface GeneralIO as SELN;
                interface Resource as SpiResource;
-               interface SpiByte;
+               interface FastSpiByte;
 
                interface GeneralIO as SLP_TR;
                interface GeneralIO as RSTN;
 
                interface GpioCapture as IRQ;
-               interface Alarm<TRF230, uint16_t> as Alarm;
-
-               interface HplRF230;
+               interface Alarm<TRadio, uint16_t> as Alarm;
+               interface LocalTime<TRadio> as LocalTimeRadio;
        }
 }
 
@@ -49,13 +48,9 @@ implementation
        HplRF230P.PortCLKM -> IO.PortD6;
        HplRF230P.PortIRQ -> IO.PortD4;
        
-       // TODO: Ask why the HplAtm128SpiC does SlaveSelect via PortB0
-       // TODO: Remove the unused started field from Atm128SpiP
        components Atm128SpiC as SpiC;
        SpiResource = SpiC.Resource[unique("Atm128SpiC.Resource")];
-       SpiByte = SpiC;
-
-       HplRF230 = HplRF230P;
+       FastSpiByte = SpiC;
 
        components HplAtm128GeneralIOC as IO;
        SLP_TR = IO.PortB7;
@@ -68,8 +63,9 @@ implementation
        components new AlarmOne16C() as AlarmC;
        Alarm = AlarmC;
 
-       // TODO: do these from PlatformC
-       components RealMainP, RF230LayerC;
+       components RealMainP;
        RealMainP.PlatformInit -> HplRF230P.PlatformInit;
-       RealMainP.PlatformInit -> RF230LayerC.PlatformInit;
+
+       components LocalTimeMicroC;
+       LocalTimeRadio = LocalTimeMicroC;
 }