diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2022-08-17 04:16:08 +0300 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2022-08-17 04:21:45 +0300 |
commit | 2357221bb4f74d0ff1d1cc96dfa235f5662ffb46 (patch) | |
tree | 1210d85abecf2fe4db0d5beae011458e668bb4a8 | |
parent | 6aec6efcc963c523d665adabc99e15a736c2dda1 (diff) |
atsamd: Use CONFIG_USB instead of CONFIG_USBSERIAL during clock init
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | src/atsamd/clock.c | 2 | ||||
-rw-r--r-- | 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 a60fc1eb3..496ae56ec 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 cf7402e5c..2f769435a 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); |