aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Platform
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2011-10-25 04:28:22 +0000
committerDean Camera <dean@fourwalledcubicle.com>2011-10-25 04:28:22 +0000
commitbc14c1a7f61713128819f12fcdcc9ec10ff404ab (patch)
tree5d80f0f738d0a8c352be91e019bbf933083365c9 /LUFA/Platform
parente9029d49d5455ec146d2e87436d43d747d6c657a (diff)
downloadlufa-bc14c1a7f61713128819f12fcdcc9ec10ff404ab.tar.gz
lufa-bc14c1a7f61713128819f12fcdcc9ec10ff404ab.tar.bz2
lufa-bc14c1a7f61713128819f12fcdcc9ec10ff404ab.zip
Update XMEGA platform clock management example code to suit the currently released silicon.
Cleanups to the UC3 endpoint/pipe multi byte read code.
Diffstat (limited to 'LUFA/Platform')
-rw-r--r--LUFA/Platform/XMEGA/ClockManagement.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/LUFA/Platform/XMEGA/ClockManagement.h b/LUFA/Platform/XMEGA/ClockManagement.h
index 04b91e002..18d7c631e 100644
--- a/LUFA/Platform/XMEGA/ClockManagement.h
+++ b/LUFA/Platform/XMEGA/ClockManagement.h
@@ -49,18 +49,18 @@
*
* Usage Example:
* \code
- * #include <LUFA/Platform/XMEGA/ClockManagement.h>
- *
- * void main(void)
- * {
- * // Start the internal 32MHz RC oscillator and switch the CPU core to run from it
- * XMEGACLK_StartInternalOscillator(CLOCK_SRC_INT_RC32MHZ);
- * XMEGACLK_SetCPUClockSource(CLOCK_SRC_INT_RC32MHZ, F_CPU);
- *
- * // Start the external oscillator and multiply up the frequency
- * XMEGACLK_StartExternalOscillator(EXOSC_FREQ_9MHZ_MAX, EXOSC_START_1KCLK);
- * XMEGACLK_StartPLL(CLOCK_SRC_XOSC, 8000000, F_USB);
- * }
+ * #include <LUFA/Platform/XMEGA/ClockManagement.h>
+ *
+ * void main(void)
+ * {
+ * // Start the PLL to multiply the 2MHz RC oscillator to 32MHz and switch the CPU core to run from it
+ * XMEGACLK_StartPLL(CLOCK_SRC_INT_RC2MHZ, 2000000, 32000000);
+ * XMEGACLK_SetCPUClockSource(CLOCK_SRC_PLL, F_CPU);
+ *
+ * // Start the 32MHz internal RC oscillator and start the DFLL to increase it to 48MHz using the USB SOF as a reference
+ * XMEGACLK_StartInternalOscillator(CLOCK_SRC_INT_RC32MHZ);
+ * XMEGACLK_StartDFLL(CLOCK_SRC_INT_RC32MHZ, DFLL_REF_INT_USBSOF, 48000000);
+ * }
* \endcode
*
* @{