]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/mica2dot/hardware.h
add timer 0 threshold for ext standby vs power save sleep mode selection
[tinyos-2.x.git] / tos / platforms / mica2dot / hardware.h
index f2e9c07addd4b84f2e40cd43800a454fa3238519..918514f36913a3b04b601a90d6f8c66bb1677728 100644 (file)
 #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>
 
 // A/D channels
 enum {
@@ -50,12 +57,6 @@ 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
 };