diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2013-04-06 22:07:54 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2013-04-06 22:07:54 +0000 |
commit | 7c3867da33250e5a20d26f64c5a127323c2094cc (patch) | |
tree | 6c0bc8892eaf7d7767e20bb1d2296389fd13b959 /LUFA/Drivers/Peripheral/AVR8 | |
parent | 7dc77a6abc7f3a86970ca48d355b55ed5931a350 (diff) | |
download | lufa-7c3867da33250e5a20d26f64c5a127323c2094cc.tar.gz lufa-7c3867da33250e5a20d26f64c5a127323c2094cc.tar.bz2 lufa-7c3867da33250e5a20d26f64c5a127323c2094cc.zip |
Added new CONCAT() and CONCAT_EXPANDED() convenience macros.
Diffstat (limited to 'LUFA/Drivers/Peripheral/AVR8')
-rw-r--r-- | LUFA/Drivers/Peripheral/AVR8/ADC_AVR8.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/LUFA/Drivers/Peripheral/AVR8/ADC_AVR8.h b/LUFA/Drivers/Peripheral/AVR8/ADC_AVR8.h index 1c3b60a51..02abbc7da 100644 --- a/LUFA/Drivers/Peripheral/AVR8/ADC_AVR8.h +++ b/LUFA/Drivers/Peripheral/AVR8/ADC_AVR8.h @@ -97,13 +97,6 @@ #error The ADC peripheral driver is not currently available for your selected microcontroller model. #endif - /* Private Interface - For use in library only: */ - #if !defined(__DOXYGEN__) - /* Macros: */ - #define _ADC_GET_MUX_MASK2(y) ADC_CHANNEL ## y - #define _ADC_GET_MUX_MASK(y) _ADC_GET_MUX_MASK2(y) - #endif - /* Public Interface - May be used in end-application: */ /* Macros: */ /** \name ADC Reference Configuration Masks */ @@ -257,7 +250,7 @@ * * \param[in] Channel Index of the ADC channel whose MUX mask is to be retrieved. */ - #define ADC_GET_CHANNEL_MASK(Channel) _ADC_GET_MUX_MASK(Channel) + #define ADC_GET_CHANNEL_MASK(Channel) CONCAT_EXPANDED(ADC_CHANNEL, Channel) //@} /* Inline Functions: */ |