]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/mica2/hardware.h
add timer 0 threshold for ext standby vs power save sleep mode selection
[tinyos-2.x.git] / tos / platforms / mica2 / hardware.h
index 54a81d291201b34c8015b1f9d99265643035f1a0..28bf70857f0c5e8f086d38664cb7dd60079fff92 100644 (file)
 #ifndef HARDWARE_H
 #define HARDWARE_H
 
+#ifndef MHZ
+/* Clock rate is ~8MHz except if specified by user 
+   (this value must be a power of 2, see MicaTimer.h and MeasureClockC.nc) */
+#define MHZ 8
+#endif
+
 #include <atm128hardware.h>
 #include <Atm128Adc.h>
+#include <MicaTimer.h>
 
 // A/D channels
 enum {
@@ -51,12 +58,6 @@ enum {
   CHANNEL_BATTERY    = ATM128_ADC_SNGL_ADC7,
 };
 
-#ifndef MHZ
-/* Clock rate is ~8MHz except if specified by user 
-   (this value must be a power of 2, see MicaTimer.h and MeasureClockC.nc) */
-#define MHZ 8
-#endif
-
 enum {
   PLATFORM_BAUDRATE = 57600L
 };