X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fplatforms%2Firis%2Fchips%2Frf230%2FHplRF230C.nc;h=0394f93e31208dca324759b3127064a13cfd034f;hb=813ccd9a39dd0810febb285f17bcd72ba451f536;hp=2e48b54ff4e762ab1f6c84d9350aa8dee515f7a0;hpb=c200f0d798d7f9631eabfb79008615936a52b5af;p=tinyos-2.x.git diff --git a/tos/platforms/iris/chips/rf230/HplRF230C.nc b/tos/platforms/iris/chips/rf230/HplRF230C.nc index 2e48b54f..0394f93e 100644 --- a/tos/platforms/iris/chips/rf230/HplRF230C.nc +++ b/tos/platforms/iris/chips/rf230/HplRF230C.nc @@ -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 as Alarm; + interface Alarm 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; @@ -68,8 +66,6 @@ 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; }