X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=blobdiff_plain;f=tos%2Fplatforms%2Fshimmer2%2Fchips%2Fcc2420%2FHplCC2420InterruptsC.nc;h=d6fc32726155f91f81e96ca00962902975016da3;hp=c1227f3439434a35532817217e9faf99aa66118f;hb=c7c66d524f01bd188feb955638247a9501249733;hpb=cbc79ac5c9d1bbddebbdf5aed5d5b5a6e1aa2997 diff --git a/tos/platforms/shimmer2/chips/cc2420/HplCC2420InterruptsC.nc b/tos/platforms/shimmer2/chips/cc2420/HplCC2420InterruptsC.nc index c1227f34..d6fc3272 100644 --- a/tos/platforms/shimmer2/chips/cc2420/HplCC2420InterruptsC.nc +++ b/tos/platforms/shimmer2/chips/cc2420/HplCC2420InterruptsC.nc @@ -46,6 +46,8 @@ configuration HplCC2420InterruptsC { provides interface GpioCapture as CaptureSFD; + provides interface GpioInterrupt as InterruptSFD; + provides interface GpioInterrupt as InterruptCCA; provides interface GpioInterrupt as InterruptFIFOP; @@ -53,20 +55,26 @@ configuration HplCC2420InterruptsC { implementation { - components HplMsp430GeneralIOC as GeneralIOC; - components Msp430TimerC; - components new GpioCaptureC() as CaptureSFDC; - CaptureSFDC.Msp430TimerControl -> Msp430TimerC.ControlA1; - CaptureSFDC.Msp430Capture -> Msp430TimerC.CaptureA1; - CaptureSFDC.GeneralIO -> GeneralIOC.Port10; - components HplMsp430InterruptC; components new Msp430InterruptC() as InterruptCCAC; components new Msp430InterruptC() as InterruptFIFOPC; + components new Msp430InterruptC() as InterruptSFDC; + InterruptCCAC.HplInterrupt -> HplMsp430InterruptC.Port27; InterruptFIFOPC.HplInterrupt -> HplMsp430InterruptC.Port12; + InterruptSFDC.HplInterrupt -> HplMsp430InterruptC.Port10; + + components HplCC2420InterruptsP; + components LocalTimeMilliC; + components new GpioCaptureC() as CaptureSFDC; + components HplCC2420PinsC; + + CaptureSFD = HplCC2420InterruptsP.CaptureSFD; + + HplCC2420InterruptsP.InterruptSFD -> InterruptSFDC.Interrupt; + HplCC2420InterruptsP.LocalTime -> LocalTimeMilliC; - CaptureSFD = CaptureSFDC.Capture; InterruptCCA = InterruptCCAC.Interrupt; InterruptFIFOP = InterruptFIFOPC.Interrupt; + InterruptSFD = InterruptSFDC.Interrupt; }