toa.nc

来自「一种改进的节点间测距算法」· NC 代码 · 共 29 行

NC
29
字号

includes ToAMsg;

configuration ToA
{
}

implementation
{
    components Main, ToAM, GenericComm as Comm, Sounder, 
		       MicC,TimerC, SysTimeC,  LedsC, MicroTimerM;
	
	Main.StdControl -> ToAM;
	Main.StdControl -> Comm;	
	ToAM.TimerToA -> TimerC.Timer[unique("Timer")];
	ToAM.TimerSounder -> TimerC.Timer[unique("Timer")];	
	ToAM.TimerSample -> TimerC.Timer[unique("Timer")];
	ToAM.MicroTimerSample -> MicroTimerM;
	ToAM.MicCtrl -> MicC;
	ToAM.SounderCtrl -> Sounder;
	ToAM.SendBeacon -> Comm.SendMsg[SendBeacon];
	ToAM.SendResult -> Comm.SendMsg[SendResult];	
	ToAM.ReceiveBeacon -> Comm.ReceiveMsg[SendBeacon];
	ToAM.SysTime -> SysTimeC;
	ToAM.Mic -> MicC;
	ToAM.MicInterrupt -> MicC;
	ToAM.Leds -> LedsC;		
}	

⌨️ 快捷键说明

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