Hi,

According to the document for TOSSIM in Tinyos-2.x, it only supports micaz now and their implementation is under the "sim" directory.

[EMAIL PROTECTED] tos]$ find . -name sim
./platforms/micaz/sim
./platforms/micaz/chips/cc2420/sim
./platforms/mica/sim
./chips/atm128/sim
./chips/atm128/pins/sim
./chips/atm128/spi/sim
./chips/atm128/timer/sim

I thought ./platforms/micaz/chips/cc2420/sim is the implementation for cc2420, but the file SimCC2420C.nc under ./platforms/micaz/chips/cc2420/sim is without implemenation (see the following).

Any idea why it is so? Where can I find the Tossim implementation for cc2420 in Tinyos-2.x? Many thanks.


Regards,
Haibin




/**
 * Simulated implementation of the CC2420 radio chip. It is an
 * SPI end point, and also signals some interrupts/GPIO pins.\
 * This is a pretty complicated component, so be aware that it
 * may be very helpful to have the CC2420 data sheet nearby.
 *
 * @author Philip Levis
 * @date   November 22 2005
 */

module SimCC2420C {

  provides {
    interface Init;
    interface Resource[uint8_t] as SpiResource;
    interface SPIByte;
    interface SPIPacket;
    interface GeneralIO as CCA;
    interface GeneralIO as CSN;
    interface GeneralIO as FIFO;
    interface GeneralIO as FIFOP;
    interface GeneralIO as RSTN;
    interface GeneralIO as SFD;
    interface GeneralIO as VREN;
    interface GpioCapture as CaptureSFD;
    interface GpioInterrupt as InterruptFIFOP;
  }
 
  uses {
    interface Resource[uint8_t] as SubSpiResource;
    interface ArbiterInfo as SpiUser;
    interface McuPowerState;
  }

 
}

implementation {

 
 
}
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to