-/* tab:4
+/*
* IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. By
* downloading, copying, installing or using the software you agree to
* this license. If you do not agree to this license, do not download,
#ifndef HARDWARE_H
#define HARDWARE_H
+#ifndef MHZ
+/* Clock rate is 4MHz except if specified by user
+ (this value must be a power of 2, see MicaTimer.h and MeasureClockC.nc) */
+#define MHZ 4
+#endif
+
#include <atm128hardware.h>
#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_BATTERY_THERMISTOR = ATM128_ADC_SNGL_ADC1
};
-#ifndef MHZ
-/* Clock rate is 4MHz except if specified by user
- (this value must be a power of 2, see MicaTimer.h and MeasureClockC.nc) */
-#define MHZ 4
-#endif
-
enum {
PLATFORM_BAUDRATE = 19200L
};