diff --git a/include/libopencm3/stm32/h7/memorymap.h b/include/libopencm3/stm32/h7/memorymap.h index 2f3816a4..8771db3c 100644 --- a/include/libopencm3/stm32/h7/memorymap.h +++ b/include/libopencm3/stm32/h7/memorymap.h @@ -25,6 +25,7 @@ /* Memory map for all busses */ #define FLASH_BASE (0x08000000U) #define PERIPH_BASE (0x40000000U) +#define SYSTEM_MEM_BASE (0x1ff00000U) #define PERIPH_BASE_APB1 (PERIPH_BASE + 0x00000000U) #define PERIPH_BASE_APB2 (PERIPH_BASE + 0x00010000U) #define PERIPH_BASE_APB3 (PERIPH_BASE + 0x10000000U) @@ -182,4 +183,11 @@ /* Debug/Trace Peripherals */ #define DBGMCU_BASE 0x5C001000U +/* Device Electronic Signature */ +#define DESIG_FLASH_SIZE_BASE (SYSTEM_MEM_BASE + 0x1E880U) +#define DESIG_UNIQUE_ID_BASE (SYSTEM_MEM_BASE + 0x1E800U) +#define DESIG_UNIQUE_ID0 MMIO32(DESIG_UNIQUE_ID_BASE) +#define DESIG_UNIQUE_ID1 MMIO32(DESIG_UNIQUE_ID_BASE + 4) +#define DESIG_UNIQUE_ID2 MMIO32(DESIG_UNIQUE_ID_BASE + 8) + #endif /*LIBOPENCM3_MEMORYMAP_H*/