aboutsummaryrefslogtreecommitdiff
path: root/include/libopencm3/stm32/f4
diff options
context:
space:
mode:
authorUwe Hermann2011-11-11 21:44:11 +0100
committerUwe Hermann2011-11-11 21:44:11 +0100
commitb874da24f2fde53d4e212b3877648187d89577a0 (patch)
treedf972a51d0db0d9ebca943742b7fdff8ca25a7d1 /include/libopencm3/stm32/f4
parentb05eff8dbff13a89d122be57aa53eff9fd9ce515 (diff)
stm32/f4/pwr.h: Document reserved bits.
Diffstat (limited to 'include/libopencm3/stm32/f4')
-rw-r--r--include/libopencm3/stm32/f4/pwr.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/include/libopencm3/stm32/f4/pwr.h b/include/libopencm3/stm32/f4/pwr.h
index 66cfc10..aa75a94 100644
--- a/include/libopencm3/stm32/f4/pwr.h
+++ b/include/libopencm3/stm32/f4/pwr.h
@@ -23,33 +23,44 @@
#include <libopencm3/stm32/pwr.h>
/*
- * This file extends the version in stm_common with definitions only
+ * This file extends the common STM32 version with definitions only
* applicable to the STM32F4 series of devices.
*/
/* --- PWR_CR values ------------------------------------------------------- */
+/* Bits [31:15]: Reserved */
+
/* VOS: Regulator voltage scaling output selection */
#define PWR_CR_VOS (1 << 14)
-/* FPDS: Flash power down in stop mode, only available in F2 family devices. */
+/* Bits [13:10]: Reserved */
+
+/* FPDS: Flash power down in stop mode */
#define PWR_CR_FPDS (1 << 9)
/* --- PWR_CSR values ------------------------------------------------------ */
-/* VOSRDY: Regulator voltage scaling output selection ready */
+/* Bits [31:15]: Reserved */
+
+/* VOSRDY: Regulator voltage scaling output selection ready bit */
#define PWR_CSR_VOSRDY (1 << 14)
+/* Bits [13:10]: Reserved */
+
/* BRE: Backup regulator enable */
#define PWR_CSR_BRE (1 << 9)
+/* Bits [7:4]: Reserved */
+
/* BRR: Backup regulator ready */
#define PWR_CSR_BRR (1 << 3)
/* --- Function prototypes ------------------------------------------------- */
typedef enum {
- SCALE1, SCALE2
+ SCALE1,
+ SCALE2,
} vos_scale_t;
void pwr_set_vos_scale(vos_scale_t scale);