From b68f7f16499a96e85c7cef4afd9da1a5c69e6a08 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Mon, 25 Jan 2010 00:52:45 +0000 Subject: Added explicit ADC channel masks for the standard set of ADC channels, as the single-ended channel MUX masks are not equal to the channel number on some AVR models. Changed demos to use the new channel masks when using the ADC driver. --- Demos/Device/LowLevel/AudioInput/AudioInput.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Demos/Device/LowLevel/AudioInput/AudioInput.h') diff --git a/Demos/Device/LowLevel/AudioInput/AudioInput.h b/Demos/Device/LowLevel/AudioInput/AudioInput.h index ace1e9685..4585ab5b6 100644 --- a/Demos/Device/LowLevel/AudioInput/AudioInput.h +++ b/Demos/Device/LowLevel/AudioInput/AudioInput.h @@ -52,6 +52,9 @@ /** ADC channel number for the microphone input. */ #define MIC_IN_ADC_CHANNEL 2 + /** ADC channel MUX mask for the microphone input. */ + #define MIC_IN_ADC_MUX_MASK ADC_CHANNEL2 + /** Maximum ADC sample value for the microphone input. */ #define SAMPLE_MAX_RANGE 0xFFFF -- cgit v1.2.3