]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/sensorboards/mts300/PhotoTempDeviceC.nc
add support for the MTS300CB / MTS310CB
[tinyos-2.x.git] / tos / sensorboards / mts300 / PhotoTempDeviceC.nc
index 28c1520b00d3f6cc43968c3c2563bfed2a18d5a1..9fc2b05dc2948e405b472725f37bee7d92514659 100644 (file)
@@ -36,7 +36,11 @@ implementation
   TempPower.SplitControl -> TempControl;
   TempControl.PhotoTempResource -> SharingArbiter.Resource[unique(UQ_PHOTOTEMP_RESOURCE)];
   TempControl.Timer -> WarmupTimer;
+#if defined(MTS300CA) || defined(MTS310CA)
   TempControl.Power -> MicaBusC.Int2;
+#elif defined(MTS300CB) | defined(MTS310CB)
+  TempControl.Power -> MicaBusC.PW0;
+#endif
   ReadTemp = TempControl;
   TempControl.ActualRead -> Adc;