?? tempmon.nc
字號:
/*
* TempMon.nc - The top level configuration for the TempMon program
*
* @author Geoff Martin
* @date 18th April 2004
* @version 1.0
*/
includes TempMon;
includes MH;
configuration TempMon
{
}
implementation
{
components Main, TempMonM, TimerC, Temp, TimeSyncC,
#ifdef FLOODING
MHFloodingRouter as Router;
#endif
#ifdef GOSSIPING
MHGossipingRouter as Router;
#endif
#ifdef LEACH
MHLeachRouter as Router;
#endif
Main.StdControl -> TempMonM.StdControl;
TempMonM.RouterControl -> Router.StdControl;
TempMonM.TempControl -> Temp.StdControl;
TempMonM.TimerControl -> TimerC.StdControl;
TempMonM.SyncControl -> TimeSyncC.StdControl;
TempMonM.ADC -> Temp.TempADC;
TempMonM.Timer -> TimerC.Timer[unique("Timer")];
TempMonM.Send -> Router.Send[AM_TEMPMONMSG];
TempMonM.GlobalTime -> TimeSyncC.GlobalTime;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -