⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bcastc.nc

📁 tinyos2.0版本驱动
💻 NC
字号:
/*
 * Authors:	zhangjiwen
 * $Revision: 1.0 $
 *
 */

/**
 * @author zhangjiwen
 */


#include "Bcast.h"

generic configuration BcastC(am_id_t AMId) {

  provides {
    interface Receive;
    //interface Packet;
  }
}

implementation {
  components BcastP,  new AMReceiverC(AMId), new AMSenderC(AMId) ,ActiveMessageC;
  Receive = BcastP;
  BcastP.ReceiveMsg -> AMReceiverC;
  BcastP.subSend -> AMSenderC;
  BcastP.Packet -> ActiveMessageC;
  BcastP.AMPacket -> ActiveMessageC;
  components new PoolC(message_t, 4), new QueueC(message_t*, 4) ;
  BcastP.Pool -> PoolC;
  BcastP.Queue -> QueueC; 
 // components LedsC;
  //BcastP.Leds -> LedsC;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -