From 3e480eecaeaa013bf329231543fa729d61d57484 Mon Sep 17 00:00:00 2001 From: Dima Barsky Date: Wed, 10 Nov 2021 16:08:20 +0000 Subject: [PATCH] stm32f4: pwr: add missing bits Extra bits have these names per RM0430 at least. Reviewed-by: Karl Palsson --- include/libopencm3/stm32/f4/pwr.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/include/libopencm3/stm32/f4/pwr.h b/include/libopencm3/stm32/f4/pwr.h index 63f1015f..ba7fcf63 100644 --- a/include/libopencm3/stm32/f4/pwr.h +++ b/include/libopencm3/stm32/f4/pwr.h @@ -49,7 +49,16 @@ LGPL License Terms @ref lgpl_license #define PWR_CR_VOS_SHIFT 14 #define PWR_CR_VOS_MASK 0x3 -/* Bits [13:10]: Reserved */ +/* ADCDC1: Masks extra flash accesses by prefetch (see AN4073) */ +#define PWR_CR_ADCDC1 (1 << 13) + +/* Bit 12: Reserved */ + +/* Bit 11: Main regulator Low Voltage in Deep Sleep */ +#define PWR_CR_MRLVDS (1 << 11) + +/* Bit 10: Low-power regulator Low Voltage in Deep Sleep */ +#define PWR_CR_LPLVDS (1 << 10) /* FPDS: Flash power down in stop mode */ #define PWR_CR_FPDS (1 << 9)