diff options
author | deadprogram <[email protected]> | 2023-10-27 16:06:03 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2023-10-27 17:44:53 +0200 |
commit | 938ce22307194504431d91d162608c47e4b4ffd3 (patch) | |
tree | 14620e1520df3008640d540a99c525ad208a7c87 /src/machine/machine_stm32f103.go | |
parent | 9fb5a5b9a480c1fa407748b7defd8249ae94d537 (diff) | |
download | tinygo-938ce22307194504431d91d162608c47e4b4ffd3.tar.gz tinygo-938ce22307194504431d91d162608c47e4b4ffd3.zip |
machine/stm32: implement DeviceID() with unique ID per processor
Signed-off-by: deadprogram <[email protected]>
Diffstat (limited to 'src/machine/machine_stm32f103.go')
-rw-r--r-- | src/machine/machine_stm32f103.go | 2 |
1 files changed, 2 insertions, 0 deletions
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 |