Skip to content

Commit

Permalink
arch/arm/stm32: fix stm32g4 enable pll code.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
JerrySlhao authored and xiaoxiang781216 committed Jan 8, 2025
1 parent fabf4a5 commit 1bcaacd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/src/stm32/stm32g4xxxx_rcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down

0 comments on commit 1bcaacd

Please sign in to comment.