mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-06 03:53:42 +00:00
9d625a1ccb
This reduces current consumption from 500-1000µA to very low (<10µA) current consumption. This change is important for battery powered devices, especially devices that may be running for long periods of time.
10 lines
106 B
Go
10 lines
106 B
Go
// +build nrf,!softdevice
|
|
|
|
package runtime
|
|
|
|
import "device/arm"
|
|
|
|
func waitForEvents() {
|
|
arm.Asm("wfe")
|
|
}
|