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 af78534df9 fix stm32wl5_rcc.h: Add the missing argument to
RCC_PLLCFG_PLLP define.
af78534df9 is described below
commit af78534df9a1c1b9a0a5c8519d90856c975560f5
Author: Nicolas Gariepy <[email protected]>
AuthorDate: Fri Aug 9 21:16:02 2024 -0400
fix stm32wl5_rcc.h: Add the missing argument to RCC_PLLCFG_PLLP define.
---
arch/arm/src/stm32wl5/hardware/stm32wl5_rcc.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/src/stm32wl5/hardware/stm32wl5_rcc.h
b/arch/arm/src/stm32wl5/hardware/stm32wl5_rcc.h
index c730a3d4c0..df9c46636f 100644
--- a/arch/arm/src/stm32wl5/hardware/stm32wl5_rcc.h
+++ b/arch/arm/src/stm32wl5/hardware/stm32wl5_rcc.h
@@ -276,7 +276,7 @@
#define RCC_PLLCFG_PLLP_SHIFT (17) /* Bit 17-21: Main PLL div
factor for PLLPCLK */
#define RCC_PLLCFG_PLLP_MASK (0x1f << RCC_PLLCFG_PLLP_SHIFT)
-# define RCC_PLLCFG_PLLP (((n)-1) << RCC_PLLCFG_PLLP_SHIFT) /*
2..32 */
+#define RCC_PLLCFG_PLLP(n) (((n)-1) << RCC_PLLCFG_PLLP_SHIFT) /*
2..32 */
#define RCC_PLLCFG_PLLQEN (1 << 24) /* Bit 24: Main PLL PLLQCLK
output enable */