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
@@ -13,6 +13,8 @@ import (
// Peripheral abstraction layer for the stm32l4
var deviceIDAddr = []uintptr{0x1FFF7590, 0x1FFF7594, 0x1FFF7598}
const (
AF0_SYSTEM = 0
AF1_TIM1_2_LPTIM1 = 1