X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fplatforms%2Ftelosa%2Fchips%2Fs1087%2FHamamatsuS1087ParP.nc;h=ac03062f7fecc79422758ee9a9c5d711400d7353;hb=d32c29caca7c7ae33003c7e0a3a3d3b0ec3620cc;hp=ee9451f010dd1f25c08536f93298cabccd015ce0;hpb=0fffffea892a816d115acf2fc2d39268f16cc0ea;p=tinyos-2.x.git diff --git a/tos/platforms/telosa/chips/s1087/HamamatsuS1087ParP.nc b/tos/platforms/telosa/chips/s1087/HamamatsuS1087ParP.nc index ee9451f0..ac03062f 100644 --- a/tos/platforms/telosa/chips/s1087/HamamatsuS1087ParP.nc +++ b/tos/platforms/telosa/chips/s1087/HamamatsuS1087ParP.nc @@ -40,6 +40,7 @@ */ module HamamatsuS1087ParP { + provides interface DeviceMetadata; provides interface AdcConfigure; } 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; }