#define TINYOS_6LOWPAN_NETWORK_ID 0x3f
#endif
-/**
- * The LPL defaults to stay-on.
- */
-#ifndef LPL_DEF_LOCAL_WAKEUP
-#define LPL_DEF_LOCAL_WAKEUP 0
-#endif
-
-#ifndef LPL_DEF_REMOTE_WAKEUP
-#define LPL_DEF_REMOTE_WAKEUP 0
-#endif
-
enum {
// size of the header not including the length byte
MAC_HEADER_SIZE = sizeof( cc2420_header_t ) - 1,
} lpl_sendstate_t;
-/**
- * Amount of time, in milliseconds, to keep the radio on after
- * a successful receive addressed to this node
- */
-#ifndef DELAY_AFTER_RECEIVE
-#define DELAY_AFTER_RECEIVE 100
-#endif
-
/**
* This is a measured value of the time in ms the radio is actually on
* We round this up to err on the side of better performance ratios
* @author David Moss
*/
+#include "Lpl.h"
#include "DefaultLpl.h"
#include "AM.h"
implementation
{
-#ifndef LPL_DEF_LOCAL_WAKEUP
-#define LPL_DEF_LOCAL_WAKEUP 0
-#endif
-
enum
{
// minimum wakeup time to catch a transmission in milliseconds
+#include "Lpl.h"
+
module SystemLowPowerListeningP
{
provides interface SystemLowPowerListening;
--- /dev/null
+#ifndef LPL_H
+#define LPL_H
+
+/**
+ * Amount of time, in milliseconds, to keep the radio on after
+ * a successful receive addressed to this node
+ */
+#ifndef DELAY_AFTER_RECEIVE
+#define DELAY_AFTER_RECEIVE 100
+#endif
+
+/**
+ * The LPL defaults to stay-on.
+ */
+#ifndef LPL_DEF_LOCAL_WAKEUP
+#define LPL_DEF_LOCAL_WAKEUP 0
+#endif
+
+#ifndef LPL_DEF_REMOTE_WAKEUP
+#define LPL_DEF_REMOTE_WAKEUP 0
+#endif
+
+#endif