📄 dymotablec.nc
字号:
/*
* Copyright (c) 2007 Romain Thouvenin <romain.thouvenin@gmail.com>
* Published under the terms of the GNU General Public License (GPLv2).
*/
#include "dymo_table.h"
/**
* DymoTableC - Provides a routing table with DYMO routing information.
*
* @author Romain Thouvenin
*/
configuration DymoTableC {
provides {
interface StdControl;
interface RoutingTable;
interface DymoTable;
}
#ifdef DYMO_MONITORING
provides interface RoutingTableInfo;
#endif
uses interface LinkMonitor;
}
implementation {
components new DymoTableM(MAX_TABLE_SIZE);
components new TimerMilliC() as BaseTimer;
components new VirtualizeTimerC(TMilli, MAX_TABLE_SIZE * NB_ROUTE_TIMERS) as Timers;
components TinySchedulerC;
StdControl = DymoTableM.StdControl;
RoutingTable = DymoTableM.RoutingTable;
DymoTable = DymoTableM.DymoTable;
LinkMonitor = DymoTableM.LinkMonitor;
DymoTableM.Timer -> Timers;
Timers.TimerFrom -> BaseTimer.Timer;
#ifdef DYMO_MONITORING
RoutingTableInfo = DymoTableM.RoutingTableInfo;
#endif
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -