timesyncc.nc
来自「Tinyos LEACH protocol modify」· NC 代码 · 共 26 行
NC
26 行
includes MH;configuration TimeSyncC{ provides { interface StdControl; interface GlobalTime; }}implementation { components TimeSyncM, SimpleTime, LedsC, TimerC, QueuedSend as TSQueuedSend, GenericComm as TSComm; StdControl = TimeSyncM.StdControl; GlobalTime = TimeSyncM.GlobalTime; TimeSyncM.TimerControl -> TimerC.StdControl; TimeSyncM.SimpleControl -> SimpleTime.StdControl; TimeSyncM.TSQControl -> TSQueuedSend.StdControl; TimeSyncM.TSCommControl -> TSComm.Control; TimeSyncM.Time -> SimpleTime.Time; TimeSyncM.Leds -> LedsC.Leds; TimeSyncM.SendMsg -> TSQueuedSend.SendMsg[AM_TIMESYNC]; TimeSyncM.ReceiveMsg -> TSComm.ReceiveMsg[AM_TIMESYNC]; TimeSyncM.Timer -> TimerC.Timer[unique("Timer")];}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?