diff options
author | Karl Palsson <karlp@tweak.net.au> | 2022-01-07 11:53:56 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2022-01-26 23:40:29 +0100 |
commit | f8475fc2e82f4ebf5f4c6a73ec889c28e365bf8f (patch) | |
tree | 2f7b2803af1607cc9f9192a9300603c807170f6c /cal | |
parent | 446eb86b3c51095a9e13f0d7a633bcc819b156cc (diff) |
stm32wb: cal: add Flash UID64
At least the constants to get started.
Note that RM0434r8 says that 0x27 is for revision "B" but rev9 says it's
not revision "X" (Presumably B nomenclature has been dropped?)
Diffstat (limited to 'cal')
-rw-r--r-- | cal/cal.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -18,6 +18,14 @@ namespace STM32 { static auto const VREFINT_CAL_TEMP = 30; static auto const VREFINT_CAL_VOLTAGE = 3.6f; static auto const VREFINT_MIN_SAMPLING_USECS = 4; + + /* A 32bit unique sequence for each device */ + static uint32_t& UID64_UDN = *(uint32_t*) 0x1fff7580; + /* 24 bit vendor id, and an 8 bit part id, */ + static uint32_t& UID64_PART = *(uint32_t*) 0x1fff7584; + static auto const UID64_VENDOR_ST = 0x0080E1; + static auto const UID64_PART_STM32WB_REV_YA = 0x26; + static auto const UID64_PART_STM32WB_REV_XB = 0x27; #endif } |