aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/Peripheral/AVRU4U6U7/ADC.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-01-25 02:15:27 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-01-25 02:15:27 +0000
commit857381185d60eed2ccee7dc7b88d49d90546f8a2 (patch)
tree2fd4596a2b010644f4afef84c5d620d240ae0b4c /LUFA/Drivers/Peripheral/AVRU4U6U7/ADC.h
parent5d5e3590762745af400e8ba736d1c5692a5de521 (diff)
downloadlufa-857381185d60eed2ccee7dc7b88d49d90546f8a2.tar.gz
lufa-857381185d60eed2ccee7dc7b88d49d90546f8a2.tar.bz2
lufa-857381185d60eed2ccee7dc7b88d49d90546f8a2.zip
ADC2 and ADC3 channels do not exist on the U4 series USB AVRs.
Diffstat (limited to 'LUFA/Drivers/Peripheral/AVRU4U6U7/ADC.h')
-rw-r--r--LUFA/Drivers/Peripheral/AVRU4U6U7/ADC.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/LUFA/Drivers/Peripheral/AVRU4U6U7/ADC.h b/LUFA/Drivers/Peripheral/AVRU4U6U7/ADC.h
index b0a9b9e80..100f2c104 100644
--- a/LUFA/Drivers/Peripheral/AVRU4U6U7/ADC.h
+++ b/LUFA/Drivers/Peripheral/AVRU4U6U7/ADC.h
@@ -116,11 +116,19 @@
/** MUX mask define for the ADC1 channel of the ADC. See \ref ADC_StartReading and \ref ADC_GetChannelReading. */
#define ADC_CHANNEL1 0x01
- /** MUX mask define for the ADC2 channel of the ADC. See \ref ADC_StartReading and \ref ADC_GetChannelReading. */
- #define ADC_CHANNEL2 0x02
+ #if !(defined(__AVR_ATmega16U4__) || defined(__AVR_ATmega32U4__) || defined(__DOXYGEN__))
+ /** MUX mask define for the ADC2 channel of the ADC. See \ref ADC_StartReading and \ref ADC_GetChannelReading.
+ *
+ * \note Note available on all AVR models.
+ */
+ #define ADC_CHANNEL2 0x02
- /** MUX mask define for the ADC3 channel of the ADC. See \ref ADC_StartReading and \ref ADC_GetChannelReading. */
- #define ADC_CHANNEL3 0x03
+ /** MUX mask define for the ADC3 channel of the ADC. See \ref ADC_StartReading and \ref ADC_GetChannelReading.
+ *
+ * \note Note available on all AVR models.
+ */
+ #define ADC_CHANNEL3 0x03
+ #endif
/** MUX mask define for the ADC4 channel of the ADC. See \ref ADC_StartReading and \ref ADC_GetChannelReading. */
#define ADC_CHANNEL4 0x04