machine/stm32: implement DeviceID() with unique ID per processor

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2023-10-27 16:06:03 +02:00
committed by Ron Evans
parent 9fb5a5b9a4
commit 938ce22307
8 changed files with 37 additions and 1 deletions
+2
View File
@@ -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