From d58c89d0ab69c1350a9a9caba789fe5321d3938e Mon Sep 17 00:00:00 2001 From: r-studio Date: Thu, 15 Apr 2010 05:37:31 +0000 Subject: [PATCH] The PLL should only be turned on if the SLOW_SPI flag is not set. --- tos/platforms/mulle/chips/rf230/RF230SplitControlP.nc | 4 ++++ 1 file changed, 4 insertions(+) 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); } -- 2.39.2