aboutsummaryrefslogtreecommitdiffstats
path: root/src/atsamd/samd51_clock.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2022-08-16 21:16:08 -0400
committerKevin O'Connor <kevin@koconnor.net>2022-08-16 21:21:45 -0400
commit2357221bb4f74d0ff1d1cc96dfa235f5662ffb46 (patch)
tree1210d85abecf2fe4db0d5beae011458e668bb4a8 /src/atsamd/samd51_clock.c
parent6aec6efcc963c523d665adabc99e15a736c2dda1 (diff)
downloadkutter-2357221bb4f74d0ff1d1cc96dfa235f5662ffb46.tar.gz
kutter-2357221bb4f74d0ff1d1cc96dfa235f5662ffb46.tar.xz
kutter-2357221bb4f74d0ff1d1cc96dfa235f5662ffb46.zip
atsamd: Use CONFIG_USB instead of CONFIG_USBSERIAL during clock init
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/atsamd/samd51_clock.c')
-rw-r--r--src/atsamd/samd51_clock.c2
1 files changed, 1 insertions, 1 deletions
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);