mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-05 19:43:44 +00:00
Add machine.CPUReset() (#3595)
machine: Add machine.CPUReset() for cortexm
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
//go:build cortexm
|
||||
|
||||
package machine
|
||||
|
||||
import "device/arm"
|
||||
|
||||
// CPUReset performs a hard system reset.
|
||||
func CPUReset() {
|
||||
arm.SystemReset()
|
||||
}
|
||||
Reference in New Issue
Block a user