[Tinyos-2-commits] CVS: tinyos-2.x/tos/platforms/micaz hardware.h,
1.1.2.8, 1.1.2.9
David Gay
idgay at users.sourceforge.net
Mon May 1 09:44:26 PDT 2006
Update of /cvsroot/tinyos/tinyos-2.x/tos/platforms/micaz
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20317a/tos/platforms/micaz
Modified Files:
Tag: tinyos-2_0_devel-BRANCH
hardware.h
Log Message:
update to MHz handling for mica2
Index: hardware.h
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/platforms/micaz/Attic/hardware.h,v
retrieving revision 1.1.2.8
retrieving revision 1.1.2.9
diff -C2 -d -r1.1.2.8 -r1.1.2.9
*** hardware.h 17 Feb 2006 00:26:48 -0000 1.1.2.8
--- hardware.h 1 May 2006 16:44:24 -0000 1.1.2.9
***************
*** 42,45 ****
--- 42,51 ----
#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>
***************
*** 50,56 ****
};
- enum {
- PLATFORM_MHZ = 8 // Approximate clock frequency (closest power of 2)
- };
-
#endif //HARDWARE_H
--- 56,58 ----
More information about the Tinyos-2-commits
mailing list