X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fplatforms%2FeyesIFX%2Fsensors%2FSensorSettingsC.nc;h=0387dcf7f0f48bbe4b3408056277e4bea83f4521;hb=1a329382c4f4556fd52d85f4e3f4a67e54911682;hp=6d75514546763f2276ac5a0eb2b90ecba7ebcc19;hpb=3837fe262225242d1629ba72bdf12f6d162ba5c0;p=tinyos-2.x.git diff --git a/tos/platforms/eyesIFX/sensors/SensorSettingsC.nc b/tos/platforms/eyesIFX/sensors/SensorSettingsC.nc index 6d755145..0387dcf7 100644 --- a/tos/platforms/eyesIFX/sensors/SensorSettingsC.nc +++ b/tos/platforms/eyesIFX/sensors/SensorSettingsC.nc @@ -43,18 +43,15 @@ #include module SensorSettingsC { - provides interface Msp430Adc12Config[uint8_t type]; + provides interface AdcConfigure as AdcConfigure[uint8_t type]; } implementation { - async command msp430adc12_channel_config_t Msp430Adc12Config.getChannelSettings[uint8_t type]() { - msp430adc12_channel_config_t config; - if(type < SENSOR_SENTINEL) { - config = sensorconfigurations[type]; - } else { - config = sensorconfigurations[SENSOR_SENTINEL]; - } - return config; - } + async command const msp430adc12_channel_config_t* AdcConfigure.getConfiguration[uint8_t type]() { + if (type < SENSOR_SENTINEL) + return &sensorconfigurations[type]; + else + return &sensorconfigurations[SENSOR_SENTINEL]; + } }