diff --git a/lambda/adc.c b/lambda/adc.c index 984e303..5121112 100644 --- a/lambda/adc.c +++ b/lambda/adc.c @@ -1,7 +1,7 @@ /* * adc.c * - * Functions to set up the ADC and get voltages from its ports. + * Functions to set up the ADC and get voltages from its pins. * * Created on: 11.03.2015 * Author: dode@luniks.net @@ -37,9 +37,9 @@ sei(); } -int16_t getVoltage(uint8_t port) { +int16_t getVoltage(uint8_t pin) { - ADMUX = (0b11110000 & ADMUX) | port; + ADMUX = (0b11110000 & ADMUX) | pin; uint32_t overValue = 0; for (uint8_t i = 0; i < 16; i++) { diff --git a/lambda/adc.h b/lambda/adc.h index 5604d54..cdacb79 100644 --- a/lambda/adc.h +++ b/lambda/adc.h @@ -1,7 +1,7 @@ /* * adc.h * - * Functions to set up the ADC and get voltages from its ports. + * Functions to set up the ADC and get voltages from its pins. * * Created on: 11.03.2015 * Author: dode@luniks.net @@ -30,10 +30,10 @@ void setupSleepMode(void); /** - * Returns the voltage sampled at the given ADC input port doing + * Returns the voltage sampled at the given ADC input pin doing * 16x oversampling and taking in account the calibrated AREF and * ADC offset voltages. */ -int16_t getVoltage(uint8_t port); +int16_t getVoltage(uint8_t pin); #endif /* ADC_H_ */