stm32: f0: Fixes setting of PLL multiplication factor

Really use RCC_CFGR_PLLMUL negated as a mask.

Signed-off-by: Daniel Serpell <daniel.serpell@gmail.com>
This commit is contained in:
Daniel Serpell 2015-01-12 22:44:03 -03:00
parent 418fdd08dd
commit ca41131f97

View File

@ -453,7 +453,7 @@ void rcc_set_usbclk_source(enum rcc_osc clk)
void rcc_set_pll_multiplication_factor(uint32_t mul)
{
RCC_CFGR = (RCC_CFGR & RCC_CFGR_PLLMUL) | mul;
RCC_CFGR = (RCC_CFGR & ~RCC_CFGR_PLLMUL) | mul;
}