From 71a3a7f2b134115c9851ff38314a74c4a2f9c5d3 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Thu, 7 Jun 2012 15:41:42 +0000 Subject: 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? --- include/libopencm3/stm32/f1/memorymap.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/libopencm3/stm32/f1/memorymap.h') 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 -- cgit v1.2.3