From 5eedd9c629d6f3012fa58e376cf34ee4ac285280 Mon Sep 17 00:00:00 2001 From: Koen Zandberg Date: Sun, 20 Oct 2019 18:22:18 +0200 Subject: [PATCH] stmclk: Fix M-factor shift for SAI PLL --- cpu/stm32_common/stmclk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/stm32_common/stmclk.c b/cpu/stm32_common/stmclk.c index ad8755c71d..793c67167e 100644 --- a/cpu/stm32_common/stmclk.c +++ b/cpu/stm32_common/stmclk.c @@ -87,7 +87,7 @@ #if (CLOCK_ENABLE_PLL_SAI) #ifdef RCC_PLLSAICFGR_PLLSAIN_Pos -#define PLLSAI_M (CLOCK_PLL_SAI_M << RCC_PLLSAICFGR_PLLSAIN_Pos) +#define PLLSAI_M (CLOCK_PLL_SAI_M << RCC_PLLSAICFGR_PLLSAIM_Pos) #else #define PLLSAI_M (0) #endif