mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-14 16:03:41 +00:00
nrf,sam,rp2040: add machine.HardwareID function
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user