From: mmaroti Date: Mon, 30 Nov 2009 08:50:08 +0000 (+0000) Subject: more deputy hacks to allow longer wait times X-Git-Tag: rc_6_tinyos_2_1_1~122 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=4d45ea217f4679225c45fdf1196afd0c8f8d27c7 more deputy hacks to allow longer wait times --- diff --git a/tos/platforms/iris/chips/rf230/RadioConfig.h b/tos/platforms/iris/chips/rf230/RadioConfig.h index 42c7e2e3..e73d3543 100644 --- a/tos/platforms/iris/chips/rf230/RadioConfig.h +++ b/tos/platforms/iris/chips/rf230/RadioConfig.h @@ -81,8 +81,10 @@ typedef TOne TRadio; /** * The number of radio alarm ticks per one microsecond (0.9216). * We use integers and no parentheses just to make deputy happy. + * Ok, further hacks were required for deputy, I removed 00 from the + * beginning and end to ba able to handle longer wait periods. */ -#define RADIO_ALARM_MICROSEC (7372800UL / MHZ / 32) * (1 << MICA_DIVIDE_ONE_FOR_32KHZ_LOG2) / 1000000UL +#define RADIO_ALARM_MICROSEC (73728UL / MHZ / 32) * (1 << MICA_DIVIDE_ONE_FOR_32KHZ_LOG2) / 10000UL /** * The base two logarithm of the number of radio alarm ticks per one millisecond