This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 1bcaacd5cc arch/arm/stm32: fix stm32g4 enable pll code.
1bcaacd5cc is described below
commit 1bcaacd5cc5413352bd5b7a89ff8bfe1469f0781
Author: jerryslhao <[email protected]>
AuthorDate: Wed Jan 8 09:50:22 2025 +0800
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 <[email protected]>
---
arch/arm/src/stm32/stm32g4xxxx_rcc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/src/stm32/stm32g4xxxx_rcc.c
b/arch/arm/src/stm32/stm32g4xxxx_rcc.c
index bc1b6303b5..ed213cb0c1 100644
--- a/arch/arm/src/stm32/stm32g4xxxx_rcc.c
+++ b/arch/arm/src/stm32/stm32g4xxxx_rcc.c
@@ -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 */