X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Flib%2Ftosboot%2Fmicaz%2Fhardware.h;h=bcefd362cb34e0847b8e70d8fb56dc80c89da458;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hp=b5e88e129676bbb62c946d47f6be45303f6dbc8e;hpb=adf1de6c009d13b7b52e68535c63b28f59c97400;p=tinyos-2.x.git 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;