Browse Source

stm32f0: rcc: properly set USB clock source

Missing breaks in switch statement.

Fixes Github issue #524
pull/525/head
Karl Palsson 9 years ago
parent
commit
7063e5cdc9
  1. 2
      lib/stm32/f0/rcc.c

2
lib/stm32/f0/rcc.c

@ -431,8 +431,10 @@ void rcc_set_usbclk_source(enum rcc_osc clk)
switch (clk) {
case PLL:
RCC_CFGR3 |= RCC_CFGR3_USBSW;
break;
case HSI48:
RCC_CFGR3 &= ~RCC_CFGR3_USBSW;
break;
case HSI:
case HSE:
case LSI:

Loading…
Cancel
Save