aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann2011-11-11 21:51:01 +0100
committerUwe Hermann2011-11-11 21:51:01 +0100
commite626a725615c9d67e0f5678c614d328c38a8d9d9 (patch)
tree018d130e26d80de88cba0fe8966642d46f7c5e04
parent6967a02576542c9dcd5675fb491255b1a7a4fd5c (diff)
stm32/dbgmcu.h: Document reserved bits, cosmetic fixes.
-rw-r--r--include/libopencm3/stm32/dbgmcu.h22
1 files changed, 17 insertions, 5 deletions
diff --git a/include/libopencm3/stm32/dbgmcu.h b/include/libopencm3/stm32/dbgmcu.h
index e753f5e..1e14bea 100644
--- a/include/libopencm3/stm32/dbgmcu.h
+++ b/include/libopencm3/stm32/dbgmcu.h
@@ -25,10 +25,26 @@
/* --- DBGMCU registers ---------------------------------------------------- */
+/* Debug MCU IDCODE register (DBGMCU_IDCODE) */
#define DBGMCU_IDCODE MMIO32(DBGMCU_BASE + 0x00)
+
+/* Debug MCU configuration register (DBGMCU_CR) */
+/* Note: Only 32bit access supported. */
#define DBGMCU_CR MMIO32(DBGMCU_BASE + 0x04)
-/* DBGMCU_CR bits */
+/* --- DBGMCU_IDCODE values ------------------------------------------------ */
+
+#define DBGMCU_IDCODE_DEV_ID_MASK 0x00000fff
+#define DBGMCU_IDCODE_REV_ID_MASK 0xffff0000
+
+/* --- DBGMCU_CR values ---------------------------------------------------- */
+
+/* Bit 31: Reserved. */
+
+/* Bits [24:22]: Reserved, must be kept cleared. */
+
+/* Bits [4:3]: Reserved. */
+
#define DBGMCU_CR_SLEEP 0x00000001
#define DBGMCU_CR_STOP 0x00000002
#define DBGMCU_CR_STANDBY 0x00000004
@@ -53,8 +69,4 @@
#define DBGMCU_CR_TIM7_STOP 0x00100000
#define DBGMCU_CR_CAN2_STOP 0x00200000
-/* DBGMCU_IDCODE bits */
-#define DBGMCU_IDCODE_DEV_ID_MASK 0x00000fff
-#define DBGMCU_IDCODE_REV_ID_MASK 0xffff0000
-
#endif