From b8e6e5d373ea7670ce52e46ff945a4c2c9b82d7c Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Fri, 21 Jun 2024 22:35:09 +0000 Subject: [PATCH] stm32h7: rcc: fix RCC_PLLFRAC address copy/paste in original submission Fixes: 2ca56f4c stm32h7: updates to PWR and RCC to support PLL configuration. Fixes: https://github.com/libopencm3/libopencm3/issues/1547 Signed-off-by: Karl Palsson --- include/libopencm3/stm32/h7/rcc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libopencm3/stm32/h7/rcc.h b/include/libopencm3/stm32/h7/rcc.h index 7915ebce..3b62dabb 100644 --- a/include/libopencm3/stm32/h7/rcc.h +++ b/include/libopencm3/stm32/h7/rcc.h @@ -47,7 +47,7 @@ LGPL License Terms @ref lgpl_license #define RCC_PLLCFGR MMIO32(RCC_BASE + 0x02C) /* PLLs are 1-based, so reference macros to 1..3, using index 0 will give undefined behavior. */ #define RCC_PLLDIVR(n) MMIO32(RCC_BASE + 0x030 + (0x08 * ((n) - 1))) -#define RCC_PLLFRACR(n) MMIO32(RCC_BASE + 0x030 + (0x08 * ((n) - 1))) +#define RCC_PLLFRACR(n) MMIO32(RCC_BASE + 0x034 + (0x08 * ((n) - 1))) #define RCC_PLL1DIVR RCC_PLLDIVR(1) #define RCC_PLL1FRACR RCC_PLLFRACR(1) #define RCC_PLL2DIVR RCC_PLLDIVR(2)