From 938ce22307194504431d91d162608c47e4b4ffd3 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Fri, 27 Oct 2023 16:06:03 +0200 Subject: machine/stm32: implement DeviceID() with unique ID per processor Signed-off-by: deadprogram --- src/machine/machine_stm32f103.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/machine/machine_stm32f103.go') diff --git a/src/machine/machine_stm32f103.go b/src/machine/machine_stm32f103.go index e7593829b..66a74d04b 100644 --- a/src/machine/machine_stm32f103.go +++ b/src/machine/machine_stm32f103.go @@ -15,6 +15,8 @@ func CPUFrequency() uint32 { return 72000000 } +var deviceIDAddr = []uintptr{0x1FFFF7E8, 0x1FFFF7EC, 0x1FFFF7F0} + // Internal use: configured speed of the APB1 and APB2 timers, this should be kept // in sync with any changes to runtime package which configures the oscillators // and clock frequencies -- cgit v1.2.3