aboutsummaryrefslogtreecommitdiffstats
path: root/Projects
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2011-01-16 16:13:22 +0000
committerDean Camera <dean@fourwalledcubicle.com>2011-01-16 16:13:22 +0000
commit32830a2b827cbeb40284c5ea379381948fb9113e (patch)
treeb7aa3d7301faae4fd138e0b1d95657f41425ea40 /Projects
parent70d55f6e0ca1f262bd8811ad8d4149e33125819a (diff)
downloadlufa-32830a2b827cbeb40284c5ea379381948fb9113e.tar.gz
lufa-32830a2b827cbeb40284c5ea379381948fb9113e.tar.bz2
lufa-32830a2b827cbeb40284c5ea379381948fb9113e.zip
Added new ADC_GET_CHANNEL_MASK() convenience macro to the ADC driver.
Diffstat (limited to 'Projects')
-rw-r--r--Projects/AVRISP-MKII/Lib/V2Protocol.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/Projects/AVRISP-MKII/Lib/V2Protocol.h b/Projects/AVRISP-MKII/Lib/V2Protocol.h
index 4f5950b18..ed42de96e 100644
--- a/Projects/AVRISP-MKII/Lib/V2Protocol.h
+++ b/Projects/AVRISP-MKII/Lib/V2Protocol.h
@@ -62,11 +62,6 @@
#endif
/* Macros: */
- #if !defined(__DOXYGEN__)
- #define _GETADCMUXMASK2(x, y) x ## y
- #define _GETADCMUXMASK(x, y) _GETADCMUXMASK2(x, y)
- #endif
-
/** Programmer ID string, returned to the host during the CMD_SIGN_ON command processing. */
#define PROGRAMMER_ID "AVRISP_MK2"
@@ -77,7 +72,7 @@
#define TimeoutTicksRemaining GPIOR1
/** MUX mask for the VTARGET ADC channel number. */
- #define VTARGET_ADC_CHANNEL_MASK _GETADCMUXMASK(ADC_CHANNEL, VTARGET_ADC_CHANNEL)
+ #define VTARGET_ADC_CHANNEL_MASK ADC_GET_CHANNEL_MASK(VTARGET_ADC_CHANNEL)
/* External Variables: */
extern uint32_t CurrentAddress;