aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/Peripheral/AVR8
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2011-07-06 02:12:09 +0000
committerDean Camera <dean@fourwalledcubicle.com>2011-07-06 02:12:09 +0000
commit87b57522b2ec7e50f242cac038437f1f354cc2c7 (patch)
treef2c982e4cd1214fe2a44cf9012eeefae59049b5a /LUFA/Drivers/Peripheral/AVR8
parentbfa22eca26b52e859d19d013a132e6e79aa4e689 (diff)
downloadlufa-87b57522b2ec7e50f242cac038437f1f354cc2c7.tar.gz
lufa-87b57522b2ec7e50f242cac038437f1f354cc2c7.tar.bz2
lufa-87b57522b2ec7e50f242cac038437f1f354cc2c7.zip
Fix improper indenting of the internal board driver dispatch headers.
Slight improvements to the ADC peripheral driver example in the manual.
Diffstat (limited to 'LUFA/Drivers/Peripheral/AVR8')
-rw-r--r--LUFA/Drivers/Peripheral/AVR8/ADC_AVR8.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/LUFA/Drivers/Peripheral/AVR8/ADC_AVR8.h b/LUFA/Drivers/Peripheral/AVR8/ADC_AVR8.h
index 7a02c613a..437b4d1a6 100644
--- a/LUFA/Drivers/Peripheral/AVR8/ADC_AVR8.h
+++ b/LUFA/Drivers/Peripheral/AVR8/ADC_AVR8.h
@@ -65,8 +65,11 @@
*
* // Start reading ADC channel 1 in free running (continuous conversion) mode
* ADC_StartReading(ADC_REFERENCE_AVCC | ADC_RIGHT_ADJUSTED | ADC_CHANNEL1);
- * while (!(ADC_IsReadingComplete())) {};
- * printf("Conversion Result: %d\r\n", ADC_GetResult());
+ * for (;;)
+ * {
+ * while (!(ADC_IsReadingComplete())) {};
+ * printf("Conversion Result: %d\r\n", ADC_GetResult());
+ * }
* \endcode
*
* @{