📄 timesyncc.nc
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -