From 2357221bb4f74d0ff1d1cc96dfa235f5662ffb46 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 16 Aug 2022 21:16:08 -0400 Subject: [PATCH] atsamd: Use CONFIG_USB instead of CONFIG_USBSERIAL during clock init Signed-off-by: Kevin O'Connor --- src/atsamd/clock.c | 2 +- src/atsamd/samd51_clock.c | 2 +- 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);