]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/btnode3/hardware.h
Merge TinyOS 2.1.1 into master.
[tinyos-2.x.git] / tos / platforms / btnode3 / hardware.h
index 4a8722915fbed78d55699e6aa2d31d5c09c2e3e4..99484b8ba2b8407f120c40b713961185a807283e 100644 (file)
@@ -1,10 +1,10 @@
-/**                                                                     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,
  *  install, copy or use the software.
  *
- *  Copyright (c) 2006 ETH Zurich.
+ *  Copyright (c) 2006-2007 ETH Zurich.
  *  Copyright (c) 2004-2005 Crossbow Technology, Inc.
  *  Copyright (c) 2002-2003 Intel Corporation.
  *  Copyright (c) 2000-2003 The Regents of the University  of California.    
 #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>
+
+// enum so components can override power saving,
+// as per TEP 112.
+enum {
+  TOS_SLEEP_NONE = ATM128_POWER_IDLE,
+};
 
 // A/D constants (channels, etc)
 enum {
@@ -54,7 +67,7 @@ enum {
 };
 
 enum {
-  PLATFORM_MHZ = 8 // Approximate clock frequency (closest power of 2)
+  PLATFORM_BAUDRATE = 57600L
 };
 
 #endif //HARDWARE_H