]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/eyesIFX/sensors/TempExtSensorC.nc
- Added support for the temperature sensor (using semaphores/monitors to overcome...
[tinyos-2.x.git] / tos / platforms / eyesIFX / sensors / TempExtSensorC.nc
index 543827797388628259e10523b400f6cce52228e1..6546e2ec48ab3ac2d5c9fc403a4b49b42ce5afe4 100644 (file)
@@ -53,14 +53,26 @@ generic configuration TempExtSensorC()
 }
 implementation
 {
-  components SensorSettingsC as Settings;
-             
+  components SensorSettingsC as Settings;  
+  
   components new AdcReadClientC() as AdcReadClient;
-  Read = AdcReadClient;
+  //Read = AdcReadClient;
   AdcReadClient.AdcConfigure -> Settings.AdcConfigure[TEMP_SENSOR_DEFAULT];
   
+  
   components new AdcReadNowClientC() as AdcReadNowClient;
   ReadNow = AdcReadNowClient;
-  ReadNowResource = AdcReadNowClient;
+  //ReadNowResource = AdcReadNowClient;
   AdcReadNowClient.AdcConfigure -> Settings.AdcConfigure[TEMP_SENSOR_DEFAULT];
+  
+  components HplMsp430GeneralIOC as MspGeneralIO;
+  components new Msp430GpioC() as TEMP;
+  TEMP -> MspGeneralIO.Port60;
+  
+  components TempExtSensorP;
+  Read = TempExtSensorP.Read;
+  TempExtSensorP.AdcRead -> AdcReadClient;
+  ReadNowResource = TempExtSensorP.ReadNowResource;
+  TempExtSensorP.AdcResource -> AdcReadNowClient;
+  TempExtSensorP.TEMP -> TEMP;
 }