]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/telosa/chips/s1087/HamamatsuS1087ParP.nc
Added DeviceMetadata interface to telosb sensors.
[tinyos-2.x.git] / tos / platforms / telosa / chips / s1087 / HamamatsuS1087ParP.nc
index ee9451f010dd1f25c08536f93298cabccd015ce0..ac03062f7fecc79422758ee9a9c5d711400d7353 100644 (file)
@@ -40,6 +40,7 @@
  */
 
 module HamamatsuS1087ParP {
+  provides interface DeviceMetadata;
   provides interface AdcConfigure<const msp430adc12_channel_config_t*>;
 }
 implementation {
@@ -54,7 +55,9 @@ implementation {
     sampcon_ssel: SAMPCON_SOURCE_SMCLK,
     sampcon_id: SAMPCON_CLOCK_DIV_1
   };
-  
+
+  command uint8_t DeviceMetadata.getSignificantBits() { return 12; }
+
   async command const msp430adc12_channel_config_t* AdcConfigure.getConfiguration() {
     return &config;
   }