]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/mulle/chips/rf230/RF230SplitControlP.nc
The PLL should only be turned on if the SLOW_SPI flag is not set.
[tinyos-2.x.git] / tos / platforms / mulle / chips / rf230 / RF230SplitControlP.nc
index bd87661de98064bf52c4ba44df696c44ecaf7b51..0719c0c647e1eb34ea3f6a828e78ef8245829d68 100644 (file)
@@ -50,16 +50,24 @@ 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);
   }
 
@@ -70,10 +78,12 @@ implementation
 
   event void SplitControlOrig.stopDone(error_t error)
   {
+#ifndef RF230_SLOW_SPI
     if (error == SUCCESS)
     {
       call SystemClockControl.minSpeed(M16C62P_DONT_CARE);
     }
+#endif
     signal SplitControl.stopDone(error);
   }
 }