Skip to content

Commit 9fc5699

Browse files
author
Jim Lindblom
committed
Fixing DFLL coarse and fine setting bug
1 parent bc8322f commit 9fc5699

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

IDE_Board_Manager/package_sparkfun_index.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@
182182
"category":"Contributed",
183183
"url":"https://github.com/sparkfun/Arduino_Boards/raw/spectacle/IDE_Board_Manager/sparkfun-samd-1.3.3.tar.bz2",
184184
"archiveFileName":"sparkfun-samd-1.3.3.tar.bz2",
185-
"checksum":"SHA-256:013502547abedd00976d44c7a3b6a4075284c3fb0a360c29c6ffced1ef4f1273",
186-
"size":"207895",
185+
"checksum":"SHA-256:344c33368532736dfd5b40fb41fc67fa7e26bc8a66e289f4859b52b9d0f6825d",
186+
"size":"207911",
187187
"help":{
188188
"online":"https://forums.sparkfun.com"
189189
},
16 Bytes
Binary file not shown.

sparkfun/samd/cores/arduino/startup.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,7 @@ void SystemInit( void )
172172
fine = 0x1ff;
173173
}
174174

175-
SYSCTRL->DFLLVAL.bit.COARSE = coarse;
176-
SYSCTRL->DFLLVAL.bit.FINE = fine;
175+
SYSCTRL->DFLLVAL.reg = SYSCTRL_DFLLVAL_COARSE(coarse) | SYSCTRL_DFLLVAL_FINE(fine);
177176
/* Write full configuration to DFLL control register */
178177
SYSCTRL->DFLLCTRL.reg = SYSCTRL_DFLLCTRL_USBCRM | /* USB correction */
179178
SYSCTRL_DFLLCTRL_CCDIS |

0 commit comments

Comments
 (0)