From 4d45ea217f4679225c45fdf1196afd0c8f8d27c7 Mon Sep 17 00:00:00 2001 From: mmaroti Date: Mon, 30 Nov 2009 08:50:08 +0000 Subject: [PATCH] more deputy hacks to allow longer wait times --- tos/platforms/iris/chips/rf230/RadioConfig.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.2