aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32
diff options
context:
space:
mode:
Diffstat (limited to 'src/stm32')
-rw-r--r--src/stm32/stm32g4.c2
-rw-r--r--src/stm32/stm32l4.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/stm32/stm32g4.c b/src/stm32/stm32g4.c
index 1eed3ec1..5255cb19 100644
--- a/src/stm32/stm32g4.c
+++ b/src/stm32/stm32g4.c
@@ -104,7 +104,7 @@ enable_clock_stm32g4(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))
;
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))
;