X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fplatforms%2Ftelosa%2Fchips%2Fs10871%2FHamamatsuS10871TsrP.nc;h=940936281fc09922082629c2589fae24f3efd8f3;hb=1a329382c4f4556fd52d85f4e3f4a67e54911682;hp=18f98fdc43210950ec8763163a715536a0d521b9;hpb=3837fe262225242d1629ba72bdf12f6d162ba5c0;p=tinyos-2.x.git diff --git a/tos/platforms/telosa/chips/s10871/HamamatsuS10871TsrP.nc b/tos/platforms/telosa/chips/s10871/HamamatsuS10871TsrP.nc index 18f98fdc..94093628 100644 --- a/tos/platforms/telosa/chips/s10871/HamamatsuS10871TsrP.nc +++ b/tos/platforms/telosa/chips/s10871/HamamatsuS10871TsrP.nc @@ -40,22 +40,22 @@ */ module HamamatsuS10871TsrP { - provides interface Msp430Adc12Config; + provides interface AdcConfigure; } implementation { - async command msp430adc12_channel_config_t Msp430Adc12Config.getChannelSettings() { - msp430adc12_channel_config_t config = { - inch: INPUT_CHANNEL_A5, - sref: REFERENCE_VREFplus_AVss, - ref2_5v: REFVOLT_LEVEL_1_5, - adc12ssel: SHT_SOURCE_ACLK, - adc12div: SHT_CLOCK_DIV_1, - sht: SAMPLE_HOLD_4_CYCLES, - sampcon_ssel: SAMPCON_SOURCE_SMCLK, - sampcon_id: SAMPCON_CLOCK_DIV_1 - }; - - return config; + msp430adc12_channel_config_t config = { + inch: INPUT_CHANNEL_A5, + sref: REFERENCE_VREFplus_AVss, + ref2_5v: REFVOLT_LEVEL_1_5, + adc12ssel: SHT_SOURCE_ACLK, + adc12div: SHT_CLOCK_DIV_1, + sht: SAMPLE_HOLD_4_CYCLES, + sampcon_ssel: SAMPCON_SOURCE_SMCLK, + sampcon_id: SAMPCON_CLOCK_DIV_1 + }; + + async command const msp430adc12_channel_config_t* AdcConfigure.getConfiguration() { + return &config; } }