aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/atsamd/clock.c2
-rw-r--r--src/atsamd/samd51_clock.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/atsamd/clock.c b/src/atsamd/clock.c
index a60fc1eb..496ae56e 100644
--- a/src/atsamd/clock.c
+++ b/src/atsamd/clock.c
@@ -89,7 +89,7 @@ clock_init_internal(void)
uint32_t fine = GET_FUSE(FUSES_DFLL48M_FINE_CAL);
SYSCTRL->DFLLVAL.reg = (SYSCTRL_DFLLVAL_COARSE(coarse)
| SYSCTRL_DFLLVAL_FINE(fine));
- if (CONFIG_USBSERIAL) {
+ if (CONFIG_USB) {
// Enable USB clock recovery mode
uint32_t mul = DIV_ROUND_CLOSEST(FREQ_MAIN, 1000);
SYSCTRL->DFLLMUL.reg = (SYSCTRL_DFLLMUL_FSTEP(10)
diff --git a/src/atsamd/samd51_clock.c b/src/atsamd/samd51_clock.c
index cf7402e5..2f769435 100644
--- a/src/atsamd/samd51_clock.c
+++ b/src/atsamd/samd51_clock.c
@@ -157,7 +157,7 @@ static void
clock_init_internal(void)
{
// Enable USB clock recovery mode if applicable
- if (CONFIG_USBSERIAL) {
+ if (CONFIG_USB) {
// Temporarily switch main clock to internal 32K clock
gen_clock(CLKGEN_MAIN, GCLK_GENCTRL_SRC_OSCULP32K);