aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/machine/machine_nxp.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/machine/machine_nxp.go')
-rw-r--r--src/machine/machine_nxp.go33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/machine/machine_nxp.go b/src/machine/machine_nxp.go
deleted file mode 100644
index b29d4328c..000000000
--- a/src/machine/machine_nxp.go
+++ /dev/null
@@ -1,33 +0,0 @@
-// +build nxp
-
-package machine
-
-import (
- "device/arm"
- "device/nxp"
-)
-
-type PinMode uint8
-
-const (
- PinInput PinMode = iota
- PinOutput
-)
-
-// Stop enters STOP (deep sleep) mode
-func Stop() {
- // set SLEEPDEEP to enable deep sleep
- nxp.SystemControl.SCR.SetBits(nxp.SystemControl_SCR_SLEEPDEEP)
-
- // enter STOP mode
- arm.Asm("wfi")
-}
-
-// Wait enters WAIT (sleep) mode
-func Wait() {
- // clear SLEEPDEEP bit to disable deep sleep
- nxp.SystemControl.SCR.ClearBits(nxp.SystemControl_SCR_SLEEPDEEP)
-
- // enter WAIT mode
- arm.Asm("wfi")
-}