aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorUwe Hermann2011-11-11 21:48:35 +0100
committerUwe Hermann2011-11-11 21:48:35 +0100
commit1d592c1627449545e2285ff2df38651eb919a95d (patch)
treec6c4319e8705ac051c29024f7623ef1985dcd83c /include
parent45581dc2205d69dabc885f36ad13870c9fcd8cf1 (diff)
stm32/wwdg.h: Document reserved bits, add WWDG_CFG_W.
Diffstat (limited to 'include')
-rw-r--r--include/libopencm3/stm32/wwdg.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/libopencm3/stm32/wwdg.h b/include/libopencm3/stm32/wwdg.h
index 552d02e..e9eb209 100644
--- a/include/libopencm3/stm32/wwdg.h
+++ b/include/libopencm3/stm32/wwdg.h
@@ -36,6 +36,8 @@
/* --- WWDG_CR values ------------------------------------------------------ */
+/* Bits [31:8]: Reserved */
+
/* WDGA: Activation bit */
#define WWDG_CR_WDGA (1 << 7)
@@ -51,6 +53,8 @@
/* --- WWDG_CFR values ----------------------------------------------------- */
+/* Bits [31:10]: Reserved */
+
/* EWI: Early wakeup interrupt */
#define WWDG_CFR_EWI (1 << 9)
@@ -63,12 +67,17 @@
/* W[6:0]: 7-bit window value */
#define WWDG_CFG_W_LSB 0
+#define WWDG_CFG_W (1 << 0)
/* --- WWDG_SR values ------------------------------------------------------ */
+/* Bits [31:1]: Reserved */
+
/* EWIF: Early wakeup interrupt flag */
#define WWDG_SR_EWIF (1 << 0)
/* --- WWDG funtion prototypes---------------------------------------------- */
+/* TODO */
+
#endif