chore: move _embdemo to _demo

This commit is contained in:
Haolan
2025-09-15 10:57:31 +08:00
parent 18e036568d
commit 4b2e1e777c
6 changed files with 1563 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
package watchdog
import (
"unsafe"
_ "unsafe"
)
//go:linkname StoreUint32 llgo.atomicStore
func StoreUint32(addr *uint32, val uint32)
func Disable() {
StoreUint32((*uint32)(unsafe.Pointer(uintptr(0x3ff480A4))), 0x50D83AA1)
StoreUint32((*uint32)(unsafe.Pointer(uintptr(0x3ff4808C))), 0)
StoreUint32((*uint32)(unsafe.Pointer(uintptr(0x3ff5f048))), 0)
}