diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-01-25 02:15:27 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-01-25 02:15:27 +0000 |
commit | 857381185d60eed2ccee7dc7b88d49d90546f8a2 (patch) | |
tree | 2fd4596a2b010644f4afef84c5d620d240ae0b4c /LUFA | |
parent | 5d5e3590762745af400e8ba736d1c5692a5de521 (diff) | |
download | lufa-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')
-rw-r--r-- | LUFA/Drivers/Peripheral/AVRU4U6U7/ADC.h | 16 |
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
|