aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/stm32l4.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2024-08-29 22:31:13 -0400
committerKevin O'Connor <kevin@koconnor.net>2024-08-29 22:31:13 -0400
commitf71d2c7cfc97d3e7964403463e513ac7f9b90050 (patch)
treeae1bc591081ebe2b6bca550e6f512f1b52ca212f /src/stm32/stm32l4.c
parent81de9a8615df667ae2ea6d2b0f9204e7f3b09bcc (diff)
downloadkutter-f71d2c7cfc97d3e7964403463e513ac7f9b90050.tar.gz
kutter-f71d2c7cfc97d3e7964403463e513ac7f9b90050.tar.xz
kutter-f71d2c7cfc97d3e7964403463e513ac7f9b90050.zip
stm32: Fix setting USB clock with USB to CANbus mode on stm32g4/stm32l4
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stm32/stm32l4.c')
-rw-r--r--src/stm32/stm32l4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stm32/stm32l4.c b/src/stm32/stm32l4.c
index 7db15fff..ae099d6b 100644
--- a/src/stm32/stm32l4.c
+++ b/src/stm32/stm32l4.c
@@ -96,7 +96,7 @@ enable_clock_stm32l4(void)
RCC->CR |= RCC_CR_PLLON;
// Enable 48Mhz USB clock using clock recovery
- if (CONFIG_USBSERIAL) {
+ if (CONFIG_USB) {
RCC->CRRCR |= RCC_CRRCR_HSI48ON;
while (!(RCC->CRRCR & RCC_CRRCR_HSI48RDY))
;