nrf,sam,rp2040: add machine.HardwareID function

This commit is contained in:
Kenneth Bell
2023-10-20 11:47:05 +01:00
committed by Ron Evans
parent 9fd9d9c05a
commit 9fb5a5b9a4
9 changed files with 207 additions and 0 deletions
+3
View File
@@ -18,6 +18,9 @@ import (
const deviceName = sam.Device
// DS40001882F, Section 10.3.3: Serial Number
var deviceIDAddr = []uintptr{0x0080A00C, 0x0080A040, 0x0080A044, 0x0080A048}
const (
PinAnalog PinMode = 1
PinSERCOM PinMode = 2