]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/telosa/chips/s10871/HamamatsuS10871TsrP.nc
Added DeviceMetadata interface to telosb sensors.
[tinyos-2.x.git] / tos / platforms / telosa / chips / s10871 / HamamatsuS10871TsrP.nc
index 940936281fc09922082629c2589fae24f3efd8f3..3e4f6abe728a5b131d94c3d4667ea712ec1928d4 100644 (file)
@@ -40,6 +40,7 @@
  */
 
 module HamamatsuS10871TsrP {
+  provides interface DeviceMetadata;
   provides interface AdcConfigure<const msp430adc12_channel_config_t*>;
 }
 implementation {
@@ -54,6 +55,8 @@ 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;