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.
This commit is contained in:
Ayke van Laethem
2020-08-01 18:31:48 +02:00
committed by Ron Evans
parent b75f042c23
commit 9d625a1ccb
8 changed files with 71 additions and 4 deletions
+4
View File
@@ -50,3 +50,7 @@ var stdoutWrite = (*volatile.Register8)(unsafe.Pointer(uintptr(0x4000c000)))
func putchar(c byte) {
stdoutWrite.Set(uint8(c))
}
func waitForEvents() {
arm.Asm("wfe")
}