* Configuration for the fixed Rssi Threshold module.
*
* @author: Kevin Klues (klues@tkn.tu-berlin.de)
+ * @author: Andreas Koepke (koepke@tkn.tu-berlin.de)
*/
+// #define RSSI_FIXED_DEBUG
configuration RssiFixedThresholdCMC
{
provides {
interface ChannelMonitorControl;
interface ChannelMonitorData;
interface BatteryLevel;
+ interface Resource as RssiAdcResource;
}
}
implementation
components RssiFixedThresholdCMP,
new RssiSensorVccC() as Rssi,
new BatteryLevelSensorC() as Voltage,
- // PlatformLedsC,
new TimerMilliC() as Timer,
MainC;
MainC.SoftwareInit -> RssiFixedThresholdCMP;
StdControl = RssiFixedThresholdCMP;
-
+ RssiAdcResource = Rssi;
+
RssiFixedThresholdCMP.Rssi -> Rssi;
- // RssiFixedThresholdCMP.RssiAdcResource -> Rssi;
-
RssiFixedThresholdCMP.Voltage -> Voltage;
ChannelMonitor = RssiFixedThresholdCMP;
ChannelMonitorControl = RssiFixedThresholdCMP;
ChannelMonitorData = RssiFixedThresholdCMP;
BatteryLevel = RssiFixedThresholdCMP;
- // RssiFixedThresholdCMP.Led3 -> PlatformLedsC.Led3;
+
RssiFixedThresholdCMP.Timer -> Timer;
+#ifdef RSSI_FIXED_DEBUG
+ components new SerialDebugC() as SD;
+ RssiFixedThresholdCMP.SerialDebug -> SD;
+#endif
}