<p><b>@benpicco</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/11305#discussion_r286946363">cpu/samd5x/cpu.c</a>:</p>
<pre style='color:#555'>> +    while (!(GCLK->PCHCTRL[OSCCTRL_GCLK_ID_FDPLL0].reg & GCLK_PCHCTRL_CHEN)) {}
+
+    GCLK->PCHCTRL[OSCCTRL_GCLK_ID_FDPLL032K].reg = GCLK_PCHCTRL_GEN(1)
+                             | GCLK_PCHCTRL_CHEN;
+    while (!(GCLK->PCHCTRL[OSCCTRL_GCLK_ID_FDPLL032K].reg & GCLK_PCHCTRL_CHEN)) {}
+}
+
+static void dpll0_init(uint32_t f_cpu)
+{
+    const uint32_t LDR = ((f_cpu * 16) / 32768);
+
+    OSCCTRL->Dpll[0].DPLLRATIO.reg = OSCCTRL_DPLLRATIO_LDRFRAC(LDR % 16)
+                       | OSCCTRL_DPLLRATIO_LDR((LDR / 16) - 1);
+
+    OSCCTRL->Dpll[0].DPLLCTRLB.reg = OSCCTRL_DPLLCTRLB_REFCLK_XOSC32
+                       | OSCCTRL_DPLLCTRLB_DIV(1)
</pre>
<p>It doesn't hurt either - and I'd rather keep it as it makes the usage of this clearer.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/11305?email_source=notifications&email_token=ABE7WYEQWSMDTTBHVTINJE3PW2M2HA5CNFSM4HCDEQQKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOBZQIP5Q#discussion_r286946363">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYGYKUJ64SIXGNJTYXDPW2M2HANCNFSM4HCDEQQA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYHLLL6ZDFKQOWY4ENLPW2M2HA5CNFSM4HCDEQQKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOBZQIP5Q.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/11305?email_source=notifications\u0026email_token=ABE7WYEQWSMDTTBHVTINJE3PW2M2HA5CNFSM4HCDEQQKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOBZQIP5Q#discussion_r286946363",
"url": "https://github.com/RIOT-OS/RIOT/pull/11305?email_source=notifications\u0026email_token=ABE7WYEQWSMDTTBHVTINJE3PW2M2HA5CNFSM4HCDEQQKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOBZQIP5Q#discussion_r286946363",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>