low power states.
#include <Atm128Adc.h>
#include <MicaTimer.h>
+// enum so components can override power saving,
+// as per TEP 112.
+enum {
+ TOS_SLEEP_NONE = ATM128_POWER_IDLE,
+};
+
// A/D constants (channels, etc)
enum {
CHANNEL_RSSI = ATM128_ADC_SNGL_ADC2,
#include "msp430hardware.h"
+// enum so components can override power saving,
+// as per TEP 112.
+enum {
+ TOS_SLEEP_NONE = MSP430_POWER_ACTIVE,
+};
+
// LEDS
TOSH_ASSIGN_PIN(RED_LED, 4, 0);
TOSH_ASSIGN_PIN(GREEN_LED, 4, 3);
#include "msp430hardware.h"
+// enum so components can override power saving,
+// as per TEP 112.
+enum {
+ TOS_SLEEP_NONE = MSP430_POWER_ACTIVE,
+};
+
// LED assignments
TOSH_ASSIGN_PIN(RED_LED, 5, 0); // Compatibility with the mica2
TOSH_ASSIGN_PIN(GREEN_LED, 5, 1);
#include "msp430hardware.h"
+// enum so components can override power saving,
+// as per TEP 112.
+enum {
+ TOS_SLEEP_NONE = MSP430_POWER_ACTIVE,
+};
+
// LED assignments
TOSH_ASSIGN_PIN(RED_LED, 5, 0); // Compatibility with the mica2
TOSH_ASSIGN_PIN(GREEN_LED, 5, 1);
#include "pxa27xhardware.h"
//#include "AM.h"
+// enum so components can override power saving,
+// as per TEP 112.
+// Note that currently the pxa27x does not support
+// McuPowerOverride, so SLEEP_NONE is defined to
+// be 0.
+enum {
+ TOS_SLEEP_NONE = 0,
+};
+
#define MIN(a,b) ((a) < (b) ? (a) : (b))
/* Watchdog Prescaler
#include <Atm128Adc.h>
#include <MicaTimer.h>
+// enum so components can override power saving,
+// as per TEP 112.
+enum {
+ TOS_SLEEP_NONE = ATM128_POWER_IDLE,
+};
+
// A/D channels
enum {
CHANNEL_RSSI = ATM128_ADC_SNGL_ADC0,
#include <Atm128Adc.h>
#include <MicaTimer.h>
+// enum so components can override power saving,
+// as per TEP 112.
+enum {
+ TOS_SLEEP_NONE = ATM128_POWER_IDLE,
+};
+
// A/D channels
enum {
CHANNEL_RSSI = ATM128_ADC_SNGL_ADC0,
#include <Atm128Adc.h>
#include <MicaTimer.h>
+// enum so components can override power saving,
+// as per TEP 112.
+enum {
+ TOS_SLEEP_NONE = ATM128_POWER_IDLE,
+};
+
// A/D channels
enum {
CHANNEL_THERMISTOR = ATM128_ADC_SNGL_ADC1 // normally unpopulated
return value;
}
+// enum so components can override power saving,
+// as per TEP 112.
+// As this is not a real platform, just set it to 0.
+enum {
+ TOS_SLEEP_NONE = 0,
+};
+
+
#endif
#define SHIMMER 1
+// enum so components can override power saving,
+// as per TEP 112.
+enum {
+ TOS_SLEEP_NONE = MSP430_POWER_ACTIVE,
+};
+
// LEDs
TOSH_ASSIGN_PIN(RED_LED, 4, 0);
TOSH_ASSIGN_PIN(ORANGE_LED, 4, 1);
#include "msp430hardware.h"
+// enum so components can override power saving,
+// as per TEP 112.
+enum {
+ TOS_SLEEP_NONE = MSP430_POWER_ACTIVE,
+};
+
// LEDs
TOSH_ASSIGN_PIN(RED_LED, 5, 4);
TOSH_ASSIGN_PIN(GREEN_LED, 5, 5);
#define _H_hardware_h
#include "msp430hardware.h"
-//#include "MSP430ADC12.h"
-//#include "CC2420Const.h"
-//#include "AM.h"
+
+// enum so components can override power saving,
+// as per TEP 112.
+enum {
+ TOS_SLEEP_NONE = MSP430_POWER_ACTIVE,
+};
// LEDs
TOSH_ASSIGN_PIN(RED_LED, 5, 4);
#include "msp430hardware.h"
+// enum so components can override power saving,
+// as per TEP 112.
+enum {
+ TOS_SLEEP_NONE = MSP430_POWER_ACTIVE,
+};
// XE1205 radio
TOSH_ASSIGN_PIN(NSS_DATA, 1, 0);