aboutsummaryrefslogtreecommitdiff
path: root/include/libopencm3/stm32/f1/memorymap.h
diff options
context:
space:
mode:
authorKarl Palsson2012-06-07 15:41:42 +0000
committerKarl Palsson2012-06-12 20:53:59 +0000
commit71a3a7f2b134115c9851ff38314a74c4a2f9c5d3 (patch)
tree43c63327151d796f4c36d2515d6801d2f583901e /include/libopencm3/stm32/f1/memorymap.h
parent154f67598bb06c0c152bf121979c2292f7f10a84 (diff)
Add Device Electronic Signature support.
Working unique id support, but not 100% convinced that this is the "least surprise" path. ST's docs provide the bits from low to high, in 2xu16 and 2xu32. But to get it back as a "u96" the highest bits should be first?
Diffstat (limited to 'include/libopencm3/stm32/f1/memorymap.h')
-rw-r--r--include/libopencm3/stm32/f1/memorymap.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libopencm3/stm32/f1/memorymap.h b/include/libopencm3/stm32/f1/memorymap.h
index f8528d4..5cc432e 100644
--- a/include/libopencm3/stm32/f1/memorymap.h
+++ b/include/libopencm3/stm32/f1/memorymap.h
@@ -26,6 +26,7 @@
/* Memory map for all busses */
#define PERIPH_BASE ((u32)0x40000000)
+#define INFO_BASE ((u32)0x1ffff000)
#define PERIPH_BASE_APB1 (PERIPH_BASE + 0x00000)
#define PERIPH_BASE_APB2 (PERIPH_BASE + 0x10000)
#define PERIPH_BASE_AHB (PERIPH_BASE + 0x18000)
@@ -110,4 +111,8 @@
/* FSMC */
#define FSMC_BASE (PERIPH_BASE + 0x60000000)
+/* Device Electronic Signature */
+#define DESIG_FLASH_SIZE_BASE (INFO_BASE + 0x7e0)
+#define DESIG_UNIQUE_ID_BASE (INFO_BASE + 0x7e8)
+
#endif