Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Erik Strand
lufa
Commits
c7399742
Commit
c7399742
authored
Oct 30, 2011
by
Dean Camera
Browse files
Fix error in XMEGA clock platform driver for the DFLL calibration byte order.
parent
ab43251b
Changes
1
Hide whitespace changes
Inline
Side-by-side
LUFA/Platform/XMEGA/ClockManagement.h
View file @
c7399742
...
...
@@ -275,19 +275,19 @@
switch
(
Source
)
{
case
CLOCK_SRC_INT_RC2MHZ
:
OSC
.
DFLLCTRL
|=
(
Reference
<<
OSC_RC
3
2MCREF_
g
p
);
DFLLRC2M
.
COMP1
=
(
DFLLCompare
>>
8
);
DFLLRC2M
.
COMP2
=
(
DFLLCompare
&
0xFF
);
DFLLRC2M
.
CALA
=
(
DFFLCal
>>
8
);
DFLLRC2M
.
CALB
=
(
DFFLCal
&
0xFF
);
OSC
.
DFLLCTRL
|=
(
Reference
<<
OSC_RC2MCREF_
b
p
);
DFLLRC2M
.
COMP1
=
(
DFLLCompare
&
0xFF
);
DFLLRC2M
.
COMP2
=
(
DFLLCompare
>>
8
);
DFLLRC2M
.
CALA
=
(
DFFLCal
&
0xFF
);
DFLLRC2M
.
CALB
=
(
DFFLCal
>>
8
);
DFLLRC2M
.
CTRL
=
DFLL_ENABLE_bm
;
break
;
case
CLOCK_SRC_INT_RC32MHZ
:
OSC
.
DFLLCTRL
|=
(
Reference
<<
OSC_RC32MCREF_gp
);
DFLLRC32M
.
COMP1
=
(
DFLLCompare
>>
8
);
DFLLRC32M
.
COMP2
=
(
DFLLCompare
&
0xFF
);
DFLLRC32M
.
CALA
=
(
DFFLCal
>>
8
);
DFLLRC32M
.
CALB
=
(
DFFLCal
&
0xFF
);
DFLLRC32M
.
COMP1
=
(
DFLLCompare
&
0xFF
);
DFLLRC32M
.
COMP2
=
(
DFLLCompare
>>
8
);
DFLLRC32M
.
CALA
=
(
DFFLCal
&
0xFF
);
DFLLRC32M
.
CALB
=
(
DFFLCal
>>
8
);
DFLLRC32M
.
CTRL
=
DFLL_ENABLE_bm
;
break
;
default:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment