diff options
Diffstat (limited to 'src/stm32/stm32f0.c')
-rw-r--r-- | src/stm32/stm32f0.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stm32/stm32f0.c b/src/stm32/stm32f0.c index 0232b602..b876db35 100644 --- a/src/stm32/stm32f0.c +++ b/src/stm32/stm32f0.c @@ -149,9 +149,10 @@ pll_setup(void) // Setup CFGR3 register uint32_t cfgr3 = RCC_CFGR3_I2C1SW; - if (CONFIG_USBSERIAL) +#if CONFIG_USBSERIAL // Select PLL as source for USB clock cfgr3 |= RCC_CFGR3_USBSW; +#endif RCC->CFGR3 = cfgr3; } |