From c31a239ae34bbfedd54911cc66973472a0066ddb Mon Sep 17 00:00:00 2001 From: dragonmux Date: Mon, 15 Apr 2024 11:55:58 +0100 Subject: [PATCH] stm32/h7: Defined variant identification constants --- include/libopencm3/stm32/h7/memorymap.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/libopencm3/stm32/h7/memorymap.h b/include/libopencm3/stm32/h7/memorymap.h index 8771db3c..15756721 100644 --- a/include/libopencm3/stm32/h7/memorymap.h +++ b/include/libopencm3/stm32/h7/memorymap.h @@ -190,4 +190,13 @@ #define DESIG_UNIQUE_ID1 MMIO32(DESIG_UNIQUE_ID_BASE + 4) #define DESIG_UNIQUE_ID2 MMIO32(DESIG_UNIQUE_ID_BASE + 8) +/* These aren't strictly memory map, but they need to be visible everywhere like the memory map */ + +/* Device variant constants */ +enum device_variant { + STM32H72x = 0x483U, /* RM0468 */ + STM32H74x = 0x450U, /* RM0433, RM0399 */ + STM32H7Bx = 0x480U, /* RM0455 */ +}; + #endif /*LIBOPENCM3_MEMORYMAP_H*/