aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/stm32/stm32g0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stm32/stm32g0.c b/src/stm32/stm32g0.c
index d3815328..6cb7c54c 100644
--- a/src/stm32/stm32g0.c
+++ b/src/stm32/stm32g0.c
@@ -95,7 +95,7 @@ clock_setup(void)
;
// Use PLLQCLK for USB (setting USBSEL=2 works in practice)
- RCC->CCIPR2 = RCC_CCIPR2_USBSEL_1;
+ RCC->CCIPR2 = 2 << RCC_CCIPR2_USBSEL_Pos;
}