mirror of
https://github.com/apache/nuttx.git
synced 2025-01-12 22:08:35 +08:00
arch/arm/stm32: fix stm32g4 enable pll code.
In the file stm32g474xxxx_rcc.c, the enable PLL code, according to the intent of the comment, wants to keep the reserved bit, but the code clears the reserved bit. Signed-off-by: jerryslhao <jerryslhao@gmail.com>
This commit is contained in:
parent
fabf4a5142
commit
1bcaacd5cc
1 changed files with 1 additions and 1 deletions
|
@ -702,7 +702,7 @@ static inline bool stm32_rcc_enablepll(void)
|
|||
/* Preserve reserved bits when altering the PLLCFGR register */
|
||||
|
||||
regval = getreg32(STM32_RCC_PLLCFGR);
|
||||
regval &= ~(RCC_PLLCFGR_RESERVED_MASK);
|
||||
regval &= RCC_PLLCFGR_RESERVED_MASK;
|
||||
|
||||
/* Configure PLL source and enables */
|
||||
|
||||
|
|
Loading…
Reference in a new issue