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 <karlp@tweak.au>
This commit is contained in:
Karl Palsson
2024-06-21 22:35:09 +00:00
parent bb4c5d7324
commit b8e6e5d373

View File

@@ -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)