From af78534df9a1c1b9a0a5c8519d90856c975560f5 Mon Sep 17 00:00:00 2001 From: Nicolas Gariepy Date: Fri, 9 Aug 2024 21:16:02 -0400 Subject: [PATCH] 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 */