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:
@@ -453,7 +453,7 @@ void rcc_set_usbclk_source(enum rcc_osc clk)
|
|||||||
|
|
||||||
void rcc_set_pll_multiplication_factor(uint32_t mul)
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user