We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07a8899 commit 383bf9aCopy full SHA for 383bf9a
ports/atmel-samd/peripherals/samd21/clocks.c
@@ -130,6 +130,9 @@ static void init_clock_source_dfll48m_xosc(void) {
130
SYSCTRL_DFLLCTRL_ENABLE;
131
while (!SYSCTRL->PCLKSR.bit.DFLLRDY) {}
132
while (GCLK->STATUS.bit.SYNCBUSY) {}
133
+
134
+ // Wait for the fine lock on the DFLL.
135
+ while (!SYSCTRL->PCLKSR.bit.DFLLLCKC || !SYSCTRL->PCLKSR.bit.DFLLLCKF) {}
136
}
137
138
static void init_clock_source_dfll48m_usb(void) {
0 commit comments