Skip to content

Instantly share code, notes, and snippets.

@ahappyforest
Created June 3, 2013 19:12
Show Gist options
  • Save ahappyforest/5700529 to your computer and use it in GitHub Desktop.
Save ahappyforest/5700529 to your computer and use it in GitHub Desktop.
module YL69HumidityP {
provides interface Atm128AdcConfig;
uses interface MicaBusAdc as SoilHumidityAdc;
}
implementation
{
async command uint8_t Atm128AdcConfig.getChannel() {
return call SoilHumidityAdc.getChannel();
}
async command uint8_t Atm128AdcConfig.getRefVoltage() {
return ATM128_ADC_VREF_AVCC;
}
async command uint8_t Atm128AdcConfig.getPrescaler() {
return ATM128_ADC_PRESCALE;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment