Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Arduino Core for SAMD21 CPU
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
josc941e
Arduino Core for SAMD21 CPU
Commits
af0263a6
Commit
af0263a6
authored
7 years ago
by
Cristian Maglie
Browse files
Options
Downloads
Patches
Plain Diff
More accurate approximation for multiplication factor of PLL to make 48Mhz.
Fix #223
parent
e6868b24
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG
+4
-0
4 additions, 0 deletions
CHANGELOG
cores/arduino/startup.c
+1
-1
1 addition, 1 deletion
cores/arduino/startup.c
with
5 additions
and
1 deletion
CHANGELOG
+
4
−
0
View file @
af0263a6
SAMD CORE 1.6.17
* More accurate approximation for multiplication factor of PLL to make 48Mhz. Thanks @joverbee
SAMD CORE 1.6.16 2017.08.23
* Is now possible to use PWM on D7 (though it can't be used with PWM on D12 at the same time). Thanks @Adminius
...
...
This diff is collapsed.
Click to expand it.
cores/arduino/startup.c
+
1
−
1
View file @
af0263a6
...
...
@@ -148,7 +148,7 @@ void SystemInit( void )
SYSCTRL
->
DFLLMUL
.
reg
=
SYSCTRL_DFLLMUL_CSTEP
(
31
)
|
// Coarse step is 31, half of the max value
SYSCTRL_DFLLMUL_FSTEP
(
511
)
|
// Fine step is 511, half of the max value
SYSCTRL_DFLLMUL_MUL
(
(
VARIANT_MCK
/
VARIANT_MAINOSC
)
)
;
// External 32KHz is the reference
SYSCTRL_DFLLMUL_MUL
(
(
VARIANT_MCK
+
VARIANT_MAINOSC
/
2
)
/
VARIANT_MAINOSC
)
;
// External 32KHz is the reference
while
(
(
SYSCTRL
->
PCLKSR
.
reg
&
SYSCTRL_PCLKSR_DFLLRDY
)
==
0
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment