diff options
author | Kenneth Bell <[email protected]> | 2023-10-20 11:47:05 +0100 |
---|---|---|
committer | Ron Evans <[email protected]> | 2023-10-27 13:25:32 +0200 |
commit | 9fb5a5b9a480c1fa407748b7defd8249ae94d537 (patch) | |
tree | b00b38d4344ff5873323c8dfc0f338304ce96796 /src/machine/machine_atsamd51.go | |
parent | 9fd9d9c05a5c03c11c385c3d920cfb4e64016168 (diff) | |
download | tinygo-9fb5a5b9a480c1fa407748b7defd8249ae94d537.tar.gz tinygo-9fb5a5b9a480c1fa407748b7defd8249ae94d537.zip |
nrf,sam,rp2040: add machine.HardwareID function
Diffstat (limited to 'src/machine/machine_atsamd51.go')
-rw-r--r-- | src/machine/machine_atsamd51.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/machine/machine_atsamd51.go b/src/machine/machine_atsamd51.go index bdc00c9af..7118792a7 100644 --- a/src/machine/machine_atsamd51.go +++ b/src/machine/machine_atsamd51.go @@ -18,6 +18,9 @@ import ( const deviceName = sam.Device +// DS60001507, Section 9.6: Serial Number +var deviceIDAddr = []uintptr{0x008061FC, 0x00806010, 0x00806014, 0x00806018} + func CPUFrequency() uint32 { return 120000000 } |