From 77dbfd3cc44b91ea04990c65f3de70267ceb2460 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Thu, 22 Sep 2011 05:55:32 +0000 Subject: Add missing "used" attribute to ATTR_INIT_SECTION to ensure functions declared with that meta-attribute are not discarded by the linker. Add missing function and definition documentation. --- LUFA/Drivers/Peripheral/AVR8/ADC_AVR8.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'LUFA/Drivers/Peripheral') diff --git a/LUFA/Drivers/Peripheral/AVR8/ADC_AVR8.h b/LUFA/Drivers/Peripheral/AVR8/ADC_AVR8.h index 437b4d1a6..5ba789efd 100644 --- a/LUFA/Drivers/Peripheral/AVR8/ADC_AVR8.h +++ b/LUFA/Drivers/Peripheral/AVR8/ADC_AVR8.h @@ -403,6 +403,8 @@ * the results read directly from the \ref ADC_GetResult() instead to reduce overhead. * * \param[in] MUXMask Mask comprising of an ADC channel mask, reference mask and adjustment mask. + * + * \return Converted ADC result for the given ADC channel. */ static inline uint16_t ADC_GetChannelReading(const uint16_t MUXMask) ATTR_WARN_UNUSED_RESULT; static inline uint16_t ADC_GetChannelReading(const uint16_t MUXMask) -- cgit v1.2.3