]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/iris/chips/rf230/HplRF230C.nc
separate the FastSpiInterface from the HplRF230 interface
[tinyos-2.x.git] / tos / platforms / iris / chips / rf230 / HplRF230C.nc
index 113d47cd7030e53747e70d313afa0b0a4a30b055..0394f93e31208dca324759b3127064a13cfd034f 100644 (file)
@@ -29,13 +29,13 @@ 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 Alarm<TRadio, uint16_t> as Alarm;
 
                interface HplRF230;
        }
@@ -49,13 +49,11 @@ 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 = HplRF230P;
 
        components HplAtm128GeneralIOC as IO;
        SLP_TR = IO.PortB7;