From c4e85215bff8363ae9a9a79581cc3e7427b597c7 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Wed, 21 May 2014 19:55:27 +1000 Subject: Fixed incorrect XMEGA DFLL reference frequency (thanks to Martin Aakerberg) --- LUFA/Platform/XMEGA/ClockManagement.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'LUFA/Platform') diff --git a/LUFA/Platform/XMEGA/ClockManagement.h b/LUFA/Platform/XMEGA/ClockManagement.h index a39911a0e..9edaa7223 100644 --- a/LUFA/Platform/XMEGA/ClockManagement.h +++ b/LUFA/Platform/XMEGA/ClockManagement.h @@ -286,7 +286,7 @@ const uint8_t Reference, const uint32_t Frequency) { - uint16_t DFLLCompare = (Frequency / 1000); + uint16_t DFLLCompare = (Frequency / 1024); switch (Source) { -- cgit v1.2.3