From 89074d6a13ed7febba04d3c421ce7bf2b7972156 Mon Sep 17 00:00:00 2001 From: Brian Viele Date: Mon, 9 Mar 2020 23:07:53 -0400 Subject: [PATCH] stm32h7: fix inverted VOS settings for Vcore. --- include/libopencm3/stm32/h7/pwr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/libopencm3/stm32/h7/pwr.h b/include/libopencm3/stm32/h7/pwr.h index e093f1ff..e0ef4db6 100644 --- a/include/libopencm3/stm32/h7/pwr.h +++ b/include/libopencm3/stm32/h7/pwr.h @@ -88,9 +88,9 @@ LGPL License Terms @ref lgpl_license #define PWR_D3CR_VOS_SHIFT 14 #define PWR_D3CR_VOSRDY BIT13 -#define PWR_D3CR_VOS_SCALE_3 (0x3) +#define PWR_D3CR_VOS_SCALE_3 (0x1) #define PWR_D3CR_VOS_SCALE_2 (0x2) -#define PWR_D3CR_VOS_SCALE_1 (0x1) +#define PWR_D3CR_VOS_SCALE_1 (0x3) #define PWR_D3CR_VOS_MASK (0x03) enum pwr_svos_scale {