From cd76e7d061f7393da189a4bc38c17008aa6efda1 Mon Sep 17 00:00:00 2001 From: sallai Date: Fri, 30 Oct 2009 18:55:09 +0000 Subject: [PATCH] added MHZ macro (it is required for iris) --- tos/lib/tosboot/micaz/hardware.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tos/lib/tosboot/micaz/hardware.h b/tos/lib/tosboot/micaz/hardware.h index b5e88e12..bcefd362 100644 --- a/tos/lib/tosboot/micaz/hardware.h +++ b/tos/lib/tosboot/micaz/hardware.h @@ -77,6 +77,12 @@ #include #include +#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 + typedef uint32_t in_flash_addr_t; typedef uint32_t ex_flash_addr_t; -- 2.39.2