Skip to content

Commit

Permalink
stm32h7: rcc: fix RCC_PLLFRAC address
Browse files Browse the repository at this point in the history
copy/paste in original submission

Fixes: 2ca56f4 stm32h7: updates to PWR and RCC to support PLL configuration.
Fixes: libopencm3#1547
Signed-off-by: Karl Palsson <[email protected]>
  • Loading branch information
karlp committed Jun 21, 2024
1 parent bb4c5d7 commit b8e6e5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/libopencm3/stm32/h7/rcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b8e6e5d

Please sign in to comment.