Skip to content

Commit

Permalink
stm32/h7: Defined variant identification constants
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonmux committed Aug 11, 2024
1 parent 2a9cf3e commit 9897a4f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions include/libopencm3/stm32/h7/memorymap.h
Original file line number Diff line number Diff line change
Expand Up @@ -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*/

0 comments on commit 9897a4f

Please sign in to comment.