Created
June 3, 2013 19:12
-
-
Save ahappyforest/5700529 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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