tinygo/src/runtime/runtime_nrf_bare.go
Ayke van Laethem 9d625a1ccb nrf: call sd_app_evt_wait when the SoftDevice is enabled
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.
2020-08-24 22:46:21 +02:00

9 строки
106 Б
Go

// +build nrf,!softdevice
package runtime
import "device/arm"
func waitForEvents() {
arm.Asm("wfe")
}