From: r-studio Date: Thu, 15 Apr 2010 05:37:31 +0000 (+0000) Subject: The PLL should only be turned on if the SLOW_SPI flag is not set. X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=commitdiff_plain;h=d58c89d0ab69c1350a9a9caba789fe5321d3938e;p=tinyos-2.x.git The PLL should only be turned on if the SLOW_SPI flag is not set. --- diff --git a/tos/platforms/mulle/chips/rf230/RF230SplitControlP.nc b/tos/platforms/mulle/chips/rf230/RF230SplitControlP.nc index 2f30cadf..0719c0c6 100644 --- a/tos/platforms/mulle/chips/rf230/RF230SplitControlP.nc +++ b/tos/platforms/mulle/chips/rf230/RF230SplitControlP.nc @@ -50,19 +50,23 @@ implementation { command error_t SplitControl.start() { +#ifndef RF230_SLOW_SPI_MULLE #ifndef RF230_SLOW_SPI call SystemClockControl.minSpeed(M16C62P_PLL_CLOCK); +#endif #endif return call SplitControlOrig.start(); } event void SplitControlOrig.startDone(error_t error) { +#ifndef RF230_SLOW_SPI_MULLE #ifndef RF230_SLOW_SPI if (error != SUCCESS) { call SystemClockControl.minSpeed(M16C62P_DONT_CARE); } +#endif #endif signal SplitControl.startDone(error); }