testdhvc-master.nc

来自「tinyos-2.x.rar」· NC 代码 · 共 30 行

NC
30
字号
#include "TestDhv.h"

configuration TestDhvC {

}

implementation {
  components TestDhvP;
  components LedsC as LedsC;
  TestDhvP.Leds -> LedsC;

  components DisseminationC;
  TestDhvP.StdControl -> DisseminationC;
  /*
  components new DisseminatorC(uint32_t, 0x1) as Dissem1;
  TestDhvP.DisseminationValue1 -> Dissem1;
  TestDhvP.DisseminationUpdate1 -> Dissem1;
  */

  // ... DISSEMINATORS

  components MainC;
  TestDhvP.Boot -> MainC;

  components SerialActiveMessageC;
  components new SerialAMSenderC(AM_DHV_TEST_MSG);
  TestDhvP.SerialSend -> SerialAMSenderC;
  TestDhvP.SerialControl -> SerialActiveMessageC;
}

⌨️ 快捷键说明

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