From 5ac89d9149d4f884d580d739e1d9994f4a102beb Mon Sep 17 00:00:00 2001 From: janhauer Date: Mon, 18 May 2009 16:27:43 +0000 Subject: [PATCH] Removed an unnecessary wiring, added an ifdef guard (only on telosb Alarm32khz32C seems to provide Init) --- .../telosb/mac/tkn154/timer/Alarm32khz32VirtualizedP.nc | 2 -- tos/platforms/telosb/mac/tkn154/timer/Alarm62500hz32C.nc | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tos/platforms/telosb/mac/tkn154/timer/Alarm32khz32VirtualizedP.nc b/tos/platforms/telosb/mac/tkn154/timer/Alarm32khz32VirtualizedP.nc index f0a4f13b..290543cd 100644 --- a/tos/platforms/telosb/mac/tkn154/timer/Alarm32khz32VirtualizedP.nc +++ b/tos/platforms/telosb/mac/tkn154/timer/Alarm32khz32VirtualizedP.nc @@ -9,8 +9,6 @@ implementation components new VirtualizeAlarmC(T32khz, uint32_t, uniqueCount(UQ_ALARM_32KHZ32)); Alarm = VirtualizeAlarmC; - - MainC -> Alarm32khz32C.Init; MainC -> VirtualizeAlarmC.Init; VirtualizeAlarmC.AlarmFrom -> Alarm32khz32C; } diff --git a/tos/platforms/telosb/mac/tkn154/timer/Alarm62500hz32C.nc b/tos/platforms/telosb/mac/tkn154/timer/Alarm62500hz32C.nc index 26f5de2e..b73e6376 100644 --- a/tos/platforms/telosb/mac/tkn154/timer/Alarm62500hz32C.nc +++ b/tos/platforms/telosb/mac/tkn154/timer/Alarm62500hz32C.nc @@ -10,6 +10,8 @@ implementation Alarm = Alarm62500hz32P; +#if defined(PLATFORM_TELOSB) MainC -> Alarm32khz32C.Init; +#endif Alarm62500hz32P.AlarmFrom -> Alarm32khz32C; } -- 2.39.2